<s> """<STR_LIT>""" <EOL> __author__ = '<STR_LIT>' <EOL> __email__ = '<STR_LIT>' <EOL> __date__ = '<STR_LIT>' <EOL> import gc <EOL> import json <EOL> import logging <EOL> def garbage_collection ( dfTrn , dfTest , dfAll ) : <EOL> dfTrn [ <NUM_LIT:0> ] = '<STR_LIT>' ; dfTrn [ <NUM_LIT:2> ] = '<STR_LIT>' ; <EOL> dfTest [ <NUM_LIT:0> ] = '<STR_LIT>' ; dfTest [ <NUM_LIT:2> ] = '<STR_LIT>' ; <EOL> dfAll [ <NUM_LIT:1> ] = '<STR_LIT>' <EOL> gc . collect ( ) ; <EOL> return dfTrn , dfTest , dfAll <EOL> def start_logging ( scope_name ) : <EOL> log = logging . getLogger ( scope_name ) <EOL> log . setLevel ( logging . INFO ) <EOL> file_log_handler = logging . FileHandler ( '<STR_LIT>' ) <EOL> log . addHandler ( file_log_handler ) <EOL> stderr_log_handler = logging . StreamHandler ( ) <EOL> log . addHandler ( stderr_log_handler ) <EOL> formatter = logging . Formatter ( '<STR_LIT>' ) <EOL> file_log_handler . setFormatter ( formatter ) <EOL> stderr_log_handler . setFormatter ( formatter ) <EOL> return log <EOL> def line_break ( ) : <EOL> """<STR_LIT>""" <EOL> line_break = '<STR_LIT>' <EOL> return line_break <EOL> def load_settings ( filename = '<STR_LIT>' ) : <EOL> """<STR_LIT>""" <EOL> log = start_logging ( __name__ ) <EOL> log . info ( '<STR_LIT>' ) <EOL> settings = json . loads ( open ( filename ) . read ( ) ) <EOL> log . info ( '<STR_LIT>' ) <EOL> log . info ( settings ) <EOL> model_settings = json . loads ( open ( settings [ '<STR_LIT>' ] ) . read ( ) ) <EOL> return settings , model_settings </s>
