

def    __lowerCamelCase      (					UpperCamelCase__ ):







							'''simple docstring'''






							if num < 0:
														return False

							snake_case_     							=       num
							snake_case_     							=       0
							while num > 0:
														snake_case_     							=       rev_num * 10 + (num % 10)
														num //= 10

							return num_copy == rev_num


if __name__ == "__main__":
					import doctest

					doctest.testmod()







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

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







@dataclass(frozen=lowercase_     )
class 					lowercase							(			lowercase_     ):
				# `task` is not a ClassVar since we want it to be part of the `asdict` output for JSON serialization
				__SCREAMING_SNAKE_CASE   :					str			     =     field(default='''text-classification'''      ,    metadata={'''include_in_asdict_even_if_is_default''': True}     )
				__SCREAMING_SNAKE_CASE   :					ClassVar[Features]			     =     Features({'''text''': Value('''string'''     )}     )
				__SCREAMING_SNAKE_CASE   :					ClassVar[Features]			     =     Features({'''labels''': ClassLabel}     )
				__SCREAMING_SNAKE_CASE   :					str			     =     "text"
				__SCREAMING_SNAKE_CASE   :					str			     =     "labels"




				def        a				(   self ,  snake_case			):
											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] ,  snake_case			):
																		raise ValueError(F'''Column {self.label_column} is not a ClassLabel.'''			)
											snake_case_     							=       copy.deepcopy(self			)
											snake_case_     							=       self.label_schema.copy()
											snake_case_     							=       features[self.label_column]
											snake_case_     							=       label_schema
											return task_template




				@property
				def        a				(   self			):
											return {
											    self.text_column: "text",
											    self.label_column: "labels",
											}




