
"""simple docstring"""

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


SCREAMING_SNAKE_CASE_            =    logging.get_logger(__name__)

SCREAMING_SNAKE_CASE_            =    {
    '''google/fnet-base''': '''https://huggingface.co/google/fnet-base/resolve/main/config.json''',
    '''google/fnet-large''': '''https://huggingface.co/google/fnet-large/resolve/main/config.json'''
    # See all FNet models at https://huggingface.co/models?filter=fnet
}
class   _UpperCAmelCase				(		SCREAMING_SNAKE_CASE_				):
      __SCREAMING_SNAKE_CASE :				List[Any]				   =						"fnet"




      def __init__(				self ,							lowercase_=3_2_0_0_0 ,							lowercase_=7_6_8 ,							lowercase_=1_2 ,							lowercase_=3_0_7_2 ,							lowercase_="gelu_new" ,							lowercase_=0.1 ,							lowercase_=5_1_2 ,							lowercase_=4 ,							lowercase_=0.0_2 ,							lowercase_=1E-12 ,							lowercase_=False ,							lowercase_=5_1_2 ,							lowercase_=3 ,							lowercase_=1 ,							lowercase_=2 ,							**lowercase_ ,							)    ->       int:
          super().__init__(pad_token_id=lowercase_ ,							bos_token_id=lowercase_ ,							eos_token_id=lowercase_ ,							**lowercase_				)

          UpperCAmelCase          =       vocab_size
          UpperCAmelCase          =       max_position_embeddings
          UpperCAmelCase          =       hidden_size
          UpperCAmelCase          =       num_hidden_layers
          UpperCAmelCase          =       intermediate_size
          UpperCAmelCase          =       hidden_act
          UpperCAmelCase          =       hidden_dropout_prob
          UpperCAmelCase          =       initializer_range
          UpperCAmelCase          =       type_vocab_size
          UpperCAmelCase          =       layer_norm_eps
          UpperCAmelCase          =       use_tpu_fourier_optimizations
          UpperCAmelCase          =       tpu_short_seq_length





"""simple docstring"""

import math




def      lowercase__    (       lowerCAmelCase					:       str			,					lowerCAmelCase					:       Optional[Any]			)			->   List[Any]:






    """simple docstring"""




    if 0 not in (x, y):
        # We use the relation x^y = y*log10(x), where 10 is the base.
        return y * math.logaa(lowerCAmelCase			)
    else:
        if x == 0:  # 0 raised to any number is 0
            return 0
        elif y == 0:
            return 1  # any number raised to 0 is 1
    raise AssertionError('This should never happen'			)


if __name__ == "__main__":  # Main function
   # Read two numbers from input and typecast them to int using map function.
   # Here x is the base and y is the power.
   SCREAMING_SNAKE_CASE_            =    '''Enter the base and the power separated by a comma: '''
   SCREAMING_SNAKE_CASE_       ,    SCREAMING_SNAKE_CASE_            =    map(int, input(prompt).split(''','''))
   SCREAMING_SNAKE_CASE_       ,    SCREAMING_SNAKE_CASE_            =    map(int, input(prompt).split(''','''))

   # We find the log of each number, using the function res(), which takes two
   # arguments.
   SCREAMING_SNAKE_CASE_            =    res(xa, ya)
   SCREAMING_SNAKE_CASE_            =    res(xa, ya)

   # We check for the largest number
   if resa > resa:
      print('''Largest number is''', xa, '''^''', ya)
   elif resa > resa:
      print('''Largest number is''', xa, '''^''', ya)
   else:
      print('''Both are equal''')



