<s> """<STR_LIT>""" <EOL> import logging <EOL> import os . path as op <EOL> import sys <EOL> from six import StringIO <EOL> from . io . datasets import download_file , download_sample_data <EOL> from . utils . config import load_master_config <EOL> from . utils . _misc import _git_version <EOL> from . utils . plugin import IPlugin , get_plugin , discover_plugins <EOL> from . utils . testing import _enable_profiler <EOL> __author__ = '<STR_LIT>' <EOL> __email__ = '<STR_LIT>' <EOL> __version__ = '<STR_LIT>' <EOL> __version_git__ = __version__ + _git_version ( ) <EOL> logger = logging . getLogger ( ) <EOL> logger . setLevel ( logging . DEBUG ) <EOL> logger . addHandler ( logging . NullHandler ( ) ) <EOL> _logger_fmt = '<STR_LIT>' <EOL> _logger_date_fmt = '<STR_LIT>' <EOL> class _Formatter ( logging . Formatter ) : <EOL> def format ( self , record ) : <EOL> record . levelname = record . levelname [ <NUM_LIT:0> ] <EOL> filename = op . splitext ( op . basename ( record . pathname ) ) [ <NUM_LIT:0> ] <EOL> record . caller = '<STR_LIT>' . format ( filename , record . lineno ) . ljust ( <NUM_LIT:20> ) <EOL> return super ( _Formatter , self ) . format ( record ) <EOL> def add_default_handler ( level = '<STR_LIT>' ) : <EOL> handler = logging . StreamHandler ( ) <EOL> handler . setLevel ( level ) <EOL> formatter = _Formatter ( fmt = _logger_fmt , <EOL> datefmt = _logger_date_fmt ) <EOL> handler . setFormatter ( formatter ) <EOL> logger . addHandler ( handler ) <EOL> DEBUG = False <EOL> if '<STR_LIT>' in sys . argv : <EOL> DEBUG = True <EOL> sys . argv . remove ( '<STR_LIT>' ) <EOL> if '<STR_LIT>' in sys . argv or '<STR_LIT>' in sys . argv : <EOL> _enable_profiler ( '<STR_LIT>' in sys . argv ) <EOL> if '<STR_LIT>' in sys . argv : <EOL> sys . argv . remove ( '<STR_LIT>' ) <EOL> if '<STR_LIT>' in sys . argv : <EOL> sys . argv . remove ( '<STR_LIT>' ) <EOL> def test ( ) : <EOL> """<STR_LIT>""" <EOL> import pytest <EOL> pytest . main ( ) </s>
