<commit_before>from myfedora.config.app_cfg import base_config
from myfedora.config.environment import load_environment

make_base_app = base_config.setup_tg_wsgi_app(load_environment)

def make_app(global_conf, full_stack=True, **app_conf):
    app = make_base_app(global_conf, full_stack=full_stack, **app_conf)

    if base_config.squeeze:
        from repoze.squeeze.processor import ResourceSqueezingMiddleware
        app = ResourceSqueezingMiddleware(
                app,
                cache_dir='public/cache',
                url_prefix='/cache/',
                )<commit_msg>Hook up the MokshaMiddleware<commit_after>from myfedora.config.app_cfg import base_config
from myfedora.config.environment import load_environment

make_base_app = base_config.setup_tg_wsgi_app(load_environment)

def make_app(global_conf, full_stack=True, **app_conf):

    from moksha.middleware import MokshaMiddleware

    app = make_base_app(global_conf, full_stack=full_stack, 
                        wrap_app=MokshaMiddleware, **app_conf)

    if base_config.squeeze:
        from repoze.squeeze.processor import ResourceSqueezingMiddleware
        app = ResourceSqueezingMiddleware(
                app,
                cache_dir='public/cache',
                url_prefix='/cache/',
                )
{'fraction_non_alphanumeric': 0.07318952234206472, 'fraction_numerical': 0.0, 'mean_word_length': 3.203883495145631, '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': '7194853', 'n_tokens_mistral': 400, 'n_tokens_neox': 385, 'n_words': 66}