





from ...configuration_utils import PretrainedConfig



class  A__       (	__snake_case      ):
      _UpperCAmelCase     :str						   =       'bert-generation'





      def __init__(			self	,							A_=5_0358	,							A_=1024	,							A_=24	,							A_=16	,							A_=4096	,							A_="gelu"	,							A_=0.1	,							A_=0.1	,							A_=512	,							A_=0.02	,							A_=1e-12	,							A_=0	,							A_=2	,							A_=1	,							A_="absolute"	,							A_=True	,							**A_	,							):
       '''simple docstring'''




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

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







def 		A_    (					_lowerCAmelCase = "The quick brown fox jumps over the lazy dog"							,       )						->			bool:
 UpperCamelCase     : Union[str, Any]	     =       set()

 # Replace all the whitespace in our sentence
 UpperCamelCase     : Union[str, Any]	     =       input_str.replace(" "							,       ""					)
 for alpha in input_str:
  if "a" <= alpha.lower() <= "z":
   frequency.add(alpha.lower()					)
 return len(_lowerCAmelCase					) == 26



def 		A_    (					_lowerCAmelCase = "The quick brown fox jumps over the lazy dog"							,       )						->			bool:
 UpperCamelCase     : List[Any]	     =       [False] * 26
 for char in input_str:
  if char.islower():
   UpperCamelCase     : Tuple	     =       True
  elif char.isupper():
   UpperCamelCase     : str	     =       True
 return all(_lowerCAmelCase					)



def 		A_    (					_lowerCAmelCase = "The quick brown fox jumps over the lazy dog"							,       )						->			bool:
 return len({char for char in input_str.lower() if char.isalpha()}					) == 26



def 		A_    (					)						->			None:
 from timeit import timeit

 UpperCamelCase     : Tuple	     =       "from __main__ import is_pangram, is_pangram_faster, is_pangram_fastest"
 print(timeit("is_pangram()"							,       setup=_lowerCAmelCase					)					)
 print(timeit("is_pangram_faster()"							,       setup=_lowerCAmelCase					)					)
 print(timeit("is_pangram_fastest()"							,       setup=_lowerCAmelCase					)					)
 # 5.348480500048026, 2.6477354579837993, 1.8470395830227062
 # 5.036091582966037, 2.644472333951853,  1.8869528750656173


if __name__ == "__main__":
    import doctest

    doctest.testmod()
    benchmark()
