





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			       =      {
    'andreasmadsen/efficient_mlm_m0.40': (
        'https://huggingface.co/andreasmadsen/efficient_mlm_m0.40/resolve/main/config.json'
    ),
}







class 			__A       (      lowerCamelCase__  ):




      """simple docstring"""







      UpperCAmelCase__						=      """roberta-prelayernorm"""


      def __init__(		self      ,							a__=5_0265      ,							a__=768      ,							a__=12      ,							a__=12      ,							a__=3072      ,							a__="gelu"      ,							a__=0.1      ,							a__=0.1      ,							a__=512      ,							a__=2      ,							a__=0.02      ,							a__=1e-12      ,							a__=1      ,							a__=0      ,							a__=2      ,							a__="absolute"      ,							a__=True      ,							a__=None      ,							**a__      ,							):



             """simple docstring"""





             super().__init__(pad_token_id=a__      ,							bos_token_id=a__      ,							eos_token_id=a__      ,							**a__)

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







class 			__A       (      lowerCamelCase__  ):




      """simple docstring"""







      @property
      def 				__snake_case			(		self):



             """simple docstring"""





             if self.task == "multiple-choice":
                    _lowerCamelCase							:     Union[str, Any]	=		{0: '''batch''', 1: '''choice''', 2: '''sequence'''}
             else:
                    _lowerCamelCase							:     Any	=		{0: '''batch''', 1: '''sequence'''}
             return OrderedDict(
                 [
                     ('''input_ids''', dynamic_axis),
                     ('''attention_mask''', dynamic_axis),
                 ])








_lowerCamelCase			       =      [4, 1, 7, 4, 2, 6, 4, 1, 5, 3, 7, 5]
_lowerCamelCase			       =      [3, 7, 7, 4, 2, 6, 4, 1, 5, 3, 7, 5]
_lowerCamelCase			       =      {
    0: 'Sunday',
    1: 'Monday',
    2: 'Tuesday',
    3: 'Wednesday',
    4: 'Thursday',
    5: 'Friday',
    6: 'Saturday',
}




def    __UpperCAmelCase(      lowercase_ ,    lowercase_ ,    lowercase_      ):
       assert len(str(lowercase_      )      ) > 2, "year should be in YYYY format"
       assert 1 <= month <= 12, "month should be between 1 to 12"
       assert 1 <= day <= 31, "day should be between 1 to 31"

       # Doomsday algorithm:
       _lowerCamelCase							:     List[Any]	=		year // 1_00
       _lowerCamelCase							:     Dict	=		(5 * (century % 4) + 2) % 7
       _lowerCamelCase							:     Tuple	=		year % 1_00
       _lowerCamelCase							:     int	=		centurian % 12
       _lowerCamelCase							:     List[Any]	=		(
           (centurian // 12) + centurian_m + (centurian_m // 4) + century_anchor
       ) % 7
       _lowerCamelCase							:     List[Any]	=		(
           DOOMSDAY_NOT_LEAP[month - 1]
           if (year % 4 != 0) or (centurian == 0 and (year % 4_00) == 0)
           else DOOMSDAY_LEAP[month - 1]
       )
       _lowerCamelCase							:     Any	=		(dooms_day + day - day_anchor) % 7
       return WEEK_DAY_NAMES[week_day]


if __name__ == "__main__":
       import doctest

       doctest.testmod()

