<commit_before>import os
from babel.dates import get_timezone

basedir = os.path.abspath(os.path.dirname(__file__))

LANGUAGES = {
    'en': 'English',
    'cy': 'Welsh (Cymraeg)',
    'gd': 'Gaelic (Scots Gaelic)'
}

BABEL_DEFAULT_LOCALE = 'cy'
BABEL_DEFAULT_TIMEZONE = get_timezone('Europe/London')


class Config(object):
    DEBUG = True
    WTF_CSRF_ENABLED = True
    NOTIFY_HTTP_PROTO = 'http'
    SESSION_COOKIE_HTTPONLY = True
    SESSION_COOKIE_SECURE = True
    SECRET_KEY = os.getenv('SR_COOKIE_SECRET')

    STATIC_URL_PATH = '/admin/static'
    ASSET_PATH = STATIC_URL_PATH + '/'


class Test(Config):
    DEBUG = True
    WTF_CSRF_ENABLED = False
    SECRET_KEY = "not-so-secret"


class Development(Config):
    DEBUG = True
    SESSION_COOKIE_SECURE = False
    SECRET_KEY = "not-so-secret"


class Live(Config):
    DEBUG = False
    SR_HTTP_PROTO = 'https'


class Staging(Config):
    DEBUG = False


configs = {
    'development': Development,
    'preview': Live,
    'staging': Staging,
    'production': Live,
    'test': Test,
}
<commit_msg>EQ-227: Disable Automatic Welsh Switching<commit_after>import os
from babel.dates import get_timezone

basedir = os.path.abspath(os.path.dirname(__file__))

LANGUAGES = {
    'en': 'English'
}

BABEL_DEFAULT_LOCALE = 'en'
BABEL_DEFAULT_TIMEZONE = get_timezone('Europe/London')


class Config(object):
    DEBUG = True
    WTF_CSRF_ENABLED = True
    NOTIFY_HTTP_PROTO = 'http'
    SESSION_COOKIE_HTTPONLY = True
    SESSION_COOKIE_SECURE = True
    SECRET_KEY = os.getenv('SR_COOKIE_SECRET')

    STATIC_URL_PATH = '/admin/static'
    ASSET_PATH = STATIC_URL_PATH + '/'


class Test(Config):
    DEBUG = True
    WTF_CSRF_ENABLED = False
    SECRET_KEY = "not-so-secret"


class Development(Config):
    DEBUG = True
    SESSION_COOKIE_SECURE = False
    SECRET_KEY = "not-so-secret"


class Live(Config):
    DEBUG = False
    SR_HTTP_PROTO = 'https'


class Staging(Config):
    DEBUG = False


configs = {
    'development': Development,
    'preview': Live,
    'staging': Staging,
    'production': Live,
    'test': Test,
}

{'fraction_non_alphanumeric': 0.11354961832061068, 'fraction_numerical': 0.0014312977099236641, 'mean_word_length': 3.5488069414316703, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5763253', 'n_tokens_mistral': 799, 'n_tokens_neox': 778, 'n_words': 151}