<commit_before># -*- coding: utf-8 -*-
import os

os_env = os.environ


class Config(object):
    # TODO: Change me
    SECRET_KEY = os_env.get('GAMECENTER_SECRET', 'secret-key')
    APP_DIR = os.path.abspath(os.path.dirname(__file__))
    PROJECT_ROOT = os.path.abspath(os.path.join(APP_DIR, os.pardir))
    JSONSCHEMA_DIR = os.path.join(PROJECT_ROOT, 'schemas')
    ASSETS_DEBUG = False
    DEBUG_TB_ENABLED = False  # Disable Debug toolbar
    DEBUG_TB_INTERCEPT_REDIRECTS = False
    CACHE_TYPE = 'simple'  # Can be "memcached", "redis", etc.


class ProdConfig(Config):
    """Production configuration."""
    ENV = 'prod'
    DEBUG = False
    # TODO: Change me
    SQLALCHEMY_DATABASE_URI = 'postgresql://localhost/example'
    DEBUG_TB_ENABLED = False


class DevConfig(Config):
    """Development configuration."""
    SQLALCHEMY_DATABASE_URI = 'postgresql://localuser:localpassword@localhost/gamecenter'
    ENV = 'dev'
    DEBUG = True
    DEBUG_TB_PROFILER_ENABLED = True
    DB_NAME = 'dev.db'
    # Put the db file in project root
    DB_PATH = os.path.join(Config.PROJECT_ROOT, DB_NAME)
    DEBUG_TB_ENABLED = True<commit_msg>Changes the settings.py to have better TODO messages<commit_after># -*- coding: utf-8 -*-
import os

os_env = os.environ


class Config(object):
    # TODO: Change this to be a better secret key (if we even need one)
    SECRET_KEY = os_env.get('GAMECENTER_SECRET', 'secret-key')
    APP_DIR = os.path.abspath(os.path.dirname(__file__))
    PROJECT_ROOT = os.path.abspath(os.path.join(APP_DIR, os.pardir))
    JSONSCHEMA_DIR = os.path.join(PROJECT_ROOT, 'schemas')
    ASSETS_DEBUG = False
    DEBUG_TB_ENABLED = False  # Disable Debug toolbar
    DEBUG_TB_INTERCEPT_REDIRECTS = False
    CACHE_TYPE = 'simple'  # Can be "memcached", "redis", etc.


class ProdConfig(Config):
    """Production configuration."""
    ENV = 'prod'
    DEBUG = False
    # TODO: Change this to an os_env.get type thing to hide our DB URI
    SQLALCHEMY_DATABASE_URI = 'postgresql://localhost/example'
    DEBUG_TB_ENABLED = False


class DevConfig(Config):
    """Development configuration."""
    SQLALCHEMY_DATABASE_URI = 'postgresql://localuser:localpassword@localhost/gamecenter'
    ENV = 'dev'
    DEBUG = True
    DEBUG_TB_PROFILER_ENABLED = True
    DB_NAME = 'dev.db'
    # Put the db file in project root
    DB_PATH = os.path.join(Config.PROJECT_ROOT, DB_NAME)
    DEBUG_TB_ENABLED = True
{'fraction_non_alphanumeric': 0.1115702479338843, 'fraction_numerical': 0.0008264462809917355, 'mean_word_length': 3.6827852998065764, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3181569', 'n_tokens_mistral': 865, 'n_tokens_neox': 842, 'n_words': 187}