<commit_before>"""
Django settings for cornerwise project.

Generated by 'django-admin startproject' using Django 1.8.3.

For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/

For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""

# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import os
# For celery:
from celery.schedules import crontab

BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))

# Determine if the app is in production mode by examining the
# environment variable set by Docker:
APP_MODE = os.environ.get("DJANGO_MODE", "development").lower()

IS_PRODUCTION = (APP_MODE == "production")

# For now...
APP_MODE = "development"
IS_PRODUCTION = False

REDIS_HOST = os.environ.get("REDIS_HOST", "redis://")

# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/1.8/howto/deployment/checklist/

if "DJANGO_SECRET" in os.environ:
    SECRET_KEY = os.environ["DJANGO_SECRET"]
else:
    # SECURITY WARNING: keep the secret key used in production secret!
    SECRET_KEY = '98yd3te&#$59^w!j(@b!@f8%fv49&p)vu+8)b4e5jcvfx_yeqs'
<commit_msg>Additional cleanup of settings file<commit_after>"""
Django settings for cornerwise project.

Generated by 'django-admin startproject' using Django 1.8.3.

For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/

For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""

# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import os
# For celery:
from celery.schedules import crontab

BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))

# Determine if the app is in production mode by examining the
# environment variable set by Docker:
APP_MODE = os.environ.get("APP_MODE", "development").lower()
IS_PRODUCTION = (APP_MODE == "production")

REDIS_HOST = os.environ.get("REDIS_HOST", "redis://")

# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/1.8/howto/deployment/checklist/

SECRET_KEY = os.environ.get("DJANGO_SECRET",
                            "98yd3te&#$59^w!j(@b!@f8%fv49&p)vu+8)b4e5jcvfx_yeqs")

{'fraction_non_alphanumeric': 0.12887931034482758, 'fraction_numerical': 0.017241379310344827, 'mean_word_length': 4.5927710843373495, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, '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': '3491180', 'n_tokens_mistral': 847, 'n_tokens_neox': 800, 'n_words': 198}