
import functools
import logging
import os
import sys
import threading
from logging import (
    CRITICAL,  # NOQA
    DEBUG,  # NOQA
    ERROR,  # NOQA
    FATAL,  # NOQA
    INFO,  # NOQA
    NOTSET,  # NOQA
    WARN,  # NOQA
    WARNING,  # NOQA
)
from typing import Optional

import huggingface_hub.utils as hf_hub_utils
from tqdm import auto as tqdm_lib


lowerCamelCase_						: Optional[Any]         =  threading.Lock()
lowerCamelCase_						: Optional[logging.Handler]         =  None

lowerCamelCase_						: Union[str, Any]         =  {
    """debug""": logging.DEBUG,
    """info""": logging.INFO,
    """warning""": logging.WARNING,
    """error""": logging.ERROR,
    """critical""": logging.CRITICAL,
}

lowerCamelCase_						: List[str]         =  logging.WARNING

lowerCamelCase_						: Optional[int]         =  True







def        A__					(						)  ->	Any:
				UpperCamelCase_:							Dict	=						os.getenv("""TRANSFORMERS_VERBOSITY"""     ,    lowerCamelCase						)
				if env_level_str:
								if env_level_str in log_levels:
												return log_levels[env_level_str]
								else:
												logging.getLogger().warning(
												    F'''Unknown option TRANSFORMERS_VERBOSITY={env_level_str}, '''
												    F'''has to be one of: { ", ".join(log_levels.keys()						) }'''						)
				return _default_log_level







def        A__					(						)  ->	str:
				return __name__.split("""."""						)[0]







def        A__					(						)  ->	logging.Logger:
				return logging.getLogger(_get_library_name()						)







def        A__					(						)  ->	None:
				global _default_handler

				with _lock:
								if _default_handler:
												# This library has already configured the library root logger.
												return
								UpperCamelCase_:							Any	=						logging.StreamHandler()  # Set sys.stderr as stream.
								UpperCamelCase_:							Union[str, Any]	=						sys.stderr.flush

								# Apply our default configuration to the library root logger.
								UpperCamelCase_:							Union[str, Any]	=						_get_library_root_logger()
								library_root_logger.addHandler(_default_handler						)
								library_root_logger.setLevel(_get_default_logging_level()						)
								UpperCamelCase_:							Any	=						False







def        A__					(						)  ->	None:
				global _default_handler

				with _lock:
								if not _default_handler:
												return

								UpperCamelCase_:							List[Any]	=						_get_library_root_logger()
								library_root_logger.removeHandler(_default_handler						)
								library_root_logger.setLevel(logging.NOTSET						)
								UpperCamelCase_:							int	=						None







def        A__					(						)  ->	Optional[Any]:
				return log_levels







def        A__					(						lowerCamelCase = None						)  ->	logging.Logger:

				if name is None:
								UpperCamelCase_:							str	=						_get_library_name()

				_configure_library_root_logger()
				return logging.getLogger(lowerCamelCase						)







def        A__					(						)  ->	int:
				_configure_library_root_logger()
				return _get_library_root_logger().getEffectiveLevel()







def        A__					(						lowerCamelCase						)  ->	None:
				_configure_library_root_logger()
				_get_library_root_logger().setLevel(lowerCamelCase						)







def        A__					(						)  ->	Any:
				return set_verbosity(lowerCamelCase						)







def        A__					(						)  ->	Optional[int]:
				return set_verbosity(lowerCamelCase						)







def        A__					(						)  ->	Any:
				return set_verbosity(lowerCamelCase						)







def        A__					(						)  ->	Dict:
				return set_verbosity(lowerCamelCase						)







def        A__					(						)  ->	None:
				_configure_library_root_logger()

				assert _default_handler is not None
				_get_library_root_logger().removeHandler(_default_handler						)







def        A__					(						)  ->	None:
				_configure_library_root_logger()

				assert _default_handler is not None
				_get_library_root_logger().addHandler(_default_handler						)







def        A__					(						lowerCamelCase						)  ->	None:
				_configure_library_root_logger()

				assert handler is not None
				_get_library_root_logger().addHandler(lowerCamelCase						)







def        A__					(						lowerCamelCase						)  ->	None:
				_configure_library_root_logger()

				assert handler is not None and handler not in _get_library_root_logger().handlers
				_get_library_root_logger().removeHandler(lowerCamelCase						)







def        A__					(						)  ->	None:
				_configure_library_root_logger()
				UpperCamelCase_:							Any	=						False







def        A__					(						)  ->	None:
				_configure_library_root_logger()
				UpperCamelCase_:							List[str]	=						True







def        A__					(						)  ->	None:
				UpperCamelCase_:							List[str]	=						_get_library_root_logger().handlers

				for handler in handlers:
								UpperCamelCase_:							Optional[int]	=						logging.Formatter("""[%(levelname)s|%(filename)s:%(lineno)s] %(asctime)s >> %(message)s"""						)
								handler.setFormatter(lowerCamelCase						)







def        A__					(						)  ->	None:
				UpperCamelCase_:							int	=						_get_library_root_logger().handlers

				for handler in handlers:
								handler.setFormatter(lowerCamelCase						)







def        A__					(						self     ,    *lowerCamelCase     ,    **lowerCamelCase						)  ->	List[str]:
				UpperCamelCase_:							List[str]	=						os.getenv("""TRANSFORMERS_NO_ADVISORY_WARNINGS"""     ,    lowerCamelCase						)
				if no_advisory_warnings:
								return
				self.warning(*lowerCamelCase     ,    **lowerCamelCase						)


lowerCamelCase_						: Tuple         =  warning_advice







@functools.lru_cache(lowerCamelCase						)
def        A__					(						self     ,    *lowerCamelCase     ,    **lowerCamelCase						)  ->	Union[str, Any]:
				self.warning(*lowerCamelCase     ,    **lowerCamelCase						)


lowerCamelCase_						: List[str]         =  warning_once

class        _UpperCamelCase				:






			'''simple docstring'''

			def __init__(       self :       Tuple						,	*snake_case_ :       Optional[Any]						,	**snake_case_ :       Union[str, Any]      ):  # pylint: disable=unused-argument
							UpperCamelCase_:							Tuple	=						args[0] if args else None

			def __iter__(       self :       Tuple      ):
							return iter(self._iterator      )

			def __getattr__(       self :       Tuple						,	snake_case_ :       Optional[Any]      ):

							def empty_fn(*snake_case_ :       str						,	**snake_case_ :       Optional[int]      ):  # pylint: disable=unused-argument
											return

							return empty_fn

			def __enter__(       self :       List[str]      ):
							return self




			def __exit__(       self :       Optional[int]						,	snake_case_ :       List[str]						,	snake_case_ :       Tuple						,	snake_case_ :       Optional[Any]      ):
							return




class        _UpperCamelCase				:






			'''simple docstring'''

			def __call__(       self :       Any						,	*snake_case_ :       str						,	**snake_case_ :       Dict      ):
							if _tqdm_active:
											return tqdm_lib.tqdm(*snake_case_						,	**snake_case_      )
							else:
											return EmptyTqdm(*snake_case_						,	**snake_case_      )

			def       lowerCAmelCase__	(       self :       Tuple						,	*snake_case_ :       Tuple						,	**snake_case_ :       Dict      ):
							UpperCamelCase_:							Tuple	=						None
							if _tqdm_active:
											return tqdm_lib.tqdm.set_lock(*snake_case_						,	**snake_case_      )




			def       lowerCAmelCase__	(       self :       int      ):
							if _tqdm_active:
											return tqdm_lib.tqdm.get_lock()




lowerCamelCase_						: List[str]         =  _tqdm_cls()







def        A__					(						)  ->	bool:
				global _tqdm_active
				return bool(_tqdm_active						)







def        A__					(						)  ->	List[Any]:
				global _tqdm_active
				UpperCamelCase_:							Dict	=						True
				hf_hub_utils.enable_progress_bars()







def        A__					(						)  ->	List[Any]:
				global _tqdm_active
				UpperCamelCase_:							Tuple	=						False
				hf_hub_utils.disable_progress_bars()








def        A__					(						lowerCamelCase     ,    lowerCamelCase						)  ->	int:
				while second != 0:
								UpperCamelCase_:							Optional[Any]	=						first & second
								first ^= second
								UpperCamelCase_:							Any	=						c << 1
				return first


if __name__ == "__main__":
							import doctest

							doctest.testmod()

							lowerCamelCase_						: List[Any]         =  int(input("""Enter the first number: """).strip())
							lowerCamelCase_						: Tuple         =  int(input("""Enter the second number: """).strip())
							print(F"""{add(first, second) = }""")






