<commit_before>"""
Django settings for the admin project.
"""

import os
from urlparse import urlparse
from website import settings as osf_settings
# import local  # Build own local.py (used with postgres)

BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/1.8/howto/deployment/checklist/

# from the OSF settings
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = osf_settings.SECRET_KEY


# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = osf_settings.DEBUG_MODE

ALLOWED_HOSTS = [
    '.osf.io'
]

# Email settings. Account created for testing. Password shouldn't be hardcoded
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'

# Application definition

INSTALLED_APPS = (
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.messages',
    'django.contrib.sessions',
    'django.contrib.staticfiles',
    'admin.common_auth',
    'admin.base',
    'admin.pre-reg',
    'admin.spam',

    # 3rd party
    'raven.contrib.django.raven_compat',
    'webpack_loader',
)

# Custom user model (extends AbstractBaseUser)
AUTH_USER_MODEL = 'common_auth.MyUser'

# TODO: Are there more granular ways to configure reporting specifically related to the API?<commit_msg>Make app name snake case<commit_after>"""
Django settings for the admin project.
"""

import os
from urlparse import urlparse
from website import settings as osf_settings
# import local  # Build own local.py (used with postgres)

BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/1.8/howto/deployment/checklist/

# from the OSF settings
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = osf_settings.SECRET_KEY


# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = osf_settings.DEBUG_MODE

ALLOWED_HOSTS = [
    '.osf.io'
]

# Email settings. Account created for testing. Password shouldn't be hardcoded
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'

# Application definition

INSTALLED_APPS = (
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.messages',
    'django.contrib.sessions',
    'django.contrib.staticfiles',
    'admin.common_auth',
    'admin.base',
    'admin.pre_reg',
    'admin.spam',

    # 3rd party
    'raven.contrib.django.raven_compat',
    'webpack_loader',
)

# Custom user model (extends AbstractBaseUser)
AUTH_USER_MODEL = 'common_auth.MyUser'

# TODO: Are there more granular ways to configure reporting specifically related to the API?
{'fraction_non_alphanumeric': 0.1043630017452007, 'fraction_numerical': 0.0020942408376963353, 'mean_word_length': 4.367041198501872, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '3373571', 'n_tokens_mistral': 923, 'n_tokens_neox': 898, 'n_words': 237}