<commit_before>from __future__ import unicode_literals
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
from future.builtins import next
from future.builtins import str
from future import standard_library
standard_library.install_hooks()

import io
import collections
from .tools import enum, py2_iterable


class LexError(Exception):

    def __init__(self, msg):
        self.msg = msg<commit_msg>import basestring for python3<commit_after>from __future__ import unicode_literals
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
from future.builtins import next
from future.builtins import str
from future import standard_library
standard_library.install_hooks()
from past.builtins import basestring

import io
import collections
from .tools import enum, py2_iterable


class LexError(Exception):

    def __init__(self, msg):
        self.msg = msg
{'fraction_non_alphanumeric': 0.04016477857878476, 'fraction_numerical': 0.003089598352214212, 'mean_word_length': 5.8936170212765955, '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': '7357191', 'n_tokens_mistral': 259, 'n_tokens_neox': 254, 'n_words': 96}