<commit_before>"""Configure a mock application to run queries against"""

import pytest
from flask_login import current_user
from flask import jsonify
from backend_common import create_app, auth, auth0, mocks
from os.path import join, dirname

FAKE_CLIENT_SECRETS = """
{
    "web": {
        "auth_uri": "https://auth.mozilla.auth0.com/authorize",
        "issuer": "https://auth.mozilla.auth0.com/",
        "client_id": "some-id-string",
        "client_secret": "my-super-secret",
        "redirect_uris": [
            "https://signoff.shipit.mozilla.com/oidc_callback"
        ],
        "token_uri": "https://auth.mozilla.auth0.com/oauth/token",
        "token_introspection_uri": "https://test/oauth/token",
        "userinfo_uri": "https://auth.mozilla.auth0.com/userinfo"
    }
}
"""


@pytest.fixture(scope='module')
def app():
    """
    Build an app with an authenticated dummy api
    """

    # Use unique auth instance
    config = {
        'DEBUG': True,
        'OIDC_CLIENT_SECRETS': join(dirname(__file__), 'client_secrets.json'),
        'OIDC_RESOURCE_SERVER_ONLY': True
    }

    app = create_app('test', extensions=[auth, auth0], config=config)

    @app.route('/')
    def index():
        return app.response_class('OK')

    @app.route('/test-auth-login')<commit_msg>Remove unused variable<commit_after>"""Configure a mock application to run queries against"""

import pytest
from flask_login import current_user
from flask import jsonify
from backend_common import create_app, auth, auth0, mocks
from os.path import join, dirname


@pytest.fixture(scope='module')
def app():
    """
    Build an app with an authenticated dummy api
    """

    # Use unique auth instance
    config = {
        'DEBUG': True,
        'OIDC_CLIENT_SECRETS': join(dirname(__file__), 'client_secrets.json'),
        'OIDC_RESOURCE_SERVER_ONLY': True
    }

    app = create_app('test', extensions=[auth, auth0], config=config)

    @app.route('/')
    def index():
        return app.response_class('OK')

    @app.route('/test-auth-login')
{'fraction_non_alphanumeric': 0.13937621832358674, 'fraction_numerical': 0.003898635477582846, 'mean_word_length': 3.277083333333333, 'pattern_counts': {'":': 9, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, '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': '5433032', 'n_tokens_mistral': 668, 'n_tokens_neox': 647, 'n_words': 147}