<commit_before>from __future__ import division

import operator, re

token_re = re.compile(r'\w+', re.UNICODE)

def tokenize(message, prefix=''):
    from pony.text import en, ru
    if prefix: prefix += '$'<commit_msg>Oops. Forgot to specify encoding...<commit_after># coding: cp1251

from __future__ import division

import operator, re

token_re = re.compile(r'\w+', re.UNICODE)

def tokenize(message, prefix=''):
    from pony.text import en, ru
    if prefix: prefix += '$'
{'fraction_non_alphanumeric': 0.13389121338912133, 'fraction_numerical': 0.008368200836820083, 'mean_word_length': 4.382022471910112, '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': '67313', 'n_tokens_mistral': 165, 'n_tokens_neox': 158, 'n_words': 49}