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

from tqdm import auto as tqdm_lib


_A   =     {
    "debug": logging.DEBUG,
    "info": logging.INFO,
    "warning": logging.WARNING,
    "error": logging.ERROR,
    "critical": logging.CRITICAL,
}

_A   =     logging.WARNING






def    lowerCamelCase__				(				):




			"""simple docstring"""


			lowerCAmelCase_						=	os.getenv("DATASETS_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 DATASETS_VERBOSITY={env_level_str}, """
									    F"""has to be one of: { ', '.join(log_levels.keys()				) }"""				)
			return _default_log_level






def    lowerCamelCase__				(				):




			"""simple docstring"""


			return __name__.split("."				)[0]






def    lowerCamelCase__				(				):




			"""simple docstring"""


			return logging.getLogger(_get_library_name()				)






def    lowerCamelCase__				(				):




			"""simple docstring"""


			lowerCAmelCase_						=	_get_library_root_logger()
			library_root_logger.setLevel(_get_default_logging_level()				)






def    lowerCamelCase__				(				):




			"""simple docstring"""


			lowerCAmelCase_						=	_get_library_root_logger()
			library_root_logger.setLevel(logging.NOTSET				)






def    lowerCamelCase__				(				__lowerCAmelCase  :  Optional[str] = None				):




			"""simple docstring"""


			if name is None:
						lowerCAmelCase_						=	_get_library_name()
			return logging.getLogger(__lowerCAmelCase				)






def    lowerCamelCase__				(				):




			"""simple docstring"""


			return _get_library_root_logger().getEffectiveLevel()






def    lowerCamelCase__				(				__lowerCAmelCase  :  int				):




			"""simple docstring"""


			_get_library_root_logger().setLevel(__lowerCAmelCase				)






def    lowerCamelCase__				(				):




			"""simple docstring"""


			return set_verbosity(__lowerCAmelCase				)






def    lowerCamelCase__				(				):




			"""simple docstring"""


			return set_verbosity(__lowerCAmelCase				)






def    lowerCamelCase__				(				):




			"""simple docstring"""


			return set_verbosity(__lowerCAmelCase				)






def    lowerCamelCase__				(				):




			"""simple docstring"""


			return set_verbosity(__lowerCAmelCase				)






def    lowerCamelCase__				(				):




			"""simple docstring"""


			lowerCAmelCase_						=	False






def    lowerCamelCase__				(				):




			"""simple docstring"""


			lowerCAmelCase_						=	True


# Configure the library root logger at the module level (singleton-like)
_configure_library_root_logger()





class 	_lowerCAmelCase					:




				def __init__(					self				,				*_UpperCamelCase				,				**_UpperCamelCase     )				->      Dict:  # pylint: disable=unused-argument
							lowerCAmelCase_						=	args[0] if args else None




				def __iter__(					self     )				->      Optional[Any]:
							return iter(self._iterator     )




				def __getattr__(					self				,				_UpperCamelCase     )				->      Optional[int]:

							def empty_fn(*_UpperCamelCase				,				**_UpperCamelCase     ):  # pylint: disable=unused-argument
										return

							return empty_fn




				def __enter__(					self     )				->      Any:
							return self




				def __exit__(					self				,				_UpperCamelCase				,				_UpperCamelCase				,				_UpperCamelCase     )				->      List[str]:
							return


_A   =     True





class 	_lowerCAmelCase					:




				def __call__(					self				,				*_UpperCamelCase				,				_UpperCamelCase=False				,				**_UpperCamelCase     )				->      List[str]:
							if _tqdm_active and not disable:
										return tqdm_lib.tqdm(*_UpperCamelCase				,				**_UpperCamelCase     )
							else:
										return EmptyTqdm(*_UpperCamelCase				,				**_UpperCamelCase     )




				def      __a						(					self				,				*_UpperCamelCase				,				**_UpperCamelCase     )				->      List[Any]:
							lowerCAmelCase_						=	None
							if _tqdm_active:
										return tqdm_lib.tqdm.set_lock(*_UpperCamelCase				,				**_UpperCamelCase     )




				def      __a						(					self     )				->      Optional[Any]:
							if _tqdm_active:
										return tqdm_lib.tqdm.get_lock()


_A   =     _tqdm_cls()






def    lowerCamelCase__				(				):




			"""simple docstring"""


			global _tqdm_active
			return bool(_tqdm_active				)






def    lowerCamelCase__				(				):




			"""simple docstring"""


			global _tqdm_active
			lowerCAmelCase_						=	True






def    lowerCamelCase__				(				):




			"""simple docstring"""


			global _tqdm_active
			lowerCAmelCase_						=	False





import math






def    lowerCamelCase__				(				__lowerCAmelCase  :  int				):




			"""simple docstring"""


			lowerCAmelCase_						=	0
			lowerCAmelCase_						=	0
			while num > 0:
						lowerCAmelCase_						=	num % 8
						lowerCAmelCase_						=	octal + (remainder * math.floor(math.pow(10    ,							__lowerCAmelCase				)				))
						counter += 1
						lowerCAmelCase_						=	math.floor(num / 8				)  # basically /= 8 without remainder if any
						# This formatting removes trailing '.0' from `octal`.
			return F"""0o{int(__lowerCAmelCase				)}"""






def    lowerCamelCase__				(				):




			"""simple docstring"""


			print("\n2 in octal is:"				)
			print(decimal_to_octal(2				)				)  # = 2
			print("\n8 in octal is:"				)
			print(decimal_to_octal(8				)				)  # = 10
			print("\n65 in octal is:"				)
			print(decimal_to_octal(65				)				)  # = 101
			print("\n216 in octal is:"				)
			print(decimal_to_octal(216				)				)  # = 330
			print("\n512 in octal is:"				)
			print(decimal_to_octal(512				)				)  # = 1000
			print("\n"				)


if __name__ == "__main__":
			main()



