






from ....configuration_utils import PretrainedConfig
from ....utils import logging


a_							=    logging.get_logger(__name__)

# TODO: upload to AWS
a_							=    {
    '''yjernite/retribert-base-uncased''': (
        '''https://huggingface.co/yjernite/retribert-base-uncased/resolve/main/config.json'''
    ),
}


class      lowercase__     (			_UpperCAmelCase	):
	a_         ="""retribert"""

	def __init__(							self		,    __UpperCAmelCase=30522		,    __UpperCAmelCase=768		,    __UpperCAmelCase=8		,    __UpperCAmelCase=12		,    __UpperCAmelCase=3072		,    __UpperCAmelCase="gelu"		,    __UpperCAmelCase=0.1		,    __UpperCAmelCase=0.1		,    __UpperCAmelCase=512		,    __UpperCAmelCase=2		,    __UpperCAmelCase=0.02		,    __UpperCAmelCase=1E-1_2		,    __UpperCAmelCase=True		,    __UpperCAmelCase=128		,    __UpperCAmelCase=0		,    **__UpperCAmelCase		,    )->					Dict:







							'''simple docstring'''





							super().__init__(pad_token_id=__UpperCAmelCase		,    **__UpperCAmelCase       )

							lowerCAmelCase__       =						vocab_size
							lowerCAmelCase__       =						hidden_size
							lowerCAmelCase__       =						num_hidden_layers
							lowerCAmelCase__       =						num_attention_heads
							lowerCAmelCase__       =						hidden_act
							lowerCAmelCase__       =						intermediate_size
							lowerCAmelCase__       =						hidden_dropout_prob
							lowerCAmelCase__       =						attention_probs_dropout_prob
							lowerCAmelCase__       =						max_position_embeddings
							lowerCAmelCase__       =						type_vocab_size
							lowerCAmelCase__       =						initializer_range
							lowerCAmelCase__       =						layer_norm_eps
							lowerCAmelCase__       =						share_encoders
							lowerCAmelCase__       =						projection_dim














from collections import defaultdict
from math import ceil, sqrt


def        _a  (     UpperCamelCase_					:				int = 1_000_000    ,   UpperCamelCase_					:				int = 10   ) ->   int:
						"""simple docstring"""







						lowerCAmelCase__       =						defaultdict(UpperCamelCase_   )

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

												hole_width_lower_bound += (outer_width - hole_width_lower_bound) % 2

												for hole_width in range(UpperCamelCase_    ,   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() = }")






