<commit_before># -*- coding: utf-8 -*-
from __future__ import absolute_import

from .project import *  # NOQA

# Set debug to True for development
DEBUG = True
LOGGING_OUTPUT_ENABLED = DEBUG
LOGGING_LOG_SQL = DEBUG

INSTALLED_APPS += (
    'django_extensions',
)

DATABASES = {
    'default': {
        'ENGINE': 'django.contrib.gis.db.backends.postgis',
        'NAME': 'eventkit_exports_dev',
        'OPTIONS': {
            'options': '-c search_path=exports,public',
            ##'sslmode': 'require',
        },
        'CONN_MAX_AGE': None,
        'USER': 'eventkit',
        'PASSWORD': '<PASSWORD>',
        'HOST': 'postgis'
    }
}


TEMPLATES = [
    {<commit_msg>use DATABASE_URL in dev.py if present<commit_after># -*- coding: utf-8 -*-
from __future__ import absolute_import

from .project import *  # NOQA

# Set debug to True for development
DEBUG = True
LOGGING_OUTPUT_ENABLED = DEBUG
LOGGING_LOG_SQL = DEBUG

INSTALLED_APPS += (
    'django_extensions',
)

uri = os.environ.get('DATABASE_URL')
if uri:
    uri = urlparse.urlparse(uri)
    DATABASES = {
        'default': {
            'ENGINE': 'django.contrib.gis.db.backends.postgis',
            'NAME': uri.path[1:],
            'OPTIONS': {
                'options': '-c search_path=exports,public',
                ##'sslmode': 'require',
            },
            'CONN_MAX_AGE': None,
            'USER': uri.username,
            'PASSWORD': uri.password,
            'HOST': uri.hostname
        }
    }

else:
    DATABASES = {
        'default': {
            'ENGINE': 'django.contrib.gis.db.backends.postgis',
            'NAME': 'eventkit_exports_dev',
            'OPTIONS': {
                'options': '-c search_path=exports,public',
                ##'sslmode': 'require',
            },
            'CONN_MAX_AGE': None,
            'USER': 'eventkit',
            'PASSWORD': '<PASSWORD>',
            'HOST': 'postgis'
        }
    }


TEMPLATES = [
    {
{'fraction_non_alphanumeric': 0.1443932411674347, 'fraction_numerical': 0.0015360983102918587, 'mean_word_length': 2.020092735703246, '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': '219651', 'n_tokens_mistral': 652, 'n_tokens_neox': 644, 'n_words': 124}