<commit_before>from moban.extensions import JinjaFilter


@JinjaFilter('repr')
def repr_function(string):
    if isinstance(string, list):
        return ["'{}'".format(str(element)) for element in string]
    else:
        return "'{}'".format(str(string))<commit_msg>:bug: fix format call for python 2.6<commit_after>from moban.extensions import JinjaFilter


@JinjaFilter('repr')
def repr_function(string):
    if isinstance(string, list):
        return ["'{0}'".format(str(element)) for element in string]
    else:
        return "'{0}'".format(str(string))
{'fraction_non_alphanumeric': 0.15097690941385436, 'fraction_numerical': 0.007104795737122558, 'mean_word_length': 4.529411764705882, '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': '4188060', 'n_tokens_mistral': 179, 'n_tokens_neox': 171, 'n_words': 43}