




"""simple docstring"""


import copy
from dataclasses import dataclass, field
from typing import ClassVar, Dict

from ..features import ClassLabel, Features, Value
from .base import TaskTemplate






@dataclass(frozen=__snake_case			)
class  lowercase(					__snake_case			):







 '''simple docstring'''





 lowercase__			 = field(default="text-classification"	,      metadata={"include_in_asdict_even_if_is_default": True}			)
 lowercase__			 = Features({"text": Value("string"			)}			)
 lowercase__			 = Features({"labels": ClassLabel}			)
 lowercase__			 = "text"
 lowercase__			 = "labels"


 def 			UpperCamelCase_       (    self:		Union[str, Any],				a_:		List[Any]		):




   '''simple docstring'''



   if self.label_column not in features:
     raise ValueError(f"Column {self.label_column} is not present in features."		)
   if not isinstance(features[self.label_column],				UpperCamelCase__		):
     raise ValueError(f"Column {self.label_column} is not a ClassLabel."		)
   _snake_case							:		List[str]								=  copy.deepcopy(self		)
   _snake_case							:		Tuple								=  self.label_schema.copy()
   _snake_case							:		Optional[Any]								=  features[self.label_column]
   _snake_case							:		List[str]								=  label_schema
   return task_template


 @property
 def 			UpperCamelCase_       (    self:		List[str]		):




   '''simple docstring'''



   return {
       self.text_column: "text",
       self.label_column: "labels",
   }








"""simple docstring"""


def  UpperCAmelCase__	(snake_case__							: int   ):
  """simple docstring"""

  _snake_case							:		Optional[Any]								=  (1 + 24 * n) ** 0.5
  return ((1 + root) / 6) % 1 == 0


def  UpperCAmelCase__	(snake_case__							: int = 50_00   ):
  """simple docstring"""

  _snake_case							:		List[str]								=  [(i * (3 * i - 1)) // 2 for i in range(1		,       snake_case__   )]
  for i, pentagonal_i in enumerate(snake_case__   ):
    for j in range(snake_case__		,       len(snake_case__   )   ):
      _snake_case							:		Dict								=  pentagonal_nums[j]
      _snake_case							:		Optional[Any]								=  pentagonal_i + pentagonal_j
      _snake_case							:		List[str]								=  pentagonal_j - pentagonal_i
      if is_pentagonal(snake_case__   ) and is_pentagonal(snake_case__   ):
        return b

  return -1


if __name__ == "__main__":
     print(F'''{solution() = }''')


