<commit_before>import sys


class NRELError(Exception):
    """
    """

    def __init__(self, message):
        """
        """
        Exception.__init__(self, message)
        self.message = message

    def __unicode__(self):
        return unicode(repr(self.message))

    if sys.version_info[0] >= 3:  # Python 3
        def __str__(self):
            return self.__unicode__()
    else:  # Python 2
        def __str__(self):
            return self.__unicode__().encode('utf8')


class NRELFail(Exception):<commit_msg>python 3 compatible<commit_after>import sys


class NRELError(Exception):
    """
    """

    def __init__(self, message):
        """
        """
        Exception.__init__(self, message)
        self.message = message

    def __unicode__(self):
        return self.message

    if sys.version_info[0] >= 3:  # Python 3
        def __str__(self):
            return self.__unicode__()
    else:  # Python 2
        def __str__(self):
            return self.__unicode__().encode('utf8')


class NRELFail(Exception):
{'fraction_non_alphanumeric': 0.12057416267942583, 'fraction_numerical': 0.010526315789473684, 'mean_word_length': 2.238390092879257, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '199982', 'n_tokens_mistral': 325, 'n_tokens_neox': 300, 'n_words': 67}