"""simple docstring"""
from hashlib import mda, shaaaa

lowercase__   			=      (shaaaa, mda)




class   __snake_case			:



      def __init__(		self       ,     lowercase = 8)      ->     None:





        '''simple docstring'''





        a__:	Optional[Any]     				=      0b0
        a__:	Dict     				=      size



      def     lowerCamelCase_  (		self       ,     lowercase)      ->     None:





        '''simple docstring'''





        a__:	Union[str, Any]     				=      self.hash_(lowercase)
        self.bitarray |= h



      def     lowerCamelCase_  (		self       ,     lowercase)      ->     bool:





        '''simple docstring'''





        a__:	Tuple     				=      self.hash_(lowercase)
        return (h & self.bitarray) == h



      def __contains__(		self       ,     lowercase)      ->     bool:





        '''simple docstring'''





        return self.exists(lowercase)



      def     lowerCamelCase_  (		self       ,     lowercase)      ->     str:





        '''simple docstring'''





        a__:	Optional[int]     				=      bin(lowercase)[2:]
        return res.zfill(self.size)



      @property
      def     lowerCamelCase_  (		self)      ->     str:





        '''simple docstring'''





        return self.format_bin(self.bitarray)



      def     lowerCamelCase_  (		self       ,     lowercase)      ->     int:





        '''simple docstring'''





        a__:	Tuple     				=      0b0
        for func in HASH_FUNCTIONS:
          a__:	Dict     				=      (
              int.from_bytes(func(value.encode()).digest()       ,     'little') % self.size
          )
          res |= 2**position
        return res



      def     lowerCamelCase_  (		self       ,     lowercase)      ->     str:





        '''simple docstring'''





        return self.format_bin(self.hash_(lowercase))



      @property
      def     lowerCamelCase_  (		self)      ->     float:





        '''simple docstring'''





        a__:	str     				=      bin(self.bitarray).count('1')
        return (n_ones / self.size) ** len(lowercase)










from typing import TYPE_CHECKING

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


a 			=							{
    'configuration_mobilevitv2': [
        'MOBILEVITV2_PRETRAINED_CONFIG_ARCHIVE_MAP',
        'MobileViTV2Config',
        'MobileViTV2OnnxConfig',
    ],
}


try:
 if not is_torch_available():
  raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
 pass
else:
 a 			=							[
     'MOBILEVITV2_PRETRAINED_MODEL_ARCHIVE_LIST',
     'MobileViTV2ForImageClassification',
     'MobileViTV2ForSemanticSegmentation',
     'MobileViTV2Model',
     'MobileViTV2PreTrainedModel',
 ]

if TYPE_CHECKING:
 from .configuration_mobilevitva import (
     MOBILEVITV2_PRETRAINED_CONFIG_ARCHIVE_MAP,
     MobileViTVaConfig,
     MobileViTVaOnnxConfig,
 )

 try:
  if not is_torch_available():
   raise OptionalDependencyNotAvailable()
 except OptionalDependencyNotAvailable:
  pass
 else:
  from .modeling_mobilevitva import (
      MOBILEVITV2_PRETRAINED_MODEL_ARCHIVE_LIST,
      MobileViTVaForImageClassification,
      MobileViTVaForSemanticSegmentation,
      MobileViTVaModel,
      MobileViTVaPreTrainedModel,
  )

else:
 import sys

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


