





"""simple docstring"""




from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_sentencepiece_available


lowerCamelCase_     :						int						=					{}


try:
   if not is_sentencepiece_available():
      raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
   pass
else:
   lowerCamelCase_     :						Tuple						=					['MLukeTokenizer']

if TYPE_CHECKING:
   try:
      if not is_sentencepiece_available():
         raise OptionalDependencyNotAvailable()
   except OptionalDependencyNotAvailable:
      pass
   else:
      from .tokenization_mluke import MLukeTokenizer


else:
   import sys

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






"""simple docstring"""




def 						UpperCAmelCase__		(     _UpperCAmelCase					):






  """simple docstring"""





  if isinstance(_UpperCAmelCase ,					_UpperCAmelCase					):
    raise TypeError('\'float\' object cannot be interpreted as an integer'					)
  if isinstance(_UpperCAmelCase ,					_UpperCAmelCase					):
    raise TypeError('\'str\' object cannot be interpreted as an integer'					)

  if num == 0:
    return "0b0"

  A_  :       str										=  False

  if num < 0:
    A_  :       Dict										=  True
    A_  :       Union[str, Any]										=  -num

  A_  :       list[int]										=  []
  while num > 0:
    binary.insert(0 ,					num % 2					)
    num >>= 1

  if negative:
    return "-0b" + "".join(str(_UpperCAmelCase					) for e in binary					)

  return "0b" + "".join(str(_UpperCAmelCase					) for e in binary					)


if __name__ == "__main__":
   import doctest

   doctest.testmod()