<commit_before>from common import app


def auto_discover():
    return app

auto_discover()<commit_msg>auto discover apis<commit_after>from common import app  # noqa


def auto_discover():
    from os import path
    import pkgutil
    current_dir = path.dirname(__file__)
    for finder, name, ispkg in pkgutil.iter_modules(path=[current_dir]):
        main_name = path.splitext(name)[0]
        if main_name.endswith('api'):
            finder.find_module(name).load_module(name)

auto_discover()
{'fraction_non_alphanumeric': 0.09619238476953908, 'fraction_numerical': 0.002004008016032064, 'mean_word_length': 3.9504950495049505, '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': '7628945', 'n_tokens_mistral': 164, 'n_tokens_neox': 155, 'n_words': 37}