<commit_before># Django settings for challenge project.

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


DEBUG = False


TIME_ZONE = 'Europe/Oslo'
LANGUAGE_CODE = 'en'


from django.utils.translation import ugettext_lazy as _
LANGUAGES = (
    ('nb', _('Norwegian bokmål')),
    ('en', _('English')),
)


SITE_ID = 1

USE_I18N = True

MEDIA_URL = '/media/'
ADMIN_MEDIA_PREFIX = '/amedia/'

LOCALE_PATHS = (
    os.path.join(BASE_DIR, "locale/"),
)

MIDDLEWARE_CLASSES = (
    'django.middleware.common.CommonMiddleware',
    'django.middleware.locale.LocaleMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.contrib.messages.middleware.MessageMiddleware',
    'core.middleware.ClosedMiddleware',
)

ROOT_URLCONF = 'challenge.urls'

TEST_RUNNER = 'django.test.runner.DiscoverRunner'

INSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.admin',
    'django.contrib.staticfiles',
    'bootstrap3',
    'solo',
    'levels',
    'core',
    'stats',
)


TEMPLATES = [
        {
                'BACKEND': 'django.template.backends.django.DjangoTemplates',
                'DIRS': [os.path.join(BASE_DIR, 'templates')],
                'APP_DIRS': True,
                'OPTIONS': {
                        'context_processors': [
                                'django.template.context_processors.debug',
                                'django.template.context_processors.request',
                                'django.contrib.auth.context_processors.auth',
                                'django.contrib.messages.context_processors.messages',
                        ],
                },
        },
]

STATIC_ROOT = os.path.join(BASE_DIR, '..', 'collected_static/')

MEDIA_ROOT = os.path.join(BASE_DIR, '..', "media/")

STATIC_URL = '/static/'
LOGIN_URL = '/login/'
LOGOUT_URL = '/logout/'
LOGIN_REDIRECT_URL = '/'

BOOTSTRAP3 = {
    'css_url': 'https://maxcdn.bootstrapcdn.com/bootswatch/3.3.6/superhero/bootstrap.min.css',
}<commit_msg>update bootstrap url to latest version (3.3.7)<commit_after># Django settings for challenge project.

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


DEBUG = False


TIME_ZONE = 'Europe/Oslo'
LANGUAGE_CODE = 'en'


from django.utils.translation import ugettext_lazy as _
LANGUAGES = (
    ('nb', _('Norwegian bokmål')),
    ('en', _('English')),
)


SITE_ID = 1

USE_I18N = True

MEDIA_URL = '/media/'
ADMIN_MEDIA_PREFIX = '/amedia/'

LOCALE_PATHS = (
    os.path.join(BASE_DIR, "locale/"),
)

MIDDLEWARE_CLASSES = (
    'django.middleware.common.CommonMiddleware',
    'django.middleware.locale.LocaleMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.contrib.messages.middleware.MessageMiddleware',
    'core.middleware.ClosedMiddleware',
)

ROOT_URLCONF = 'challenge.urls'

TEST_RUNNER = 'django.test.runner.DiscoverRunner'

INSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.admin',
    'django.contrib.staticfiles',
    'bootstrap3',
    'solo',
    'levels',
    'core',
    'stats',
)


TEMPLATES = [
        {
                'BACKEND': 'django.template.backends.django.DjangoTemplates',
                'DIRS': [os.path.join(BASE_DIR, 'templates')],
                'APP_DIRS': True,
                'OPTIONS': {
                        'context_processors': [
                                'django.template.context_processors.debug',
                                'django.template.context_processors.request',
                                'django.contrib.auth.context_processors.auth',
                                'django.contrib.messages.context_processors.messages',
                        ],
                },
        },
]

STATIC_ROOT = os.path.join(BASE_DIR, '..', 'collected_static/')

MEDIA_ROOT = os.path.join(BASE_DIR, '..', "media/")

STATIC_URL = '/static/'
LOGIN_URL = '/login/'
LOGOUT_URL = '/logout/'
LOGIN_REDIRECT_URL = '/'

BOOTSTRAP3 = {
    'css_url': 'https://maxcdn.bootstrapcdn.com/bootswatch/3.3.7/superhero/bootstrap.min.css',
}
{'fraction_non_alphanumeric': 0.14237592634179205, 'fraction_numerical': 0.004266786436110487, 'mean_word_length': 2.566052842273819, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '4980134', 'n_tokens_mistral': 1502, 'n_tokens_neox': 1444, 'n_words': 202}