<commit_before>from __future__ import unicode_literals
from builtins import object

import re
from .logging_tools import get_logger

logger = get_logger('ui')


def get_fuzzy_regex(fuzzy_str):
    return '.*?'.join(list(iter(
        fuzzy_str.replace('.', r'\.').replace(r'\\', '\\\\')
    )))
<commit_msg>Fix relative import<commit_after>from __future__ import unicode_literals
from builtins import object

import re
from logging_tools import get_logger

logger = get_logger('ui')


def get_fuzzy_regex(fuzzy_str):
    return '.*?'.join(list(iter(
        fuzzy_str.replace('.', r'\.').replace(r'\\', '\\\\')
    )))

{'fraction_non_alphanumeric': 0.1567043618739903, 'fraction_numerical': 0.0, 'mean_word_length': 4.166666666666667, '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': '6910664', 'n_tokens_mistral': 218, 'n_tokens_neox': 205, 'n_words': 46}