<commit_before>import exportrecipe
import pathlib
import collections
import os

Size = collections.namedtuple('Size', ['width', 'height'])

if 'MANOPOZICIJA_DIR' in os.environ:
    PROJECT_DIR = pathlib.Path(os.environ['MANOPOZICIJA_DIR'])
else:
    PROJECT_DIR = pathlib.Path(__file__).parents[1]

config = exportrecipe.load(str(PROJECT_DIR / 'settings.json'))

INSTALLED_APPS = ()


# Django autocomplete light
# https://django-autocomplete-light.readthedocs.io/

# django-autocomplete-light have be installed before django.contrib.admin
INSTALLED_APPS += (
    'dal',
    'dal_select2',
)


# Django base settings
# https://docs.djangoproject.com/en/stable/ref/settings/

DEBUG = False
ROOT_URLCONF = 'manopozicija.urls'
SECRET_KEY = config.secret_key
MEDIA_URL = '/media/'<commit_msg>Fix failing tests<commit_after>import collections
import json
import os
import pathlib
import sys

Size = collections.namedtuple('Size', ['width', 'height'])

if 'MANOPOZICIJA_DIR' in os.environ:
    PROJECT_DIR = pathlib.Path(os.environ['MANOPOZICIJA_DIR'])
else:
    PROJECT_DIR = pathlib.Path(sys.executable).parents[1]

with (PROJECT_DIR / 'settings.json').open() as f:
    print(PROJECT_DIR / 'settings.json')
    config = json.load(f)

INSTALLED_APPS = ()


# Django autocomplete light
# https://django-autocomplete-light.readthedocs.io/

# django-autocomplete-light have be installed before django.contrib.admin
INSTALLED_APPS += (
    'dal',
    'dal_select2',
)


# Django base settings
# https://docs.djangoproject.com/en/stable/ref/settings/

DEBUG = False
ROOT_URLCONF = 'manopozicija.urls'
SECRET_KEY = config['secret_key']
MEDIA_URL = '/media/'
{'fraction_non_alphanumeric': 0.13001215066828675, 'fraction_numerical': 0.002430133657351154, 'mean_word_length': 4.945848375451264, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '2336047', 'n_tokens_mistral': 598, 'n_tokens_neox': 575, 'n_words': 109}