<commit_before>import sys
import logging


class Logger(object):

    VERBOSE = logging.DEBUG - 1
    DEBUG = logging.DEBUG
    INFO = logging.INFO
    NOTIFY = (logging.INFO + logging.WARNING) / 2
    WARN = logging.WARNING
    ERROR = logging.ERROR
    FATAL = logging.FATAL

    def __init__(self):
        import os, pwd
        try:
            home = pwd.getpwnam(os.getlogin()).pw_dir
        except OSError:
            hoem = pwd.getpwuid(os.getuid()).pw_dir
        self._logger = logging.basicConfig(filename=os.path.join(home,
                                                                 '.pyg', 'pyg.log'),
                                           level=logging.DEBUG)
        self.indent = 0
        self.level = Logger.DEBUG

    def verbose(self, msg, **kw):
        return self.log(self.VERBOSE, msg, **kw)

    def debug(self, msg, **kw):
        return self.log(self.DEBUG, msg, **kw)

    def info(self, msg, **kw):
        return self.log(self.INFO, msg, **kw)

    def notify(self, msg, **kw):
        return self.log(self.NOTIFY, msg, **kw)

    def warn(self, msg, **kw):
        return self.log(self.WARN, msg, **kw)

    def error(self, msg, **kw):
        return self.log(self.ERROR, msg, **kw)

    def fatal(self, msg, **kw):
        return self.log(self.FATAL, msg, **kw)<commit_msg>Fixed stupid mispelling<commit_after>import sys
import logging


class Logger(object):

    VERBOSE = logging.DEBUG - 1
    DEBUG = logging.DEBUG
    INFO = logging.INFO
    NOTIFY = (logging.INFO + logging.WARNING) / 2
    WARN = logging.WARNING
    ERROR = logging.ERROR
    FATAL = logging.FATAL

    def __init__(self):
        import os, pwd
        try:
            home = pwd.getpwnam(os.getlogin()).pw_dir
        except OSError:
            home = pwd.getpwuid(os.getuid()).pw_dir
        self._logger = logging.basicConfig(filename=os.path.join(home,
                                                                 '.pyg', 'pyg.log'),
                                           level=logging.DEBUG)
        self.indent = 0
        self.level = Logger.DEBUG

    def verbose(self, msg, **kw):
        return self.log(self.VERBOSE, msg, **kw)

    def debug(self, msg, **kw):
        return self.log(self.DEBUG, msg, **kw)

    def info(self, msg, **kw):
        return self.log(self.INFO, msg, **kw)

    def notify(self, msg, **kw):
        return self.log(self.NOTIFY, msg, **kw)

    def warn(self, msg, **kw):
        return self.log(self.WARN, msg, **kw)

    def error(self, msg, **kw):
        return self.log(self.ERROR, msg, **kw)

    def fatal(self, msg, **kw):
        return self.log(self.FATAL, msg, **kw)
{'fraction_non_alphanumeric': 0.1351963746223565, 'fraction_numerical': 0.0022658610271903325, 'mean_word_length': 1.8637837837837838, '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': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5659152', 'n_tokens_mistral': 852, 'n_tokens_neox': 818, 'n_words': 201}