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

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

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

from django.utils.translation import gettext_lazy as _

from pathlib import Path
BASE_PATH = Path(".").resolve()

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

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = "<KEY>"

ALLOWED_HOSTS = []

# Application definition

FRAMEWORK_APPS = (
    "django.contrib.admin",
    "django.contrib.auth",
    "django.contrib.contenttypes",
    "django.contrib.sessions",
    "django.contrib.messages",
    "django.contrib.staticfiles",
    "django_extensions",
    "compressor",
    "bootstrap3",
    "chartit",
)

LOCAL_APPS = (
    "gluon",
    "base",
    "util",
    "saas",
#    "legal",
)

if Path("apps.txt").is_file():
    with open("apps.txt") as f:
        for line in f.readlines():
            line = line.strip()
            if not line or line[0] == "#":
                continue
            else:
                LOCAL_APPS = LOCAL_APPS + (line,)

INSTALLED_APPS = FRAMEWORK_APPS + LOCAL_APPS

MIDDLEWARE_CLASSES = (
    "django.contrib.sessions.middleware.SessionMiddleware",
    "django.middleware.common.CommonMiddleware",
    "django.middleware.csrf.CsrfViewMiddleware",
    "django.contrib.auth.middleware.AuthenticationMiddleware",
    "django.contrib.auth.middleware.SessionAuthenticationMiddleware",
    "django.contrib.messages.middleware.MessageMiddleware",
    "django.middleware.clickjacking.XFrameOptionsMiddleware",
    "django.middleware.locale.LocaleMiddleware",
    "base.middleware.GluonBaseMiddleware",
    "saas.middleware.GluonSaasMiddleware",
)

TEMPLATE_CONTEXT_PROCESSORS = (
    "django.contrib.auth.context_processors.auth",
    "django.core.context_processors.debug",
    "django.core.context_processors.i18n",
    "django.core.context_processors.media",
    "django.core.context_processors.static",
    "django.core.context_processors.tz",
    "django.contrib.messages.context_processors.messages",
    "django.core.context_processors.i18n",
)

TEMPLATE_LOADERS = (
    "django.template.loaders.filesystem.Loader",
    "django.template.loaders.app_directories.Loader",
)

ROOT_URLCONF = "gluon.urls"

WSGI_APPLICATION = "gluon.wsgi.application"

# Internationalization
# https://docs.djangoproject.com/en/1.7/topics/i18n/

USE_I18N = True

USE_L10N = True

USE_TZ = True

LANGUAGES = (
    ("fr", _("French")),
    ("en", _("English")),
)

LOCALE_PATHS = (
    str(BASE_PATH / "locales"),
)

# Media files

MEDIA_ROOT = str(BASE_PATH / "media")

MEDIA_URL = "/media/"

# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.7/howto/static-files/

STATIC_ROOT = str(BASE_PATH / "static")

STATIC_URL = "/static/"

STATICFILES_FINDERS = (
    "django.contrib.staticfiles.finders.FileSystemFinder",
    "django.contrib.staticfiles.finders.AppDirectoriesFinder",
    "compressor.finders.CompressorFinder",
)<commit_msg>New params, related to main template<commit_after>"""
Django settings for gluon project.

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

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

from django.utils.translation import gettext_lazy as _

from pathlib import Path
BASE_PATH = Path(".").resolve()

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

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = "<KEY>"

ALLOWED_HOSTS = []

# Application definition

FRAMEWORK_APPS = (
    "django.contrib.admin",
    "django.contrib.auth",
    "django.contrib.contenttypes",
    "django.contrib.sessions",
    "django.contrib.messages",
    "django.contrib.staticfiles",
    "django_extensions",
    "compressor",
    "bootstrap3",
    "chartit",
)

LOCAL_APPS = (
    "gluon",
    "base",
    "util",
    "saas",
#    "legal",
)

if Path("apps.txt").is_file():
    with open("apps.txt") as f:
        for line in f.readlines():
            line = line.strip()
            if not line or line[0] == "#":
                continue
            else:
                LOCAL_APPS = LOCAL_APPS + (line,)

INSTALLED_APPS = FRAMEWORK_APPS + LOCAL_APPS

MIDDLEWARE_CLASSES = (
    "django.contrib.sessions.middleware.SessionMiddleware",
    "django.middleware.common.CommonMiddleware",
    "django.middleware.csrf.CsrfViewMiddleware",
    "django.contrib.auth.middleware.AuthenticationMiddleware",
    "django.contrib.auth.middleware.SessionAuthenticationMiddleware",
    "django.contrib.messages.middleware.MessageMiddleware",
    "django.middleware.clickjacking.XFrameOptionsMiddleware",
    "django.middleware.locale.LocaleMiddleware",
    "base.middleware.GluonBaseMiddleware",
    "saas.middleware.GluonSaasMiddleware",
)

TEMPLATE_CONTEXT_PROCESSORS = (
    "django.contrib.auth.context_processors.auth",
    "django.core.context_processors.debug",
    "django.core.context_processors.i18n",
    "django.core.context_processors.media",
    "django.core.context_processors.static",
    "django.core.context_processors.tz",
    "django.contrib.messages.context_processors.messages",
    "django.core.context_processors.i18n",
)

TEMPLATE_LOADERS = (
    "django.template.loaders.filesystem.Loader",
    "django.template.loaders.app_directories.Loader",
)

ROOT_URLCONF = "gluon.urls"

WSGI_APPLICATION = "gluon.wsgi.application"

# Internationalization
# https://docs.djangoproject.com/en/1.7/topics/i18n/

USE_I18N = True

USE_L10N = True

USE_TZ = True

LANGUAGES = (
    ("fr", _("French")),
    ("en", _("English")),
)

LOCALE_PATHS = (
    str(BASE_PATH / "locales"),
)

# Media files

MEDIA_ROOT = str(BASE_PATH / "media")

MEDIA_URL = "/media/"

# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.7/howto/static-files/

STATIC_ROOT = str(BASE_PATH / "static")

STATIC_URL = "/static/"

STATICFILES_FINDERS = (
    "django.contrib.staticfiles.finders.FileSystemFinder",
    "django.contrib.staticfiles.finders.AppDirectoriesFinder",
    "compressor.finders.CompressorFinder",
)

GOOGLE_SITE_VERIFICATION = None
WELCOME_MESSAGE = "Welcome,"
{'fraction_non_alphanumeric': 0.13405405405405404, 'fraction_numerical': 0.006795366795366796, 'mean_word_length': 3.8582145536384096, 'pattern_counts': {'":': 2, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 10, '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': '3368759', 'n_tokens_mistral': 2257, 'n_tokens_neox': 2199, 'n_words': 341}