


'''simple docstring'''







from collections import defaultdict


def 	SCREAMING_SNAKE_CASE_					(  _UpperCAmelCase	:	str    ,_UpperCAmelCase	:	str  )  ->			bool:
       _a    : Optional[Any]     					=first_str.lower().strip()
       _a    : List[str]     					=second_str.lower().strip()

       # Remove whitespace
       _a    : int     					=first_str.replace(""" """    ,""""""  )
       _a    : List[Any]     					=second_str.replace(""" """    ,""""""  )

       # Strings of different lengths are not anagrams
       if len(_UpperCAmelCase  ) != len(_UpperCAmelCase  ):
              return False

       # Default values for count should be 0
       _a    : defaultdict[str, int]     					=defaultdict(_UpperCAmelCase  )

       # For each character in input strings,
       # increment count in the corresponding
       for i in range(len(_UpperCAmelCase  )  ):
              count[first_str[i]] += 1
              count[second_str[i]] -= 1

       return all(_count == 0 for _count in count.values()  )


if __name__ == "__main__":
   from doctest import testmod

   testmod()
   A__:    Tuple					    =       input('''Enter the first string ''').strip()
   A__:    Optional[int]					    =       input('''Enter the second string ''').strip()

   A__:    int					    =       check_anagrams(input_a, input_b)
   print(F"{input_a} and {input_b} are {'' if status else 'not '}anagrams.")






'''simple docstring'''







from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available, is_vision_available


A__:    List[str]					    =       {
    '''configuration_chinese_clip''': [
        '''CHINESE_CLIP_PRETRAINED_CONFIG_ARCHIVE_MAP''',
        '''ChineseCLIPConfig''',
        '''ChineseCLIPOnnxConfig''',
        '''ChineseCLIPTextConfig''',
        '''ChineseCLIPVisionConfig''',
    ],
    '''processing_chinese_clip''': ['''ChineseCLIPProcessor'''],
}

try:
   if not is_vision_available():
      raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
   pass
else:
   A__:    Optional[int]					    =       ['''ChineseCLIPFeatureExtractor''']
   A__:    Any					    =       ['''ChineseCLIPImageProcessor''']

try:
   if not is_torch_available():
      raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
   pass
else:
   A__:    Dict					    =       [
       '''CHINESE_CLIP_PRETRAINED_MODEL_ARCHIVE_LIST''',
       '''ChineseCLIPModel''',
       '''ChineseCLIPPreTrainedModel''',
       '''ChineseCLIPTextModel''',
       '''ChineseCLIPVisionModel''',
   ]

if TYPE_CHECKING:
   from .configuration_chinese_clip import (
       CHINESE_CLIP_PRETRAINED_CONFIG_ARCHIVE_MAP,
       ChineseCLIPConfig,
       ChineseCLIPOnnxConfig,
       ChineseCLIPTextConfig,
       ChineseCLIPVisionConfig,
   )
   from .processing_chinese_clip import ChineseCLIPProcessor

   try:
      if not is_vision_available():
         raise OptionalDependencyNotAvailable()
   except OptionalDependencyNotAvailable:
      pass
   else:
      from .feature_extraction_chinese_clip import ChineseCLIPFeatureExtractor, ChineseCLIPImageProcessor

   try:
      if not is_torch_available():
         raise OptionalDependencyNotAvailable()
   except OptionalDependencyNotAvailable:
      pass
   else:
      from .modeling_chinese_clip import (
          CHINESE_CLIP_PRETRAINED_MODEL_ARCHIVE_LIST,
          ChineseCLIPModel,
          ChineseCLIPPreTrainedModel,
          ChineseCLIPTextModel,
          ChineseCLIPVisionModel,
      )

else:
   import sys

   A__:    str					    =       _LazyModule(__name__, globals()['''__file__'''], _import_structure, module_spec=__spec__)


