<commit_before># project/config.py

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


class BaseConfig(object):
    """Base configuration."""
    SECRET_KEY = 'bestSecretKeyEver'
    SECURITY_PASSWORD_SALT = '<PASSWORD>'
    DEBUG = True
    BCRYPT_LOG_ROUNDS = 13
    WTF_CSRF_ENABLED = True
    DEBUG_TB_ENABLED = False
    DEBUG_TB_INTERCEPT_REDIRECTS = False

    # mail settings
    # MAIL_SERVER = 'smtp.gmail.com'
    # MAIL_PORT = 465
    # MAIL_USE_TLS = False
    # MAIL_USE_SSL = True

    MAIL_SERVER = os.environ['smtp.mailgun.org']
    MAIL_PORT = 587
    MAIL_USE_TLS = False
    MAIL_USE_SSL = True


    # gmail authentication
    # MAIL_USERNAME = os.environ['APP_MAIL_USERNAME']
    # MAIL_PASSWORD = os.environ['APP_MAIL_PASSWORD']

    MAIL_USERNAME = os.environ['MAILGUN_SMTP_LOGIN']
    MAIL_PASSWORD = os.environ['<PASSWORD>']


    # mail accounts
    # MAIL_DEFAULT_SENDER = os.environ['APP_MAIL_DEFAULT_SENDER']
    MAIL_DEFAULT_SENDER = os.environ['MAILGUN_SMTP_LOGIN']

    #SQLALCHEMY_DATABASE_URI = os.environ['APP_SQLALCHEMY_DATABASE_URI']
    SQLALCHEMY_DATABASE_URI = os.environ['DATABASE_URL']

#class DevelopmentConfig(BaseConfig):
#    """Development configuration."""
#    DEBUG = True
#    WTF_CSRF_ENABLED = False
#    SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'dev.sqlite')
#    DEBUG_TB_ENABLED = True
#
#
class TestingConfig(BaseConfig):
    """Testing configuration."""
    TESTING = True
    DEBUG = True
    BCRYPT_LOG_ROUNDS = 1
    WTF_CSRF_ENABLED = False
#    SQLALCHEMY_DATABASE_URI = 'sqlite://'


class ProductionConfig(BaseConfig):
    """Production configuration."""
    STRIPE_SECRET_KEY = 'foo'
    STRIPE_PUBLISHABLE_KEY = 'bar'
<commit_msg>config update for heroku mailgun and postgres<commit_after># project/config.py

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


class BaseConfig(object):
    """Base configuration."""
    SECRET_KEY = 'bestSecretKeyEver'
    SECURITY_PASSWORD_SALT = 'bestSecurityPasswordSaltEver'
    DEBUG = True
    BCRYPT_LOG_ROUNDS = 13
    WTF_CSRF_ENABLED = True
    DEBUG_TB_ENABLED = False
    DEBUG_TB_INTERCEPT_REDIRECTS = False

    # mail settings
    # MAIL_SERVER = 'smtp.gmail.com'
    # MAIL_PORT = 465
    # MAIL_USE_TLS = False
    # MAIL_USE_SSL = True

    MAIL_SERVER = os.environ['MAILGUN_SMTP_SERVER']
    MAIL_PORT = 587
    MAIL_USE_TLS = False
    MAIL_USE_SSL = True


    # gmail authentication
    # MAIL_USERNAME = os.environ['APP_MAIL_USERNAME']
    # MAIL_PASSWORD = os.environ['APP_MAIL_PASSWORD']

    MAIL_USERNAME = os.environ['MAILGUN_SMTP_LOGIN']
    MAIL_PASSWORD = os.environ['MAILGUN_SMTP_PASSWORD']


    # mail accounts
    # MAIL_DEFAULT_SENDER = os.environ['APP_MAIL_DEFAULT_SENDER']
    MAIL_DEFAULT_SENDER = os.environ['MAILGUN_SMTP_LOGIN']

    #SQLALCHEMY_DATABASE_URI = os.environ['APP_SQLALCHEMY_DATABASE_URI']
    SQLALCHEMY_DATABASE_URI = os.environ['DATABASE_URL']

#class DevelopmentConfig(BaseConfig):
#    """Development configuration."""
#    DEBUG = True
#    WTF_CSRF_ENABLED = False
#    SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'dev.sqlite')
#    DEBUG_TB_ENABLED = True
#
#
class TestingConfig(BaseConfig):
    """Testing configuration."""
    TESTING = True
    DEBUG = True
    BCRYPT_LOG_ROUNDS = 1
    WTF_CSRF_ENABLED = False
#    SQLALCHEMY_DATABASE_URI = 'sqlite://'


class ProductionConfig(BaseConfig):
    """Production configuration."""
    STRIPE_SECRET_KEY = 'foo'
    STRIPE_PUBLISHABLE_KEY = 'bar'

{'fraction_non_alphanumeric': 0.10696095076400679, 'fraction_numerical': 0.0050933786078098476, 'mean_word_length': 3.944055944055944, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4073091', 'n_tokens_mistral': 1354, 'n_tokens_neox': 1316, 'n_words': 202}