





def 							_lowerCAmelCase (  _a   :					int = "The quick brown fox jumps over the lazy dog"					,   )	->			bool:
     lowerCAmelCase_					:       Optional[int]    =		set()

     # Replace all the whitespace in our sentence
     lowerCAmelCase_					:       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 							_lowerCAmelCase (  _a   :					Union[str, Any] = "The quick brown fox jumps over the lazy dog"					,   )	->			bool:
     lowerCAmelCase_					:       int    =		[False] * 26
     for char in input_str:
          if char.islower():
               lowerCAmelCase_					:       Tuple    =		True
          elif char.isupper():
               lowerCAmelCase_					:       str    =		True
     return all(_lowerCAmelCase			)






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






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

     lowerCAmelCase_					:       Any    =		"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()







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


UpperCAmelCase_					:   Tuple 							=						logging.get_logger(__name__)

UpperCAmelCase_					:   List[str] 							=						{
    """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      lowercase__    (							__A  ):
  __UpperCamelCase	     =  """fnet"""







  def __init__(	self    ,						_lowercase=32_000    ,						_lowercase=768    ,						_lowercase=12    ,						_lowercase=3_072    ,						_lowercase="gelu_new"    ,						_lowercase=0.1    ,						_lowercase=512    ,						_lowercase=4    ,						_lowercase=0.02    ,						_lowercase=1e-12    ,						_lowercase=False    ,						_lowercase=512    ,						_lowercase=3    ,						_lowercase=1    ,						_lowercase=2    ,						**_lowercase    ,						):
       super().__init__(pad_token_id=_lowercase    ,						bos_token_id=_lowercase    ,						eos_token_id=_lowercase    ,						**_lowercase						)

       lowerCAmelCase_					:       Optional[Any]    =		vocab_size
       lowerCAmelCase_					:       List[str]    =		max_position_embeddings
       lowerCAmelCase_					:       str    =		hidden_size
       lowerCAmelCase_					:       Any    =		num_hidden_layers
       lowerCAmelCase_					:       Optional[int]    =		intermediate_size
       lowerCAmelCase_					:       int    =		hidden_act
       lowerCAmelCase_					:       List[str]    =		hidden_dropout_prob
       lowerCAmelCase_					:       Tuple    =		initializer_range
       lowerCAmelCase_					:       int    =		type_vocab_size
       lowerCAmelCase_					:       str    =		layer_norm_eps
       lowerCAmelCase_					:       Optional[Any]    =		use_tpu_fourier_optimizations
       lowerCAmelCase_					:       Union[str, Any]    =		tpu_short_seq_length
