<commit_before>import logging

# Show us all log messages in the terminal as the program runs
stream_handler = logging.StreamHandler()
stream_handler.setLevel(logging.DEBUG)

# If any errors occur, write those log messages to a file in addition to showing them on the screen
# We're doing this since Jim keeps accidentally closing the terminal and losing important debug information
error_handler = logging.FileHandler("/var/log/fylm_error.log")
error_handler.setLevel(logging.ERROR)

debug_handler = logging.FileHandler("/var/log/fylm.log")
debug_handler.setLevel(logging.DEBUG)

# Actually instantiate the logger
log = logging.getLogger()
log.setLevel(logging.DEBUG)
log.addHandler(stream_handler)
log.addHandler(error_handler)
log.addHandler(debug_handler)<commit_msg>reset log level<commit_after>import logging

# Show us all log messages in the terminal as the program runs
stream_handler = logging.StreamHandler()
stream_handler.setLevel(logging.INFO)

# If any errors occur, write those log messages to a file in addition to showing them on the screen
# We're doing this since Jim keeps accidentally closing the terminal and losing important debug information
error_handler = logging.FileHandler("/var/log/fylm_error.log")
error_handler.setLevel(logging.ERROR)

debug_handler = logging.FileHandler("/var/log/fylm.log")
debug_handler.setLevel(logging.DEBUG)

# Actually instantiate the logger
log = logging.getLogger()
log.setLevel(logging.DEBUG)
log.addHandler(stream_handler)
log.addHandler(error_handler)
log.addHandler(debug_handler)
{'fraction_non_alphanumeric': 0.08036292935839275, 'fraction_numerical': 0.0, 'mean_word_length': 6.53170731707317, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '606366', 'n_tokens_mistral': 429, 'n_tokens_neox': 423, 'n_words': 135}