<commit_before>class SaHpiError(Exception):
    """This class represents an SA HPI error."""
    def __init__(self, errno, error):
        self.errno = errno
        self.error = error

    def __str__(self):
        return '%s: %s' % (self.__class__.__name__, self.error)

    def __repr__(self):
        return '%s(%d,"%s")' % (self.__class__.__name__, self.errno, self.error)

class RetriesExceededError(Exception):
    """Maximum number of retries was exceeded."""
    pass

class DecodingError(Exception):
    """Error while decoding data."""
    def __init__(self, error):
        self.error = error

    def __str__(self):
        return '%s: %s' % (self.__class__.__name__, self.error)
<commit_msg>errors: add EncodingError class<commit_after>class SaHpiError(Exception):
    """This class represents an SA HPI error."""
    def __init__(self, errno, error):
        self.errno = errno
        self.error = error

    def __str__(self):
        return '%s: %s' % (self.__class__.__name__, self.error)

    def __repr__(self):
        return '%s(%d,"%s")' % (self.__class__.__name__, self.errno, self.error)

class RetriesExceededError(Exception):
    """Maximum number of retries was exceeded."""
    pass

class DecodingError(Exception):
    """Error while decoding data."""
    def __init__(self, error):
        self.error = error

    def __str__(self):
        return '%s: %s' % (self.__class__.__name__, self.error)

class EncodingError(Exception):
    """Error while encoding data."""
    def __init__(self, error):
        self.error = error

    def __str__(self):
        return '%s: %s' % (self.__class__.__name__, self.error)

{'fraction_non_alphanumeric': 0.14094775212636695, 'fraction_numerical': 0.0, 'mean_word_length': 3.1486146095717884, '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': '1149650', 'n_tokens_mistral': 514, 'n_tokens_neox': 494, 'n_words': 137}