<commit_before>import re


def test_main_app(db, client, main_app_template):
    res = client.get('/')
    assert res.status_code == 200
    data = res.get_data(as_text=True).split('\n')
    diffs = [l for l in zip(main_app_template, data) if l[0] != l[1]]
    assert len(diffs) <= 4<commit_msg>[#26] Cleanup test_main_app test. db not require import on api. client already setup the app.<commit_after>def test_main_app(client, main_app_template):
    res = client.get("/")
    assert res.status_code == 200
    data = res.get_data(as_text=True).split("\n")
    diffs = [line for line in zip(main_app_template, data) if line[0] != line[1]]
    assert len(diffs) <= 4
{'fraction_non_alphanumeric': 0.14264264264264265, 'fraction_numerical': 0.021021021021021023, 'mean_word_length': 4.091603053435114, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2348821', 'n_tokens_mistral': 245, 'n_tokens_neox': 234, 'n_words': 62}