<commit_before># Django settings for foodspot project
from datetime import timedelta
import os
import configparser
import dj_database_url
from django.core.exceptions import ImproperlyConfigured
import django_cache_url

BASE = os.path.dirname(os.path.dirname(__file__))
CONFIG_PATH = os.path.join(BASE, 'conf', 'foodspot.conf')
if not os.path.exists(CONFIG_PATH):
    raise ImproperlyConfigured('Could not read config: %s' % CONFIG_PATH)

config = configparser.ConfigParser()
config.read(CONFIG_PATH)

DEBUG = config.getboolean('general', 'debug')
TEMPLATE_DEBUG = DEBUG

ADMINS = [
    ('<NAME>', '<EMAIL>'),
    ('<NAME>', '<EMAIL>'),
]
MANAGERS = ADMINS

ROOT_URLCONF = 'foodspot.urls'
WSGI_APPLICATION = 'foodspot.wsgi.application'

SESSION_ENGINE = 'django.contrib.sessions.backends.signed_cookies'

INSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'django.contrib.admin',
    'django.contrib.sites',
    'django.contrib.redirects',
    'raven.contrib.django.raven_compat',
    'debug_toolbar',
    'foodspot.texts',
)

MIDDLEWARE_CLASSES = (
    'django.middleware.common.CommonMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.csrf.CsrfViewMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.contrib.messages.middleware.MessageMiddleware',
    'django.middleware.clickjacking.XFrameOptionsMiddleware',
    'raven.contrib.django.raven_compat.middleware.Sentry404CatchMiddleware',
    'django.contrib.redirects.middleware.RedirectFallbackMiddleware',
)

ALLOWED_HOSTS = ['*']
SECRET_KEY = config.get('general', 'secret_key')

DATABASES = {
    'default': dj_database_url.parse(config.get('db', 'default'))
}<commit_msg>Removed 404 from sentry config<commit_after># Django settings for foodspot project
from datetime import timedelta
import os
import configparser
import dj_database_url
from django.core.exceptions import ImproperlyConfigured
import django_cache_url

BASE = os.path.dirname(os.path.dirname(__file__))
CONFIG_PATH = os.path.join(BASE, 'conf', 'foodspot.conf')
if not os.path.exists(CONFIG_PATH):
    raise ImproperlyConfigured('Could not read config: %s' % CONFIG_PATH)

config = configparser.ConfigParser()
config.read(CONFIG_PATH)

DEBUG = config.getboolean('general', 'debug')
TEMPLATE_DEBUG = DEBUG

ADMINS = [
    ('<NAME>', '<EMAIL>'),
    ('<NAME>', '<EMAIL>'),
]
MANAGERS = ADMINS

ROOT_URLCONF = 'foodspot.urls'
WSGI_APPLICATION = 'foodspot.wsgi.application'

SESSION_ENGINE = 'django.contrib.sessions.backends.signed_cookies'

INSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'django.contrib.admin',
    'django.contrib.sites',
    'django.contrib.redirects',
    'raven.contrib.django.raven_compat',
    'debug_toolbar',
    'foodspot.texts',
)

MIDDLEWARE_CLASSES = (
    'django.middleware.common.CommonMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.csrf.CsrfViewMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.contrib.messages.middleware.MessageMiddleware',
    'django.middleware.clickjacking.XFrameOptionsMiddleware',
    'django.contrib.redirects.middleware.RedirectFallbackMiddleware',
)

ALLOWED_HOSTS = ['*']
SECRET_KEY = config.get('general', 'secret_key')

DATABASES = {
    'default': dj_database_url.parse(config.get('db', 'default'))
}
{'fraction_non_alphanumeric': 0.13288288288288289, 'fraction_numerical': 0.0016891891891891893, 'mean_word_length': 5.378815080789946, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '4185774', 'n_tokens_mistral': 1177, 'n_tokens_neox': 1173, 'n_words': 177}