<s> import re <EOL> log_translation_LI = re . compile ( <EOL> r"<STR_LIT>" ) <EOL> log_translation_LE = re . compile ( <EOL> r"<STR_LIT>" ) <EOL> log_translation_LW = re . compile ( <EOL> r"<STR_LIT>" ) <EOL> log_translation_LC = re . compile ( <EOL> r"<STR_LIT>" ) <EOL> accepted_log_level = re . compile ( <EOL> r"<STR_LIT>" ) <EOL> def validate_log_translations ( logical_line , filename ) : <EOL> """<STR_LIT>""" <EOL> ignore_dirs = [ "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" ] <EOL> for directory in ignore_dirs : <EOL> if directory in filename : <EOL> return <EOL> msg = "<STR_LIT>" <EOL> if log_translation_LI . search ( logical_line ) : <EOL> yield ( <NUM_LIT:0> , msg ) <EOL> msg = ( "<STR_LIT>" <EOL> "<STR_LIT>" ) <EOL> if log_translation_LE . search ( logical_line ) : <EOL> yield ( <NUM_LIT:0> , msg ) <EOL> msg = "<STR_LIT>" <EOL> if log_translation_LW . search ( logical_line ) : <EOL> yield ( <NUM_LIT:0> , msg ) <EOL> msg = "<STR_LIT>" <EOL> if log_translation_LC . search ( logical_line ) : <EOL> yield ( <NUM_LIT:0> , msg ) <EOL> def no_translate_debug_logs ( logical_line , filename ) : <EOL> """<STR_LIT>""" <EOL> msg = "<STR_LIT>" <EOL> if logical_line . startswith ( "<STR_LIT>" ) : <EOL> yield ( <NUM_LIT:0> , msg ) <EOL> def accepted_log_levels ( logical_line , filename ) : <EOL> """<STR_LIT>""" <EOL> ignore_dirs = [ "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" ] <EOL> for directory in ignore_dirs : <EOL> if directory in filename : <EOL> return <EOL> msg = ( "<STR_LIT>" <EOL> "<STR_LIT>" ) <EOL> if logical_line . startswith ( "<STR_LIT>" ) : <EOL> if not accepted_log_level . search ( logical_line ) : <EOL> yield ( <NUM_LIT:0> , msg ) </s>
