<commit_before>import sys
import logging
import logging.config

config = {
    'version': 1,
    'handlers': {
        'console': {
            'level': logging.DEBUG,
            'class': 'logging.StreamHandler',
            'stream': sys.stdout,
            'formatter': 'verbose',
        },
        'file': {
            'level': logging.DEBUG,
            'class': 'logging.handlers.RotatingFileHandler',
            'filename': 'linot.log',
            'maxBytes': 32 * 1024,
            'backupCount': 2,
            'formatter': 'verbose',
            'mode': 'w+',
        },
    },
    'formatters': {
        'verbose': {
            'format': '%(asctime)s|[%(levelname)s][%(name)s]: %(message)s',
            'datefmt': '%Y-%m-%d|%H:%M:%S',
        },
    },<commit_msg>change log file rollover to timed.midnight<commit_after>import sys
import logging
import logging.config

config = {
    'version': 1,
    'handlers': {
        'console': {
            'level': logging.DEBUG,
            'class': 'logging.StreamHandler',
            'stream': sys.stdout,
            'formatter': 'verbose',
        },
        'file': {
            'level': logging.DEBUG,
            'class': 'logging.handlers.TimedRotatingFileHandler',
            'filename': 'linot.log',
            'when': 'midnight',
            'interval': 1,
            'backupCount': 3,
            'formatter': 'verbose',
        },
    },
    'formatters': {
        'verbose': {
            'format': '%(asctime)s|[%(levelname)s][%(name)s]: %(message)s',
            'datefmt': '%Y-%m-%d|%H:%M:%S',
        },
    },
{'fraction_non_alphanumeric': 0.18233082706766918, 'fraction_numerical': 0.006892230576441102, 'mean_word_length': 1.739279588336192, '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': '1016673', 'n_tokens_mistral': 501, 'n_tokens_neox': 486, 'n_words': 88}