<commit_before>from __future__ import unicode_literals

import os

from alexandriadocs.settings import *  # NOQA


DEBUG = False
COMPRESS_OFFLINE = True


ALLOWED_HOSTS = [os.environ.get('DJ_ALLOWED_HOSTS')]
SECRET_KEY = os.environ.get('SECRET_KEY')


# database configs

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql_psycopg2',
        'NAME': os.environ.get('DB_NAME'),
        'USER': os.environ.get('DB_USER'),
        'PASSWORD': os.environ.get('DB_PASS'),
        'HOST': os.environ.get('DB_HOST'),
        'PORT': os.environ.get('DB_PORT')
    }
}


# elasticsearch configs

HAYSTACK_CONNECTIONS = {
    'default': {
        'ENGINE': 'haystack.backends.elasticsearch2_backend.Elasticsearch2SearchEngine',  # noqa
        'URL': os.environ.get('ES_URL'),
        'INDEX_NAME': os.environ.get('ES_INDEX'),
    },<commit_msg>Fixed env var of secret key<commit_after>from __future__ import unicode_literals

import os

from alexandriadocs.settings import *  # NOQA


DEBUG = False
COMPRESS_OFFLINE = True


ALLOWED_HOSTS = [os.environ.get('DJ_ALLOWED_HOSTS')]
SECRET_KEY = os.environ.get('DJ_SECRET_KEY')


# database configs

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql_psycopg2',
        'NAME': os.environ.get('DB_NAME'),
        'USER': os.environ.get('DB_USER'),
        'PASSWORD': os.environ.get('DB_PASS'),
        'HOST': os.environ.get('DB_HOST'),
        'PORT': os.environ.get('DB_PORT')
    }
}


# elasticsearch configs

HAYSTACK_CONNECTIONS = {
    'default': {
        'ENGINE': 'haystack.backends.elasticsearch2_backend.Elasticsearch2SearchEngine',  # noqa
        'URL': os.environ.get('ES_URL'),
        'INDEX_NAME': os.environ.get('ES_INDEX'),
    },
{'fraction_non_alphanumeric': 0.1489971346704871, 'fraction_numerical': 0.0034383954154727794, 'mean_word_length': 3.546875, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1686936', 'n_tokens_mistral': 647, 'n_tokens_neox': 645, 'n_words': 95}