

from collections import OrderedDict
from typing import Mapping

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


lowerCamelCase_					  =   logging.get_logger(__name__)

lowerCamelCase_					  =   {
    '''mnaylor/mega-base-wikitext''': '''https://huggingface.co/mnaylor/mega-base-wikitext/resolve/main/config.json''',
}







class 					__lowerCamelCase							(      __snake_case      ):
      lowerCamelCase_      : str  			=   'mega'







      def __init__(	self				,    lowerCamelCase=30522				,    lowerCamelCase=128				,    lowerCamelCase=4				,    lowerCamelCase=256				,    lowerCamelCase=16				,    lowerCamelCase=True				,    lowerCamelCase=64				,    lowerCamelCase=False				,    lowerCamelCase=-1				,    lowerCamelCase=None				,    lowerCamelCase=True				,    lowerCamelCase="scalenorm"				,    lowerCamelCase=True				,    lowerCamelCase="silu"				,    lowerCamelCase="softmax"				,    lowerCamelCase=0.1				,    lowerCamelCase=0.1				,    lowerCamelCase=0.1				,    lowerCamelCase=False				,    lowerCamelCase=True				,    lowerCamelCase=256				,    lowerCamelCase=True				,    lowerCamelCase=0.1				,    lowerCamelCase=2048				,    lowerCamelCase=False				,    lowerCamelCase=2				,    lowerCamelCase=0.02				,    lowerCamelCase=0.2				,    lowerCamelCase=0.02				,    lowerCamelCase=1.0				,    lowerCamelCase=1				,    lowerCamelCase=0				,    lowerCamelCase=2				,    lowerCamelCase="rotary"				,    lowerCamelCase=None				,    lowerCamelCase=True				,    lowerCamelCase=True				,    **lowerCamelCase				,    )		->			List[Any]:
        super().__init__(pad_token_id=lowerCamelCase				,    bos_token_id=lowerCamelCase				,    eos_token_id=lowerCamelCase				,    **lowerCamelCase  )

        snake_case_					= vocab_size
        snake_case_					= hidden_size
        snake_case_					= num_hidden_layers
        snake_case_					= activation
        snake_case_					= attention_activation
        snake_case_					= intermediate_size
        snake_case_					= ema_projection_size
        snake_case_					= bidirectional
        snake_case_					= shared_representation_size
        snake_case_					= use_chunking
        snake_case_					= chunk_size
        snake_case_					= truncation
        snake_case_					= normalize_before_mega
        snake_case_					= normalization_type
        snake_case_					= norm_affine
        snake_case_					= dropout_prob
        snake_case_					= hidden_dropout_prob
        snake_case_					= attention_probs_dropout_prob
        snake_case_					= use_feature_dropout
        snake_case_					= use_normalized_ffn
        snake_case_					= nffn_hidden_size
        snake_case_					= normalize_before_ffn
        snake_case_					= nffn_activation_dropout_prob
        snake_case_					= max_positions
        snake_case_					= add_token_type_embeddings
        snake_case_					= type_vocab_size
        snake_case_					= initializer_range
        snake_case_					= ema_delta_alpha_range
        snake_case_					= ema_beta_range
        snake_case_					= ema_gamma_omega_range
        snake_case_					= relative_positional_bias
        snake_case_					= use_cache
        snake_case_					= classifier_dropout
        snake_case_					= add_lm_hidden_dense_layer
        snake_case_					= 1  # not used but required by Hugging Face







class 					__lowerCamelCase							(      __snake_case      ):







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


def   UpperCamelCase(   lowercase_     ,   lowercase_				)      ->							Union[str, Any]:





  '''simple docstring'''





  if len(str(lowercase_				)				) == 1 or len(str(lowercase_				)				) == 1:
    return a * b

  snake_case_					= max(len(str(lowercase_				)				)     ,   len(str(lowercase_				)				)				)
  snake_case_					= ma // 2

  snake_case_		,							snake_case_					= divmod(lowercase_     ,   10**ma				)
  snake_case_		,							snake_case_					= divmod(lowercase_     ,   10**ma				)

  snake_case_					= karatsuba(lowercase_     ,   lowercase_				)
  snake_case_					= karatsuba((aa + aa)     ,   (ba + ba)				)
  snake_case_					= karatsuba(lowercase_     ,   lowercase_				)

  return (z * 10 ** (2 * ma)) + ((y - z - x) * 10 ** (ma)) + (x)



def   UpperCamelCase(   )      ->							Dict:





  '''simple docstring'''





  print(karatsuba(15463     ,   23489				)				)


if __name__ == "__main__":
    main()