<commit_before># -*- coding: utf-8 -*-
"""Application configuration."""
import os


class Config(object):
    """Base configuration."""

    SECRET_KEY = os.environ.get('ANNOTATOR_SECRET', 'secret-key')  # TODO: Change me
    APP_DIR = os.path.abspath(os.path.dirname(__file__))  # This directory
    PROJECT_ROOT = os.path.abspath(os.path.join(APP_DIR, os.pardir))
    DEBUG_TB_ENABLED = False  # Disable Debug toolbar
    DEBUG_TB_INTERCEPT_REDIRECTS = False
    CACHE_TYPE = 'simple'  # Can be "memcached", "redis", etc.
    SQLALCHEMY_TRACK_MODIFICATIONS = False
    SECURITY_PASSWORD_HASH = '<PASSWORD>'
    SECURITY_PASSWORD_SALT = os.environ.get('SECURITY_PASSWORD_SALT', b'<PASSWORD>')  # TODO
    SECURITY_REGISTERABLE = True,
    SECURITY_RECOVERABLE = True
    SECURITY_CONFIRMABLE = False
    SECURITY_TRACKABLE = True
    SECURITY_PASSWORDLESS = False
    SECURITY_CHANGEABLE = True
    SECURITY_REGISTER_USER_TEMPLATE = 'public/register.html'
    SECURITY_LOGIN_USER_TEMPLATE = 'public/login.html'
    SECURITY_FORGOT_PASSWORD_TEMPLATE = 'public/forgot_password.html'
    SECURITY_RESET_PASSWORD_TEMPLATE = 'public/reset_password.html'
    SECURITY_CHANGE_PASSWORD_TEMPLATE = 'users/change_password.html'
    SECURITY_SEND_CONFIRMATION_TEMPLATE = 'users/send_confirmation.html'
    SECURITY_POST_LOGIN_VIEW = '/annotations/'
    SECURITY_POST_LOGOUT_VIEW = '/?logout'
    MAIL_SERVER = 'mail.wkroberts.com'
    MAIL_PORT = 587
    MAIL_USE_TLS = False
    MAIL_USE_SSL = True
    MAIL_USERNAME = '<EMAIL>'
    MAIL_PASSWORD = os.environ.get('MAIL_PASSWORD', None)
    MAIL_DEFAULT_SENDER = 'Aspectual Annotator'
    MAIL_SUPPRESS_SEND = False
    WEBPACK_MANIFEST_PATH = 'static/build/manifest.json'


class ProdConfig(Config):
    """Production configuration."""

    ENV = 'prod'
    DEBUG = False
    SQLALCHEMY_DATABASE_URI = os.environ.get('SQLALCHEMY_DATABASE_URI',  # TODO: Change me
                                             'postgresql://localhost/example')
    DEBUG_TB_ENABLED = False  # Disable Debug toolbar


class DevConfig(Config):
    """Development configuration."""

    ENV = 'dev'<commit_msg>one more dreamhost mail setting<commit_after># -*- coding: utf-8 -*-
"""Application configuration."""
import os


class Config(object):
    """Base configuration."""

    SECRET_KEY = os.environ.get('ANNOTATOR_SECRET', 'secret-key')  # TODO: Change me
    APP_DIR = os.path.abspath(os.path.dirname(__file__))  # This directory
    PROJECT_ROOT = os.path.abspath(os.path.join(APP_DIR, os.pardir))
    DEBUG_TB_ENABLED = False  # Disable Debug toolbar
    DEBUG_TB_INTERCEPT_REDIRECTS = False
    CACHE_TYPE = 'simple'  # Can be "memcached", "redis", etc.
    SQLALCHEMY_TRACK_MODIFICATIONS = False
    SECURITY_PASSWORD_HASH = '<PASSWORD>'
    SECURITY_PASSWORD_SALT = os.environ.get('SECURITY_PASSWORD_SALT', b'<PASSWORD>')  # TODO
    SECURITY_REGISTERABLE = True,
    SECURITY_RECOVERABLE = True
    SECURITY_CONFIRMABLE = False
    SECURITY_TRACKABLE = True
    SECURITY_PASSWORDLESS = False
    SECURITY_CHANGEABLE = True
    SECURITY_REGISTER_USER_TEMPLATE = 'public/register.html'
    SECURITY_LOGIN_USER_TEMPLATE = 'public/login.html'
    SECURITY_FORGOT_PASSWORD_TEMPLATE = 'public/forgot_password.html'
    SECURITY_RESET_PASSWORD_TEMPLATE = 'public/reset_password.html'
    SECURITY_CHANGE_PASSWORD_TEMPLATE = 'users/change_password.html'
    SECURITY_SEND_CONFIRMATION_TEMPLATE = 'users/send_confirmation.html'
    SECURITY_POST_LOGIN_VIEW = '/annotations/'
    SECURITY_POST_LOGOUT_VIEW = '/?logout'
    MAIL_SERVER = 'mail.annotate.wkrobert<EMAIL>'
    MAIL_PORT = 587
    MAIL_USE_TLS = False
    MAIL_USE_SSL = True
    MAIL_USERNAME = '<EMAIL>'
    MAIL_PASSWORD = os.environ.get('MAIL_PASSWORD', None)
    MAIL_DEFAULT_SENDER = 'Aspectual Annotator'
    MAIL_SUPPRESS_SEND = False
    WEBPACK_MANIFEST_PATH = 'static/build/manifest.json'


class ProdConfig(Config):
    """Production configuration."""

    ENV = 'prod'
    DEBUG = False
    SQLALCHEMY_DATABASE_URI = os.environ.get('SQLALCHEMY_DATABASE_URI',  # TODO: Change me
                                             'postgresql://localhost/example')
    DEBUG_TB_ENABLED = False  # Disable Debug toolbar


class DevConfig(Config):
    """Development configuration."""

    ENV = 'dev'
{'fraction_non_alphanumeric': 0.10258801585451154, 'fraction_numerical': 0.0018652366519002097, 'mean_word_length': 3.8916761687571264, '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': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3178873', 'n_tokens_mistral': 1547, 'n_tokens_neox': 1508, 'n_words': 241}