

from typing import TYPE_CHECKING

# rely on isort to merge the imports
from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


snake_case_			  = {'''configuration_focalnet''': ['''FOCALNET_PRETRAINED_CONFIG_ARCHIVE_MAP''', '''FocalNetConfig''']}


try:
       if not is_torch_available():
              raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
       pass
else:
       snake_case_			  = [
           '''FOCALNET_PRETRAINED_MODEL_ARCHIVE_LIST''',
           '''FocalNetForImageClassification''',
           '''FocalNetForMaskedImageModeling''',
           '''FocalNetBackbone''',
           '''FocalNetModel''',
           '''FocalNetPreTrainedModel''',
       ]

if TYPE_CHECKING:
       from .configuration_focalnet import FOCALNET_PRETRAINED_CONFIG_ARCHIVE_MAP, FocalNetConfig

       try:
              if not is_torch_available():
                     raise OptionalDependencyNotAvailable()
       except OptionalDependencyNotAvailable:
              pass
       else:
              from .modeling_focalnet import (
                  FOCALNET_PRETRAINED_MODEL_ARCHIVE_LIST,
                  FocalNetBackbone,
                  FocalNetForImageClassification,
                  FocalNetForMaskedImageModeling,
                  FocalNetModel,
                  FocalNetPreTrainedModel,
              )

else:
       import sys

       snake_case_			  = _LazyModule(__name__, globals()['''__file__'''], _import_structure, module_spec=__spec__)




def 	snake_case__			(    SCREAMING_SNAKE_CASE_		:    str = "The quick brown fox jumps over the lazy dog"	,     ):



     '''simple docstring'''





     lowercase__    :   str      =       set()

     # Replace all the whitespace in our sentence
     lowercase__    :   Tuple      =       input_str.replace(' '	,     ''			)
     for alpha in input_str:
          if "a" <= alpha.lower() <= "z":
               frequency.add(alpha.lower()			)
     return len(SCREAMING_SNAKE_CASE_			) == 26

def 	snake_case__			(    SCREAMING_SNAKE_CASE_		:    str = "The quick brown fox jumps over the lazy dog"	,     ):



     '''simple docstring'''





     lowercase__    :   Dict      =       [False] * 26
     for char in input_str:
          if char.islower():
               lowercase__    :   List[Any]      =       True
          elif char.isupper():
               lowercase__    :   Optional[Any]      =       True
     return all(SCREAMING_SNAKE_CASE_			)

def 	snake_case__			(    SCREAMING_SNAKE_CASE_		:    str = "The quick brown fox jumps over the lazy dog"	,     ):



     '''simple docstring'''





     return len({char for char in input_str.lower() if char.isalpha()}			) == 26

def 	snake_case__			(    ):



     '''simple docstring'''





     from timeit import timeit

     lowercase__    :   Union[str, Any]      =       'from __main__ import is_pangram, is_pangram_faster, is_pangram_fastest'
     print(timeit('is_pangram()'	,     setup=SCREAMING_SNAKE_CASE_			)			)
     print(timeit('is_pangram_faster()'	,     setup=SCREAMING_SNAKE_CASE_			)			)
     print(timeit('is_pangram_fastest()'	,     setup=SCREAMING_SNAKE_CASE_			)			)
     # 5.348480500048026, 2.6477354579837993, 1.8470395830227062
     # 5.036091582966037, 2.644472333951853,  1.8869528750656173


if __name__ == "__main__":
       import doctest

       doctest.testmod()
       benchmark()

