<commit_before>from mmc import app
from mmc import models
from mmc import views


if __name__ == '__main__':
    app.run(debug=True, port=8000)
<commit_msg>Add file logging.<commit_after>from mmc import app
from mmc import models
from mmc import views


# logging setup
if not app.debug:
    from logging import Formatter, StreamHandler, WARNING, DEBUG
    handler = StreamHandler()
    handler.setFormatter(Formatter('%(asctime)s %(levelname)-7s %(name)s - %(message)s'))
    app.logger.addHandler(handler)
    app.logger.setLevel(WARNING)


if __name__ == '__main__':
    app.run(debug=True, port=8000)

{'fraction_non_alphanumeric': 0.11074380165289256, 'fraction_numerical': 0.01487603305785124, 'mean_word_length': 4.663551401869159, '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': '3147818', 'n_tokens_mistral': 207, 'n_tokens_neox': 196, 'n_words': 56}