<commit_before><commit_msg>Changed the structure of the settings.<commit_after>from django.conf import settings
import django

DJANGO10_COMPAT = django.VERSION[0] < 1 or (django.VERSION[0] == 1 and django.VERSION[1] < 1)
STATIC_URL = getattr(settings, 'STATIC_URL', settings.MEDIA_URL)

DEFAULT_SETTINGS = {
    'MEDIA_PATH': '%snavbar/' % STATIC_URL,
    'TREE_INITIAL_STATE': 'collapsed',
}

USER_SETTINGS = DEFAULT_SETTINGS.copy()

USER_SETTINGS.update(getattr(settings, 'NAVBAR_SETTINGS', {}))

globals().update(USER_SETTINGS)
{'fraction_non_alphanumeric': 0.1320754716981132, 'fraction_numerical': 0.01509433962264151, 'mean_word_length': 6.695652173913044, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '6299614', 'n_tokens_mistral': 190, 'n_tokens_neox': 188, 'n_words': 35}