<commit_before>from os import environ
from common import *
from logentries import LogentriesHandler
import logging

# See: https://docs.djangoproject.com/en/dev/ref/settings/#databases
DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql_psycopg2',
        'NAME': SITE_NAME,
        'USER': SITE_NAME,
        'PASSWORD': environ.get("{}_POSTGRES_PASS".format(SITE_NAME.upper())),
        'HOST': '127.0.0.1',
        'PORT': '5432',
    },
    'archive': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': 'DB02Orient',
        'USER': 'root',
        'PASSWORD': '',
        'HOST': '127.0.0.1',
        'PORT': '3306',
    }
}

# See: https://docs.djangoproject.com/en/dev/ref/settings/#secret-key
SECRET_KEY = environ.get('{}_SECRET_KEY'.format(SITE_NAME.upper()), '')

# See: http://django-storages.readthedocs.org/en/latest/index.html
INSTALLED_APPS += (
    'djsupervisor',
    'raven.contrib.django.raven_compat',
)

# See: https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts
ALLOWED_HOSTS = [
    '.bjacobel.com',
    '.bowdoinorient.com'
]

########## CACHE CONFIGURATION
# See: https://docs.djangoproject.com/en/dev/ref/settings/#caches
CACHES = {
    'default': {
        'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
        'LOCATION': '127.0.0.1:11211',
    }
}
########## END CACHE CONFIGURATION


#### RAVEN ###

RAVEN_CONFIG = {
    'dsn': environ.get('{}_RAVEN_DSN'.format(SITE_NAME.upper())),
}

### END RAVEN #####

###### LOGENTRIES #####
LOGGING['handlers']['logentries_handler'] = {
    'token': environ.get('{}_LOGENTRIES_TOKEN'.format(SITE_NAME.upper())),
    'class': 'logentries.LogentriesHandler'
}

LOGGING['loggers']['logentries'] = {
    'handlers': ['logentries_handler'],
    'level': 'INFO',
}<commit_msg>Revert "weird json object settings notation"<commit_after>from os import environ
from common import *

# See: https://docs.djangoproject.com/en/dev/ref/settings/#databases
DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql_psycopg2',
        'NAME': SITE_NAME,
        'USER': SITE_NAME,
        'PASSWORD': environ.get("{}_POSTGRES_PASS".format(SITE_NAME.upper())),
        'HOST': '127.0.0.1',
        'PORT': '5432',
    },
    'archive': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': 'DB02Orient',
        'USER': 'root',
        'PASSWORD': '',
        'HOST': '127.0.0.1',
        'PORT': '3306',
    }
}

# See: https://docs.djangoproject.com/en/dev/ref/settings/#secret-key
SECRET_KEY = environ.get('{}_SECRET_KEY'.format(SITE_NAME.upper()), '')

# See: http://django-storages.readthedocs.org/en/latest/index.html
INSTALLED_APPS += (
    'djsupervisor',
    'raven.contrib.django.raven_compat',
)

# See: https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts
ALLOWED_HOSTS = [
    '.bjacobel.com',
    '.bowdoinorient.com'
]

########## CACHE CONFIGURATION
# See: https://docs.djangoproject.com/en/dev/ref/settings/#caches
CACHES = {
    'default': {
        'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
        'LOCATION': '127.0.0.1:11211',
    }
}
########## END CACHE CONFIGURATION


#### RAVEN ###

RAVEN_CONFIG = {
    'dsn': environ.get('{}_RAVEN_DSN'.format(SITE_NAME.upper())),
}

### END RAVEN #####

###### LOGENTRIES #####

from logentries import LogentriesHandler
import logging

'handlers': {
    'logentries_handler': {
        'token': environ.get('{}_LOGENTRIES_TOKEN'.format(SITE_NAME.upper())),
        'class': 'logentries.LogentriesHandler'
    },
}

'loggers': {
    'logentries': {
        'handlers': ['logentries_handler'],
        'level': 'INFO',
    },
}
{'fraction_non_alphanumeric': 0.20189959294436907, 'fraction_numerical': 0.018453188602442334, 'mean_word_length': 3.388095238095238, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 6, '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': '2093423', 'n_tokens_mistral': 1419, 'n_tokens_neox': 1375, 'n_words': 177}