



import warnings

from ...utils import logging
from .image_processing_glpn import GLPNImageProcessor


A_		:     Union[str, Any]        =     logging.get_logger(__name__)



class 		_lowercase		(       UpperCAmelCase__	):

   def __init__(      self			:       int							,   *__lowerCAmelCase			:       Union[str, Any]							,   **__lowerCAmelCase			:       Dict							)       ->				None:


    """simple docstring"""






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






def 	UpperCAmelCase__      (      UpperCAmelCase__ :int ,					UpperCAmelCase__ :int					):






 '''simple docstring'''

 if a < 0 or b < 0:
  raise ValueError("the value of both inputs must be positive"					)

 a						=		str(bin(UpperCAmelCase__					)					)[2:]  # remove the leading "0b"
 a						=		str(bin(UpperCAmelCase__					)					)[2:]  # remove the leading "0b"

 a						=		max(len(UpperCAmelCase__					) ,					len(UpperCAmelCase__					)					)

 return "0b" + "".join(
     str(int(char_a == "1" and char_b == "1"					)					)
     for char_a, char_b in zip(a_binary.zfill(UpperCAmelCase__					) ,					b_binary.zfill(UpperCAmelCase__					)					)					)


if __name__ == "__main__":
     import doctest

     doctest.testmod()

