<commit_before>"""
config.py

Looks for the RAD_PRODUCTION variable and creates path to database 
"""
import os

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


class BaseConfig(object):
    DEBUG = True
    SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(_basedir, 'rad/rad.db')
    MIGRATIONS_DIR = './remedy/rad/migrations'
    SECRET_KEY = 'Our little secret'


class DevelopmentConfig(BaseConfig):
    pass


class ProductionConfig(BaseConfig):
    DEBUG = False
    SQLALCHEMY_DATABASE_URI = 'mysql://{0}:{1}@{2}/{3}'.format(os.environ.get('RDS_USERNAME'),
                                                               os.environ.get('RDS_PASSWORD'),
                                                               os.environ.get('RDS_HOSTNAME'),
                                                               os.environ.get('RDS_DB_NAME'))<commit_msg>DEBUG true on deployment to see what's happening<commit_after>"""
config.py

Looks for the RAD_PRODUCTION variable and creates path to database 
"""
import os

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


class BaseConfig(object):
    DEBUG = True
    SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(_basedir, 'rad/rad.db')
    MIGRATIONS_DIR = './remedy/rad/migrations'
    SECRET_KEY = 'Our little secret'


class DevelopmentConfig(BaseConfig):
    pass


class ProductionConfig(BaseConfig):
    
    SQLALCHEMY_DATABASE_URI = 'mysql://{0}:{1}@{2}/{3}'.format(os.environ.get('RDS_USERNAME'),
                                                               os.environ.get('RDS_PASSWORD'),
                                                               os.environ.get('RDS_HOSTNAME'),
                                                               os.environ.get('RDS_DB_NAME'))
{'fraction_non_alphanumeric': 0.11778029445073612, 'fraction_numerical': 0.004530011325028313, 'mean_word_length': 1.8778501628664495, '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': 14, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1152034', 'n_tokens_mistral': 515, 'n_tokens_neox': 507, 'n_words': 88}