


"""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  UpperCamelCase_	( UpperCamelCase):

	"""simple docstring"""





	snake_case__				:  str    					=			field(default="language-modeling"			,  metadata={"include_in_asdict_even_if_is_default": True})

	snake_case__				:  ClassVar[Features]    					=			Features({"text": Value("string")})
	snake_case__				:  ClassVar[Features]    					=			Features({})
	snake_case__				:  str    					=			"text"




	@property
	def   UpperCAmelCase_      ( self			:				str   )       ->	Dict[str, str]:
						return {self.text_column: "text"}




"""simple docstring"""







from collections import defaultdict
from math import ceil, sqrt




def    UpperCAmelCase__       (lowerCAmelCase_ = 100_0000  ,						lowerCAmelCase_ = 10   ):




					'''simple docstring'''


					__SCREAMING_SNAKE_CASE						   =				defaultdict(lowerCAmelCase_   )

					for outer_width in range(3  ,						(t_limit // 4) + 2   ):
										if outer_width * outer_width > t_limit:
															__SCREAMING_SNAKE_CASE						   =				max(
															    ceil(sqrt(outer_width * outer_width - t_limit   )   )  ,						1   )
										else:
															__SCREAMING_SNAKE_CASE						   =				1

										hole_width_lower_bound += (outer_width - hole_width_lower_bound) % 2

										for hole_width in range(lowerCAmelCase_  ,						outer_width - 1  ,						2   ):
															count[outer_width * outer_width - hole_width * hole_width] += 1

					return sum(1 for n in count.values() if 1 <= n <= 10   )


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