/usr/local/lib/python3.6/site-packages/datasets/utils/__pycache__
NameSizeModeActions
beam_utils.cpython-36.pyc20170644editdlrm
deprecation_utils.cpython-36.pyc33470644editdlrm
doc_utils.cpython-36.pyc6540644editdlrm
download_manager.cpython-36.pyc1560644editdlrm
extract.cpython-36.pyc108680644editdlrm
filelock.cpython-36.pyc104840644editdlrm
file_utils.cpython-36.pyc179040644editdlrm
info_utils.cpython-36.pyc45360644editdlrm
logging.cpython-36.pyc72580644editdlrm
metadata.cpython-36.pyc179400644editdlrm
patching.cpython-36.pyc34380644editdlrm
py_utils.cpython-36.pyc263160644editdlrm
readme.cpython-36.pyc89000644editdlrm
stratify.cpython-36.pyc31290644editdlrm
tf_utils.cpython-36.pyc18000644editdlrm
typing.cpython-36.pyc3550644editdlrm
version.cpython-36.pyc45390644editdlrm
_hf_hub_fixes.cpython-36.pyc32630644editdlrm
__init__.cpython-36.pyc3810644editdlrm
Edit: /usr/local/lib/python3.6/site-packages/datasets/utils/__pycache__/logging.cpython-36.pyc (7258B)
3 <%Egjã@s®dZddlZddlZddlmZddlmZddlmZddlmZddlmZddlmZdd lm Z dd lm Z dd l m Z dd l mZejejej ejejd œZej Zdd„Zedœdd„Zejdœdd„Zddœdd„Zddœdd„Zd8e eejdœdd„Zedœdd„Zeddœdd „Zd!d"„Zd#d$„Zd%d&„Zd'd(„Z ddœd)d*„Z!ddœd+d,„Z"eƒGd-d.„d.ƒZ#d/a$Gd0d1„d1ƒZ%e%ƒZ e&dœd2d3„Z'd4d5„Z(d6d7„Z)dS)9z Logging utilities. éN)ÚCRITICAL)ÚDEBUG)ÚERROR)ÚFATAL)ÚINFO)ÚNOTSET)ÚWARN)ÚWARNING)ÚOptional)Úauto)ÚdebugÚinfoÚwarningÚerrorÚcriticalcCsHtjddƒ}|rD|tkr t|Stjƒjd|›ddjtjƒƒ›ƒtS)z§ If DATASETS_VERBOSITY env var is set to one of the valid choices return that as the new default level. If it is not - fall back to ``_default_log_level`` ZDATASETS_VERBOSITYNz"Unknown option DATASETS_VERBOSITY=z, has to be one of: z, ) ÚosÚgetenvÚ log_levelsÚloggingÚ getLoggerrÚjoinÚkeysÚ_default_log_level)Z env_level_str©rú@/usr/local/lib/python3.6/site-packages/datasets/utils/logging.pyÚ_get_default_logging_level*s r)ÚreturncCstjdƒdS)NÚ.r)Ú__name__ÚsplitrrrrÚ_get_library_name;sr cCs tjtƒƒS)N)rrr rrrrÚ_get_library_root_logger?sr!cCstƒ}|jtƒƒdS)N)r!ÚsetLevelr)Úlibrary_root_loggerrrrÚ_configure_library_root_loggerCsr$cCstƒ}|jtjƒdS)N)r!r"rr)r#rrrÚ_reset_library_root_loggerIsr%)ÚnamercCs|dkrtƒ}tj|ƒS)zkReturn a logger with the specified name. This function can be used in dataset and metrics scripts. N)r rr)r&rrrÚ get_loggerNsr'cCs tƒjƒS)aöReturn the current level for the HuggingFace datasets library's root logger. Returns: Logging level, e.g., ``datasets.logging.DEBUG`` and ``datasets.logging.INFO``. HuggingFace datasets library has following logging levels: - `datasets.logging.CRITICAL`, `datasets.logging.FATAL` - `datasets.logging.ERROR` - `datasets.logging.WARNING`, `datasets.logging.WARN` - `datasets.logging.INFO` - `datasets.logging.DEBUG` )r!ÚgetEffectiveLevelrrrrÚ get_verbosityWsr))Ú verbosityrcCstƒj|ƒdS)z¾Set the level for the HuggingFace datasets library's root logger. Args: verbosity: Logging level, e.g., ``datasets.logging.DEBUG`` and ``datasets.logging.INFO``. N)r!r")r*rrrÚ set_verbosityjsr+cCsttƒS)zßSet the level for the HuggingFace datasets library's root logger to INFO. This will display most of the logging information and tqdm bars. Shortcut to ``datasets.logging.set_verbosity(datasets.logging.INFO)`` )r+rrrrrÚset_verbosity_infossr,cCsttƒS)zõSet the level for the HuggingFace datasets library's root logger to WARNING. This will display only the warning and errors logging information and tqdm bars. Shortcut to ``datasets.logging.set_verbosity(datasets.logging.WARNING)`` )r+r rrrrÚset_verbosity_warning}sr-cCsttƒS)zÝSet the level for the HuggingFace datasets library's root logger to DEBUG. This will display all the logging information and tqdm bars. Shortcut to ``datasets.logging.set_verbosity(datasets.logging.DEBUG)`` )r+rrrrrÚset_verbosity_debug‡sr.cCsttƒS)zåSet the level for the HuggingFace datasets library's root logger to ERROR. This will display only the errors logging information and tqdm bars. Shortcut to ``datasets.logging.set_verbosity(datasets.logging.ERROR)`` )r+rrrrrÚset_verbosity_error‘sr/cCs dtƒ_dS)zjDisable propagation of the library log outputs. Note that log propagation is disabled by default. FN)r!Ú propagaterrrrÚdisable_propagation›sr1cCs dtƒ_dS)z¿Enable propagation of the library log outputs. Please disable the HuggingFace datasets library's default handler to prevent double logging if the root logger has been configured. TN)r!r0rrrrÚenable_propagation¢sr2c@s8eZdZdZdd„Zdd„Zdd„Zdd „Zd d „Zd S) Ú EmptyTqdmz%Dummy tqdm which doesn't do anything.cOs|r |dnd|_dS)Nr)Ú _iterator)ÚselfÚargsÚkwargsrrrÚ__init__±szEmptyTqdm.__init__cCs t|jƒS)N)Úiterr4)r5rrrÚ__iter__´szEmptyTqdm.__iter__cCs dd„}|S)zReturn empty function.c_sdS)Nr)r6r7rrrÚempty_fnºsz'EmptyTqdm.__getattr__..empty_fnr)r5Ú_r;rrrÚ __getattr__·szEmptyTqdm.__getattr__cCs|S)Nr)r5rrrÚ __enter__¿szEmptyTqdm.__enter__cCsdS)Nr)r5Útype_ÚvalueÚ tracebackrrrÚ__exit__ÂszEmptyTqdm.__exit__N) rÚ __module__Ú __qualname__Ú__doc__r8r:r=r>rBrrrrr3®s r3Tc@s$eZdZdd„Zdd„Zdd„ZdS)Ú _tqdm_clscOstrtj||ŽSt||ŽSdS)N)Ú _tqdm_activeÚtqdm_libÚtqdmr3)r5r6r7rrrÚ__call__Ês z_tqdm_cls.__call__cOsd|_trtjj||ŽSdS)N)Ú_lockrGrHrIÚset_lock)r5r6r7rrrrLÐsz_tqdm_cls.set_lockcCstrtjjƒSdS)N)rGrHrIÚget_lock)r5rrrrMÕsz_tqdm_cls.get_lockN)rrCrDrJrLrMrrrrrFÉsrFcCsttƒS)zCReturn a boolean indicating whether tqdm progress bars are enabled.)ÚboolrGrrrrÚis_progress_bar_enabledÝsrOcCsdadS)zEnable tqdm progress bar.TN)rGrrrrÚenable_progress_barãsrPcCsdadS)zDisable tqdm progress bar.FN)rGrrrrÚdisable_progress_barésrQ)N)*rErrrrrrrrrr Útypingr rIr rHrrrÚstrr ÚLoggerr!r$r%r'Úintr)r+r,r-r.r/r1r2r3rGrFrNrOrPrQrrrrÚsP