<commit_before>
from __future__ import print_function

import logging

from pre_commit import color


LOG_LEVEL_COLORS = {
    'DEBUG': '',
    'INFO': '',
    'WARNING': color.YELLOW,
    'ERROR': color.RED,
}


class LoggingHandler(logging.Handler):
    def __init__(self, use_color):
        super(LoggingHandler, self).__init__()<commit_msg>Python 2.6 compatibility for LoggingHandler. Closes #66.<commit_after>
from __future__ import print_function

import logging

from pre_commit import color


LOG_LEVEL_COLORS = {
    'DEBUG': '',
    'INFO': '',
    'WARNING': color.YELLOW,
    'ERROR': color.RED,
}


class LoggingHandler(logging.Handler):
    def __init__(self, use_color):
        logging.Handler.__init__(self)
{'fraction_non_alphanumeric': 0.11862068965517242, 'fraction_numerical': 0.005517241379310344, 'mean_word_length': 4.041666666666667, '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': '3283712', 'n_tokens_mistral': 237, 'n_tokens_neox': 227, 'n_words': 54}