<commit_before>from os import environ
from os.path import dirname, join

from .common import *

import dj_database_url


DEBUG = False
TEMPLATE_DEBUG = False
LOCAL_SERVER = bool(int(environ.get('LOCAL_SERVER', '1')))

# load local .env
if LOCAL_SERVER:
    import dotenv
    PROJECT_PATH = dirname(dirname(dirname(__file__)))
    dotenv.load_dotenv(join(PROJECT_PATH, ".env"))


# Database

DATABASES = {
    'default': dj_database_url.config(default='')
}


# Security

ALLOWED_HOSTS = (
    '{{ cookiecutter.repo_name }}.herokuapp.com',
)
<commit_msg>Let any heroku app be allowed<commit_after>from os import environ
from os.path import dirname, join

from .common import *

import dj_database_url


DEBUG = False
TEMPLATE_DEBUG = False
LOCAL_SERVER = bool(int(environ.get('LOCAL_SERVER', '1')))

# load local .env
if LOCAL_SERVER:
    import dotenv
    PROJECT_PATH = dirname(dirname(dirname(__file__)))
    dotenv.load_dotenv(join(PROJECT_PATH, ".env"))


# Database

DATABASES = {
    'default': dj_database_url.config(default='')
}


# Security

ALLOWED_HOSTS = (
    '.herokuapp.com',  # Prefer an url with no subdomain authorized
)

{'fraction_non_alphanumeric': 0.11578947368421053, 'fraction_numerical': 0.0017543859649122807, 'mean_word_length': 4.5931372549019605, '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': '3714547', 'n_tokens_mistral': 404, 'n_tokens_neox': 403, 'n_words': 91}