<commit_before>import os

import dj_database_url


# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))


# Useful constants.
_TRUTHY_STRINGS = ('true', 'yes', 'on')


# Useful functions.
def getenv_bool(key):
    value = os.environ.get(key, 'false')
    return value.lower() in _TRUTHY_STRINGS


# Security stuff.
ALLOWED_HOSTS = ['bord.uk']

DEBUG = getenv_bool('DEBUG')

SECRET_KEY = os.environ['SECRET_KEY']


# Application definition

INSTALLED_APPS = [<commit_msg>Add heroku subdomain to ALLOWED_HOSTS<commit_after>import os

import dj_database_url


# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))


# Useful constants.
_TRUTHY_STRINGS = ('true', 'yes', 'on')


# Useful functions.
def getenv_bool(key):
    value = os.environ.get(key, 'false')
    return value.lower() in _TRUTHY_STRINGS


# Security stuff.
ALLOWED_HOSTS = ['bord.uk', 'bord-red-dragon.herokuapp.com']

DEBUG = getenv_bool('DEBUG')

SECRET_KEY = os.environ['SECRET_KEY']


# Application definition

INSTALLED_APPS = [
{'fraction_non_alphanumeric': 0.13678844519966016, 'fraction_numerical': 0.0, 'mean_word_length': 4.8316831683168315, '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': '4353965', 'n_tokens_mistral': 447, 'n_tokens_neox': 435, 'n_words': 89}