






'''simple docstring'''



from collections import OrderedDict
from typing import Mapping

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


__UpperCamelCase   :							Union[str, Any]         =   logging.get_logger(__name__)

__UpperCamelCase   :							Optional[int]         =   {
    """xlm-mlm-en-2048""": """https://huggingface.co/xlm-mlm-en-2048/resolve/main/config.json""",
    """xlm-mlm-ende-1024""": """https://huggingface.co/xlm-mlm-ende-1024/resolve/main/config.json""",
    """xlm-mlm-enfr-1024""": """https://huggingface.co/xlm-mlm-enfr-1024/resolve/main/config.json""",
    """xlm-mlm-enro-1024""": """https://huggingface.co/xlm-mlm-enro-1024/resolve/main/config.json""",
    """xlm-mlm-tlm-xnli15-1024""": """https://huggingface.co/xlm-mlm-tlm-xnli15-1024/resolve/main/config.json""",
    """xlm-mlm-xnli15-1024""": """https://huggingface.co/xlm-mlm-xnli15-1024/resolve/main/config.json""",
    """xlm-clm-enfr-1024""": """https://huggingface.co/xlm-clm-enfr-1024/resolve/main/config.json""",
    """xlm-clm-ende-1024""": """https://huggingface.co/xlm-clm-ende-1024/resolve/main/config.json""",
    """xlm-mlm-17-1280""": """https://huggingface.co/xlm-mlm-17-1280/resolve/main/config.json""",
    """xlm-mlm-100-1280""": """https://huggingface.co/xlm-mlm-100-1280/resolve/main/config.json""",
}
class 				__SCREAMING_SNAKE_CASE							(				_lowerCAmelCase  ):
      __a	       ="xlm"
      __a	       ={
          "hidden_size": "emb_dim",
          "num_attention_heads": "n_heads",
          "num_hidden_layers": "n_layers",
          "n_words": "vocab_size",  # For backward compatibility
      }




      def __init__(	self			, lowerCamelCase=3_0145			, lowerCamelCase=2048			, lowerCamelCase=12			, lowerCamelCase=16			, lowerCamelCase=0.1			, lowerCamelCase=0.1			, lowerCamelCase=True			, lowerCamelCase=False			, lowerCamelCase=False			, lowerCamelCase=False			, lowerCamelCase=1			, lowerCamelCase=True			, lowerCamelCase=512			, lowerCamelCase=2048**-0.5			, lowerCamelCase=1e-12			, lowerCamelCase=0.02			, lowerCamelCase=0			, lowerCamelCase=1			, lowerCamelCase=2			, lowerCamelCase=3			, lowerCamelCase=5			, lowerCamelCase=True			, lowerCamelCase="first"			, lowerCamelCase=True			, lowerCamelCase=None			, lowerCamelCase=True			, lowerCamelCase=0.1			, lowerCamelCase=5			, lowerCamelCase=5			, lowerCamelCase=0			, lowerCamelCase=0			, lowerCamelCase=2			, lowerCamelCase=0			, **lowerCamelCase			, )				->Dict:



         '''simple docstring'''
         __a					  =     vocab_size
         __a					  =     emb_dim
         __a					  =     n_layers
         __a					  =     n_heads
         __a					  =     dropout
         __a					  =     attention_dropout
         __a					  =     gelu_activation
         __a					  =     sinusoidal_embeddings
         __a					  =     causal
         __a					  =     asm
         __a					  =     n_langs
         __a					  =     use_lang_emb
         __a					  =     layer_norm_eps
         __a					  =     bos_index
         __a					  =     eos_index
         __a					  =     pad_index
         __a					  =     unk_index
         __a					  =     mask_index
         __a					  =     is_encoder
         __a					  =     max_position_embeddings
         __a					  =     embed_init_std
         __a					  =     init_std
         __a					  =     summary_type
         __a					  =     summary_use_proj
         __a					  =     summary_activation
         __a					  =     summary_proj_to_labels
         __a					  =     summary_first_dropout
         __a					  =     start_n_top
         __a					  =     end_n_top
         __a					  =     mask_token_id
         __a					  =     lang_id

         if "n_words" in kwargs:
            __a					  =     kwargs['n_words']

         super().__init__(pad_token_id=lowerCamelCase			, bos_token_id=lowerCamelCase			, **lowerCamelCase   )







class 				__SCREAMING_SNAKE_CASE							(				_lowerCAmelCase  ):




      @property
      def 			__UpperCamelCase				(	self   )				->Mapping[str, Mapping[int, str]]:



         '''simple docstring'''
         if self.task == "multiple-choice":
            __a					  =     {0: 'batch', 1: 'choice', 2: 'sequence'}
         else:
            __a					  =     {0: 'batch', 1: 'sequence'}
         return OrderedDict(
             [
                 ('input_ids', dynamic_axis),
                 ('attention_mask', dynamic_axis),
                 ('token_type_ids', dynamic_axis),
             ]   )







'''simple docstring'''



def  __UpperCAmelCase						(					SCREAMING_SNAKE_CASE__:						str     )	->      bool:

   """simple docstring"""
   if not all(x.isalpha() for x in string     ):
      raise ValueError('String must only contain alphabetic characters.'     )

   __a					  =     sorted(string.lower()     )
   return len(SCREAMING_SNAKE_CASE__     ) == len(set(SCREAMING_SNAKE_CASE__     )     )


if __name__ == "__main__":
 __UpperCamelCase   :							int         =   input("""Enter a string """).strip()

 __UpperCamelCase   :							Tuple         =   is_isogram(input_str)
 print(f"""{input_str} is {"an" if isogram else "not an"} isogram.""")