<commit_before>import re

def matches(pattern, one_line = True, flags = 0):
    def inner(func):
        func.one_line = one_line
        if not hasattr(func, 'matches'):
            func.matches = [re.compile(pattern)]
        else:
            func.matches.append(re.compile(pattern))
        return func

    return inner<commit_msg>Enable the decorators to compile multiline patterns<commit_after>import re

def matches(pattern, one_line = True, flags = 0):
    if one_line:
        flags = 0
    else:
        flags = re.MULTILINE

    def inner(func):
        func.one_line = one_line
        if not hasattr(func, 'matches'):
            func.matches = [re.compile(pattern, flags)]
        else:
            func.matches.append(re.compile(pattern, flags))
        return func

    return inner
{'fraction_non_alphanumeric': 0.09887359198998748, 'fraction_numerical': 0.0037546933667083854, 'mean_word_length': 2.3057851239669422, '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': '7422389', 'n_tokens_mistral': 238, 'n_tokens_neox': 229, 'n_words': 62}