

'''simple docstring'''





def   _UpperCamelCase	(		__UpperCamelCase	)       ->			tuple[int, int]:
					try:
										lowerCamelCase_  				=      float(__UpperCamelCase	)
					except ValueError:
										raise ValueError('Please enter a valid number'	)
					lowerCamelCase_  				=      decimal - int(__UpperCamelCase	)
					if fractional_part == 0:
										return int(__UpperCamelCase	), 1
					else:
										lowerCamelCase_  				=      len(str(__UpperCamelCase	).split('.'	)[1]	)
										lowerCamelCase_  				=      int(decimal * (10**number_of_frac_digits)	)
										lowerCamelCase_  				=      10**number_of_frac_digits
										lowerCamelCase_				,lowerCamelCase_  				=      denominator, numerator
										while True:
															lowerCamelCase_  				=      dividend % divisor
															if remainder == 0:
																				break
															lowerCamelCase_				,lowerCamelCase_  				=      divisor, remainder
										lowerCamelCase_				,lowerCamelCase_  				=      numerator / divisor, denominator / divisor
										return int(__UpperCamelCase	), int(__UpperCamelCase	)


if __name__ == "__main__":
				print(f'''{decimal_to_fraction(2) = }''')
				print(f'''{decimal_to_fraction(89.0) = }''')
				print(f'''{decimal_to_fraction("67") = }''')
				print(f'''{decimal_to_fraction("45.0") = }''')
				print(f'''{decimal_to_fraction(1.5) = }''')
				print(f'''{decimal_to_fraction("6.25") = }''')
				print(f'''{decimal_to_fraction("78td") = }''')





"""simple docstring"""



from ...configuration_utils import PretrainedConfig





class 				a			(					lowercase      ):
      UpperCamelCase							:   Union[str, Any]           =     """bert-generation"""



      def __init__(   self     ,	UpperCamelCase_=50_358     ,	UpperCamelCase_=1_024     ,	UpperCamelCase_=24     ,	UpperCamelCase_=16     ,	UpperCamelCase_=4_096     ,	UpperCamelCase_="gelu"     ,	UpperCamelCase_=0.1     ,	UpperCamelCase_=0.1     ,	UpperCamelCase_=512     ,	UpperCamelCase_=0.02     ,	UpperCamelCase_=1E-12     ,	UpperCamelCase_=0     ,	UpperCamelCase_=2     ,	UpperCamelCase_=1     ,	UpperCamelCase_="absolute"     ,	UpperCamelCase_=True     ,	**UpperCamelCase_     ,	):
          super().__init__(pad_token_id=UpperCamelCase_     ,	bos_token_id=UpperCamelCase_     ,	eos_token_id=UpperCamelCase_     ,	**UpperCamelCase_      )

          UpperCAmelCase__	:      Optional[Any]     							=					vocab_size
          UpperCAmelCase__	:      Union[str, Any]     							=					hidden_size
          UpperCAmelCase__	:      Optional[Any]     							=					num_hidden_layers
          UpperCAmelCase__	:      Dict     							=					num_attention_heads
          UpperCAmelCase__	:      Dict     							=					hidden_act
          UpperCAmelCase__	:      Optional[Any]     							=					intermediate_size
          UpperCAmelCase__	:      Optional[int]     							=					hidden_dropout_prob
          UpperCAmelCase__	:      Tuple     							=					attention_probs_dropout_prob
          UpperCAmelCase__	:      List[Any]     							=					max_position_embeddings
          UpperCAmelCase__	:      Optional[int]     							=					initializer_range
          UpperCAmelCase__	:      Optional[int]     							=					layer_norm_eps
          UpperCAmelCase__	:      Union[str, Any]     							=					position_embedding_type
          UpperCAmelCase__	:      Dict     							=					use_cache

