def restore_logging(lines, min_level_value, max_level_value):
output = '<STR_LIT>'<EOL>while lines:<EOL><INDENT>line = lines[<NUM_LIT:0>]<EOL>if line.lstrip() != PASS_LINE_CONTENTS:<EOL><INDENT>output += line<EOL>lines = lines[<NUM_LIT:1>:]<EOL><DEDENT>else:<EOL><INDENT>logging_lines, remaining_lines = split_call(lines[<NUM_LIT:1>:])<EOL>lines = remaining_lines<EOL>logging_stmt = '<STR_LIT>'.join(logging_lines)<EOL>original_lines = line + logging_stmt<EOL>if not check_level(logging_stmt, True, min_level_value, max_level_value):<EOL><INDENT>output += logging_stmt<EOL><DEDENT>else:<EOL><INDENT>uncommented_logging_lines = uncomment_lines(logging_lines)<EOL>logging.info('<STR_LIT>' % (original_lines.rstrip(), uncommented_logging_lines.rstrip()))<EOL>output += uncommented_logging_lines<EOL><DEDENT><DEDENT><DEDENT>return output<EOL>
Re-enables logging statements in these lines whose logging level falls
    between the specified minimum and maximum levels and which were disabled
    by disable_logging() before.