<commit_before># -*- coding:Utf-8 -*-
import os
from mongoengine import connect
import djcelery
import urlparse

from settings.base import *


DEBUG = False
TEMPLATE_DEBUG = DEBUG

# The secret key is different on every env for maximum security
SECRET_KEY = os.getenv('DJANGO_SECRET_KEY')

# Emails can be only send from @vosae in production for security purpose
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_USE_TLS = True
EMAIL_HOST = 'email-smtp.us-east-1.amazonaws.com'
EMAIL_HOST_USER = os.getenv('EMAIL_HOST_USER')
EMAIL_HOST_PASSWORD = os.getenv('EMAIL_HOST_PASSWORD')
EMAIL_PORT = 587
DEFAULT_FROM_EMAIL = os.getenv('DEFAULT_FROM_EMAIL')


# DATABASE CONFIGURATION SHOULD BE DEFINED HERE:
# MYSQL EXAMPLE:

# MYSQL DATABASE
# mysql_url = urlparse.urlparse(os.getenv('MYSQL_DATABASE_URL'))
# DATABASES['default'] = {
#     'ENGINE': 'django.db.backends.mysql',
#     'HOST': mysql_url.hostname,
#     'USER': mysql_url.username,
#     'NAME': mysql_url.path[1:],
#     'PASSWORD': <PASSWORD>,
#     'OPTIONS': {
#         'ssl': {
#             'ca': SITE_ROOT + '/../cert/vosae/mysql_ca.pem',
#             'cert': SITE_ROOT + '/../cert/vosae/mysql_cert.pem',
#             'key': SITE_ROOT + '/../cert/vosae/mysql_id-key-no-password.pem'
#         },
#     }
# }


# Set your DSN value<commit_msg>Allow any smtp host in production<commit_after># -*- coding:Utf-8 -*-
import os
from mongoengine import connect
import djcelery
import urlparse

from settings.base import *


DEBUG = False
TEMPLATE_DEBUG = DEBUG

# The secret key is different on every env for maximum security
SECRET_KEY = os.getenv('DJANGO_SECRET_KEY')

# Emails can be only send from @vosae in production for security purpose
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_USE_TLS = True
EMAIL_HOST = os.getenv('EMAIL_HOST')
EMAIL_HOST_USER = os.getenv('EMAIL_HOST_USER')
EMAIL_HOST_PASSWORD = os.getenv('EMAIL_HOST_PASSWORD')
EMAIL_PORT = 587
DEFAULT_FROM_EMAIL = os.getenv('DEFAULT_FROM_EMAIL')


# DATABASE CONFIGURATION SHOULD BE DEFINED HERE:
# MYSQL EXAMPLE:

# MYSQL DATABASE
# mysql_url = urlparse.urlparse(os.getenv('MYSQL_DATABASE_URL'))
# DATABASES['default'] = {
#     'ENGINE': 'django.db.backends.mysql',
#     'HOST': mysql_url.hostname,
#     'USER': mysql_url.username,
#     'NAME': mysql_url.path[1:],
#     'PASSWORD': <PASSWORD>,
#     'OPTIONS': {
#         'ssl': {
#             'ca': SITE_ROOT + '/../cert/vosae/mysql_ca.pem',
#             'cert': SITE_ROOT + '/../cert/vosae/mysql_cert.pem',
#             'key': SITE_ROOT + '/../cert/vosae/mysql_id-key-no-password.pem'
#         },
#     }
# }


# Set your DSN value
{'fraction_non_alphanumeric': 0.13931656027037176, 'fraction_numerical': 0.004130679684566279, 'mean_word_length': 3.6984126984126986, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1961617', 'n_tokens_mistral': 1014, 'n_tokens_neox': 991, 'n_words': 196}