




"""simple docstring"""







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

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




@dataclass(frozen=_UpperCAmelCase    )
class       lowerCAmelCase__       (			_UpperCAmelCase    ):


				"""simple docstring"""





				__UpperCAmelCase :     str       =      field(default="summarization"  ,			metadata={"include_in_asdict_even_if_is_default": True}    )
				__UpperCAmelCase :     ClassVar[Features]       =      Features({"text": Value("string"    )}    )
				__UpperCAmelCase :     ClassVar[Features]       =      Features({"summary": Value("string"    )}    )
				__UpperCAmelCase :     str       =      "text"
				__UpperCAmelCase :     str       =      "summary"



				@property
				def       snake_case    (     self					:	Tuple						):
						return {self.text_column: "text", self.summary_column: "summary"}







"""simple docstring"""







def 						snake_case__       (					_lowerCamelCase				)			->int:






		"""simple docstring"""


		if a < 0:
				raise ValueError("Input value must be a positive integer"				)
		elif isinstance(_lowerCamelCase,  _lowerCamelCase				):
				raise TypeError("Input value must be a 'int' type"				)
		return bin(_lowerCamelCase				).count("1"				)


if __name__ == "__main__":
						import doctest

						doctest.testmod()
