




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


lowerCamelCase       :	Dict									=     logging.get_logger(__name__)

lowerCamelCase       :	Tuple									=     {"openai-gpt": "https://huggingface.co/openai-gpt/resolve/main/config.json"}







class 						A(		UpperCamelCase     ):



 '''simple docstring'''


 UpperCamelCase		     =		'''openai-gpt'''
 UpperCamelCase		     =		{
     '''max_position_embeddings''': '''n_positions''',
     '''hidden_size''': '''n_embd''',
     '''num_attention_heads''': '''n_head''',
     '''num_hidden_layers''': '''n_layer''',
 }

 def __init__(       self      :						Any		,							A_      :						Any=40478		,							A_      :						Optional[Any]=512		,							A_      :						List[str]=768		,							A_      :						Any=12		,							A_      :						Dict=12		,							A_      :						Optional[Any]="gelu"		,							A_      :						List[str]=0.1		,							A_      :						int=0.1		,							A_      :						List[Any]=0.1		,							A_      :						List[Any]=1E-5		,							A_      :						str=0.02		,							A_      :						Optional[Any]="cls_index"		,							A_      :						Any=True		,							A_      :						Optional[int]=None		,							A_      :						List[str]=True		,							A_      :						int=0.1		,							**A_      :						List[Any]		,							)     ->			List[str]:

       """simple docstring"""






       lowerCamelCase_	  =					vocab_size
       lowerCamelCase_	  =					n_positions
       lowerCamelCase_	  =					n_embd
       lowerCamelCase_	  =					n_layer
       lowerCamelCase_	  =					n_head
       lowerCamelCase_	  =					afn
       lowerCamelCase_	  =					resid_pdrop
       lowerCamelCase_	  =					embd_pdrop
       lowerCamelCase_	  =					attn_pdrop
       lowerCamelCase_	  =					layer_norm_epsilon
       lowerCamelCase_	  =					initializer_range
       lowerCamelCase_	  =					summary_type
       lowerCamelCase_	  =					summary_use_proj
       lowerCamelCase_	  =					summary_activation
       lowerCamelCase_	  =					summary_first_dropout
       lowerCamelCase_	  =					summary_proj_to_labels
       super().__init__(**A_						)









from __future__ import annotations

from fractions import Fraction

def     _SCREAMING_SNAKE_CASE    (							lowercase			: int			,							lowercase			: int  ):


      '''simple docstring'''



      return (
          num != den and num % 10 == den // 10 and (num // 10) / (den % 10) == num / den
      )

def     _SCREAMING_SNAKE_CASE    (							lowercase			: int  ):


      '''simple docstring'''



      lowerCamelCase_	  =					[]
      lowerCamelCase_	  =					11
      lowerCamelCase_	  =					int('1' + '0' * digit_len  )
      for num in range(lowercase			,							lowercase  ):
            while den <= 99:
                  if (num != den) and (num % 10 == den // 10) and (den % 10 != 0):
                        if is_digit_cancelling(lowercase			,							lowercase  ):
                              solutions.append(f"""{num}/{den}"""  )
                  den += 1
            num += 1
            lowerCamelCase_	  =					10
      return solutions

def     _SCREAMING_SNAKE_CASE    (							lowercase			: int = 2  ):


      '''simple docstring'''



      lowerCamelCase_	  =					1.0
      for fraction in fraction_list(lowercase  ):
            lowerCamelCase_	  =					Fraction(lowercase  )
            result *= frac.denominator / frac.numerator
      return int(lowercase  )


if __name__ == "__main__":
 print(solution())



