<commit_before>from corehq.apps.performance_sms.models import PerformanceConfiguration


def by_domain(domain):
    return list(PerformanceConfiguration.view('performance_sms/by_domain', key=domain, include_docs=True))


def by_interval(interval_keys):
    return list(PerformanceConfiguration.view('performance_sms/all_configs', key=interval_keys, include_docs=True))<commit_msg>fix tests for reduce view<commit_after>from corehq.apps.performance_sms.models import PerformanceConfiguration


def by_domain(domain):
    return list(PerformanceConfiguration.view(
        'performance_sms/by_domain',
        key=domain,
        reduce=False,
        include_docs=True
    ))


def by_interval(interval_keys):
    return list(PerformanceConfiguration.view(
        'performance_sms/all_configs',
        key=interval_keys,
        include_docs=True
    ))
{'fraction_non_alphanumeric': 0.08665105386416862, 'fraction_numerical': 0.0, 'mean_word_length': 5.02112676056338, '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': '1549129', 'n_tokens_mistral': 253, 'n_tokens_neox': 238, 'n_words': 38}