





from hashlib import mda, shaaaa

_UpperCamelCase    =	(shaaaa, mda)




class 			_lowerCamelCase	:



      """simple docstring"""






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






        '''simple docstring'''






        __snake_case				:			Tuple            =    0b0
        __snake_case				:			Optional[int]            =    size







      def   UpperCAmelCase						(	self			,  UpperCAmelCase				)    ->				None:






        '''simple docstring'''






        __snake_case				:			Tuple            =    self.hash_(UpperCAmelCase				)
        self.bitarray |= h







      def   UpperCAmelCase						(	self			,  UpperCAmelCase				)    ->				bool:






        '''simple docstring'''






        __snake_case				:			int            =    self.hash_(UpperCAmelCase				)
        return (h & self.bitarray) == h







      def __contains__(	self			,  UpperCAmelCase				)    ->				bool:






        '''simple docstring'''






        return self.exists(UpperCAmelCase				)







      def   UpperCAmelCase						(	self			,  UpperCAmelCase				)    ->				str:






        '''simple docstring'''






        __snake_case				:			Tuple            =    bin(UpperCAmelCase				)[2:]
        return res.zfill(self.size				)







      @property
      def   UpperCAmelCase						(	self				)    ->				str:






        '''simple docstring'''






        return self.format_bin(self.bitarray				)







      def   UpperCAmelCase						(	self			,  UpperCAmelCase				)    ->				int:






        '''simple docstring'''






        __snake_case				:			Union[str, Any]            =    0b0
        for func in HASH_FUNCTIONS:
          __snake_case				:			List[Any]            =    (
              int.from_bytes(func(value.encode()				).digest()			,  "little"				) % self.size
          )
          res |= 2**position
        return res







      def   UpperCAmelCase						(	self			,  UpperCAmelCase				)    ->				str:






        '''simple docstring'''






        return self.format_bin(self.hash_(UpperCAmelCase				)				)







      @property
      def   UpperCAmelCase						(	self				)    ->				float:






        '''simple docstring'''






        __snake_case				:			str            =    bin(self.bitarray				).count("1"				)
        return (n_ones / self.size) ** len(UpperCAmelCase				)








import warnings

from ...utils import logging
from .image_processing_maskformer import MaskFormerImageProcessor


_UpperCamelCase    =	logging.get_logger(__name__)




class 			_lowerCamelCase	(      a      ):



      """simple docstring"""






      def __init__(	self			,  *UpperCAmelCase			,  **UpperCAmelCase				)    ->				None:






        '''simple docstring'''






        warnings.warn(
            "The class MaskFormerFeatureExtractor is deprecated and will be removed in version 5 of Transformers."
            " Please use MaskFormerImageProcessor instead."			,  UpperCAmelCase			,  )
        super().__init__(*UpperCAmelCase			,  **UpperCAmelCase				)

