<commit_before>import os, sys

sys.path.insert(0, "..")

BASE_DIR = os.path.dirname(__file__)
DEBUG = False
TEMPLATE_DEBUG = DEBUG

DATABASES = {
    "default": {
        "ENGINE": "django.db.backends.sqlite3",
    }
}

MIDDLEWARE_CLASSES = [
    "django.middleware.common.CommonMiddleware",
    "django.contrib.sessions.middleware.SessionMiddleware",
    "django.contrib.auth.middleware.AuthenticationMiddleware",
    "django.contrib.messages.middleware.MessageMiddleware",
]

ROOT_URLCONF = "testapp.urls"

USE_I18N =  True
USE_TZ = True
TIME_ZONE = "UTC"
LANGUAGE_CODE = "en"
ADMIN_MEDIA_PREFIX = "/static/admin/"
INTERNAL_IPS = ("127.0.0.1",)

STATIC_ROOT = os.path.join(BASE_DIR, "static")
STATIC_URL = "/static/"

# STATICFILES_DIRS = (
#     os.path.join(BASE_DIR, "static"),
# )


# STATICFILES_STORAGE = 'pipeline.storage.PipelineCachedStorage'


STATICFILES_FINDERS = (
    'django.contrib.staticfiles.finders.FileSystemFinder',
    'django.contrib.staticfiles.finders.AppDirectoriesFinder',
    'pipeline.finders.PipelineFinder',
)

# TEMPLATE_DIRS = ()

SECRET_KEY = "<KEY>"
INSTALLED_APPS = (
    "django.contrib.auth",
    "django.contrib.contenttypes",
    "django.contrib.sessions",
    "django.contrib.staticfiles",
    "django.contrib.messages",
    "pipeline",
    "django_jinja",
    "django_jinja.contrib._pipeline",
    "testapp",
)

TEMPLATE_LOADERS = [
   "django_jinja.loaders.AppLoader",
   "django_jinja.loaders.FileSystemLoader"
]

# TEMPLATES = [
#    {"BACKEND": "django_jinja.backend.Jinja2",
#     "NAME": "jinja2",
#     "APP_DIRS": True,
#     "OPTIONS": {
#         "context_processors": [
#            "django.contrib.auth.context_processors.auth",
#            "django.template.context_processors.debug",
#            "django.template.context_processors.i18n",
#            "django.template.context_processors.media",
#            "django.template.context_processors.static",
#            "django.template.context_processors.tz",
#            "django.contrib.messages.context_processors.messages",
#         ]
#     }}
# ]

PIPELINE_CSS = {
   "test": {
       "source_filenames": ["style.css"],
       "output_filename": "style.2.css",
       "extra_context": {"media": "all"},
   },
   "test2": {
       "source_filenames": ["style.css"],
       "output_filename": "style.2.css",
   }
}


PIPELINE_JS = {
   "test": {
       "source_filenames": ["script.js"],
       "output_filename": "script.2.js",
   }
}

JINJA2_CONSTANTS = {"foo": "bar"}
JINJA2_AUTOESCAPE = True
JINJA2_MUTE_URLRESOLVE_EXCEPTIONS = True
JINJA2_TEMPLATE_EXTENSION = '.jinja'

import django
if django.VERSION[:2] >= (1, 6):
    TEST_RUNNER = "django.test.runner.DiscoverRunner"<commit_msg>Minor changes related to pipeline on settings.<commit_after>import os, sys

sys.path.insert(0, "..")

BASE_DIR = os.path.dirname(__file__)
DEBUG = False
TEMPLATE_DEBUG = DEBUG

ALLOWED_HOSTS = ["*"]

DATABASES = {
    "default": {
        "ENGINE": "django.db.backends.sqlite3",
    }
}

MIDDLEWARE_CLASSES = [
    "django.middleware.common.CommonMiddleware",
    "django.contrib.sessions.middleware.SessionMiddleware",
    "django.contrib.auth.middleware.AuthenticationMiddleware",
    "django.contrib.messages.middleware.MessageMiddleware",
]

ROOT_URLCONF = "testapp.urls"

USE_I18N =  True
USE_TZ = True
TIME_ZONE = "UTC"
LANGUAGE_CODE = "en"
ADMIN_MEDIA_PREFIX = "/static/admin/"
INTERNAL_IPS = ("127.0.0.1",)

#STATICFILES_STORAGE = "pipeline.storage.PipelineStorage"
STATIC_ROOT = os.path.join(BASE_DIR, "static")
STATIC_URL = "/static/"

PIPELINE_CSS_COMPRESSOR = None
PIPELINE_JS_COMPRESSOR = None
PIPELINE_ENABLE = False

STATICFILES_FINDERS = (
    "django.contrib.staticfiles.finders.FileSystemFinder",
    "django.contrib.staticfiles.finders.AppDirectoriesFinder",
    "pipeline.finders.PipelineFinder",
    "pipeline.finders.CachedFileFinder",
)

# TEMPLATE_DIRS = ()

SECRET_KEY = "<KEY>"
INSTALLED_APPS = (
    "django.contrib.auth",
    "django.contrib.contenttypes",
    "django.contrib.sessions",
    "django.contrib.staticfiles",
    "django.contrib.messages",
    "pipeline",
    "django_jinja",
    "django_jinja.contrib._pipeline",
    "testapp",
)

TEMPLATE_LOADERS = [
   "django_jinja.loaders.AppLoader",
   "django_jinja.loaders.FileSystemLoader"
]

# TEMPLATES = [
#    {"BACKEND": "django_jinja.backend.Jinja2",
#     "NAME": "jinja2",
#     "APP_DIRS": True,
#     "OPTIONS": {
#         "context_processors": [
#            "django.contrib.auth.context_processors.auth",
#            "django.template.context_processors.debug",
#            "django.template.context_processors.i18n",
#            "django.template.context_processors.media",
#            "django.template.context_processors.static",
#            "django.template.context_processors.tz",
#            "django.contrib.messages.context_processors.messages",
#         ]
#     }}
# ]

PIPELINE_CSS = {
   "test": {
       "source_filenames": ["style.css"],
       "output_filename": "style.2.css",
       "extra_context": {"media": "all"},
   },
   "test2": {
       "source_filenames": ["style.css"],
       "output_filename": "style.2.css",
   }
}


PIPELINE_JS = {
   "test": {
       "source_filenames": ["script.js"],
       "output_filename": "script.2.js",
   }
}

JINJA2_CONSTANTS = {"foo": "bar"}
JINJA2_AUTOESCAPE = True
JINJA2_MUTE_URLRESOLVE_EXCEPTIONS = True
JINJA2_TEMPLATE_EXTENSION = ".jinja"
# JINJA2_EXTENSIONS = [
#     "pipeline.jinja2.ext.PipelineExtension",
# ]

import django
if django.VERSION[:2] >= (1, 6):
    TEST_RUNNER = "django.test.runner.DiscoverRunner"


LOGGING = {
    "version": 1,
    "disable_existing_loggers": False,
    "filters": {
        "require_debug_false": {
            "()": "django.utils.log.RequireDebugFalse"
        }
    },

    "formatters": {
        "simple": {
            "format": "%(asctime)s: %(message)s",
        }
    },

    "handlers": {
        "console":{
            "level":"DEBUG",
            "class":"logging.StreamHandler",
            "formatter": "simple"
        },

    },
    "loggers": {
        "django.request": {
            "handlers": ["console"],
            "level": "ERROR",
            "propagate": True,
        },
        "arandomtable.custom": {
            "handlers": ["console"],
            "level": "DEBUG",
        },

    }
}
{'fraction_non_alphanumeric': 0.15640335602342884, 'fraction_numerical': 0.008390058572107013, 'mean_word_length': 3.1483913328956006, 'pattern_counts': {'":': 59, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '3906568', 'n_tokens_mistral': 2295, 'n_tokens_neox': 2248, 'n_words': 276}