<commit_before>"""
Stores default application configuration settings.

Copyright: (c) 2012 <NAME> <<EMAIL>>
License: MIT, see LICENSE for details
"""

import os

# flask
LOGGER_NAME = 'faceoff'
DEBUG = os.getenv('FACEOFF_DEBUG') == '1' 
SERVER_NAME = 'faceoff.dev:5000'
SECRET_KEY = os.urandom(24)

# logging
LOG_LEVEL = os.getenv('FACEOFF_LOG_LEVEL')
LOG_PATH = os.getenv('FACEOFF_LOG_PATH')
LOG_FILTER = os.getenv('FACEOFF_LOG_FILTER')
LOG_IGNORE = os.getenv('FACEOFF_LOG_IGNORE')

# memcache
MEMCACHED_SERVERS = 'localhost:1121'

# database
DB_PATH = os.getenv('FACEOFF_DB_PATH')
DB_FIXTURES = os.getenv('FACEOFF_DB_FIXTURES')

def init_app(app):
    app.config.from_object(__name__)
    app.config.from_envvar('FACEOFF_CONFIG', silent=True)
<commit_msg>SECRET_KEY is static when debugging<commit_after>"""
Stores default application configuration settings.

Copyright: (c) 2012 <NAME> <<EMAIL>>
License: MIT, see LICENSE for details
"""

import os

# flask
LOGGER_NAME = 'faceoff'
DEBUG = os.getenv('FACEOFF_DEBUG') == '1' 
SERVER_NAME = 'faceoff.dev:5000'
SECRET_KEY = '<KEY>' if DEBUG else os.urandom(24)

# logging
LOG_LEVEL = os.getenv('FACEOFF_LOG_LEVEL')
LOG_PATH = os.getenv('FACEOFF_LOG_PATH')
LOG_FILTER = os.getenv('FACEOFF_LOG_FILTER')
LOG_IGNORE = os.getenv('FACEOFF_LOG_IGNORE')

# memcache
MEMCACHED_SERVERS = 'localhost:1121'

# database
DB_PATH = os.getenv('FACEOFF_DB_PATH')
DB_FIXTURES = os.getenv('FACEOFF_DB_FIXTURES')

def init_app(app):
    app.config.from_object(__name__)
    app.config.from_envvar('FACEOFF_CONFIG', silent=True)

{'fraction_non_alphanumeric': 0.13350449293966624, 'fraction_numerical': 0.019255455712451863, 'mean_word_length': 6.6048780487804875, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, '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': '4587417', 'n_tokens_mistral': 616, 'n_tokens_neox': 584, 'n_words': 110}