<commit_before>import sys

from babel import Locale
from pwgen import pwgen

from flask import Flask, g, session, request
from flask_babel import Babel
from flask_bcrypt import Bcrypt
from flask_compress import Compress
from flask_login import LoginManager
from flask_sqlalchemy import SQLAlchemy
from flask_wtf import CSRFProtect


app = Flask(__name__, static_folder="../static", template_folder="../templates")

if "pytest" not in sys.modules:
    try:
        import config
        app.config.from_object(config)
    except ImportError:
        app.config.update(
            SQLALCHEMY_DATABASE_URI="sqlite:///c3bottles.db",
            SQLALCHEMY_TRACK_MODIFICATIONS=False,
            SECRET_KEY=pwgen(64),<commit_msg>Fix proxy setup<commit_after>import sys

from babel import Locale
from pwgen import pwgen

from flask import Flask, g, session, request
from flask_babel import Babel
from flask_bcrypt import Bcrypt
from flask_compress import Compress
from flask_login import LoginManager
from flask_sqlalchemy import SQLAlchemy
from flask_wtf import CSRFProtect
from werkzeug.middleware.proxy_fix import ProxyFix


app = Flask(__name__, static_folder="../static", template_folder="../templates")
app.wsgi_app = ProxyFix(app.wsgi_app, x_proto=1, x_host=1)

if "pytest" not in sys.modules:
    try:
        import config
        app.config.from_object(config)
    except ImportError:
        app.config.update(
            SQLALCHEMY_DATABASE_URI="sqlite:///c3bottles.db",
            SQLALCHEMY_TRACK_MODIFICATIONS=False,
            SECRET_KEY=pwgen(64),
{'fraction_non_alphanumeric': 0.07234314980793854, 'fraction_numerical': 0.005121638924455826, 'mean_word_length': 4.009615384615385, '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': '5285471', 'n_tokens_mistral': 520, 'n_tokens_neox': 490, 'n_words': 129}