






"""simple docstring"""





from collections import OrderedDict
from typing import Mapping

from ...configuration_utils import PretrainedConfig
from ...onnx import OnnxConfig
from ...utils import logging


A__					: Dict=	logging.get_logger(__name__)

A__					: List[str]=	{
    """kssteven/ibert-roberta-base""": """https://huggingface.co/kssteven/ibert-roberta-base/resolve/main/config.json""",
    """kssteven/ibert-roberta-large""": """https://huggingface.co/kssteven/ibert-roberta-large/resolve/main/config.json""",
    """kssteven/ibert-roberta-large-mnli""": (
        """https://huggingface.co/kssteven/ibert-roberta-large-mnli/resolve/main/config.json"""
    ),
}
class    __lowerCamelCase    (  _a  ):
   a      :				Tuple 						="""ibert"""

   def __init__(					self ,				snake_case_=3_0522 ,				snake_case_=768 ,				snake_case_=12 ,				snake_case_=12 ,				snake_case_=3072 ,				snake_case_="gelu" ,				snake_case_=0.1 ,				snake_case_=0.1 ,				snake_case_=512 ,				snake_case_=2 ,				snake_case_=0.02 ,				snake_case_=1E-12 ,				snake_case_=1 ,				snake_case_=0 ,				snake_case_=2 ,				snake_case_="absolute" ,				snake_case_=False ,				snake_case_="none" ,				**snake_case_ ,				)		->       Optional[int]:
       super().__init__(pad_token_id=snake_case_ ,				bos_token_id=snake_case_ ,				eos_token_id=snake_case_ ,				**snake_case_      )

       UpperCamelCase__         =    vocab_size
       UpperCamelCase__         =    hidden_size
       UpperCamelCase__         =    num_hidden_layers
       UpperCamelCase__         =    num_attention_heads
       UpperCamelCase__         =    hidden_act
       UpperCamelCase__         =    intermediate_size
       UpperCamelCase__         =    hidden_dropout_prob
       UpperCamelCase__         =    attention_probs_dropout_prob
       UpperCamelCase__         =    max_position_embeddings
       UpperCamelCase__         =    type_vocab_size
       UpperCamelCase__         =    initializer_range
       UpperCamelCase__         =    layer_norm_eps
       UpperCamelCase__         =    position_embedding_type
       UpperCamelCase__         =    quant_mode
       UpperCamelCase__         =    force_dequant







class    __lowerCamelCase    (  _a  ):

   @property
   def 						SCREAMING_SNAKE_CASE__ (					self      )		->       Mapping[str, Mapping[int, str]]:
       if self.task == "multiple-choice":
           UpperCamelCase__         =    {0: 'batch', 1: 'choice', 2: 'sequence'}
       else:
           UpperCamelCase__         =    {0: 'batch', 1: 'sequence'}
       return OrderedDict(
           [
               ('input_ids', dynamic_axis),
               ('attention_mask', dynamic_axis),
           ]      )












"""simple docstring"""





from collections import defaultdict
from math import ceil, sqrt







def   lowerCAmelCase_( SCREAMING_SNAKE_CASE = 1_00_00_00 ,	SCREAMING_SNAKE_CASE = 10					)					->	int:
    """simple docstring"""

    UpperCamelCase__         =    defaultdict(SCREAMING_SNAKE_CASE					)

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

        hole_width_lower_bound += (outer_width - hole_width_lower_bound) % 2

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




