<commit_before>import settings

def stuff(request):
    """
    Aggiunge le variabili relative alla STUFF directory
    """
    stuff = settings.CONFERENCE_STUFF_URL
    ctx = {
        'STUFF_URL': stuff,
        'SPONSOR_LOGO_URL': '%ssponsor/' % stuff,
        'MEDIAPARTNER_LOGO_URL': '%smedia-partner/' % stuff,
        'SPEAKER_FACE_URL': '%sspeaker/' % stuff,
        'SLIDE_FILE_URL': '%sslides/' % stuff,
    }
    if settings.CONFERENCE_GOOGLE_MAPS:
        ctx['GOOGLE_MAPS_KEY'] = settings.CONFERENCE_GOOGLE_MAPS['key']
    return ctx
<commit_msg>se possibile innietto il DEFAULT_URL_PREFIX nel context dei template<commit_after>import settings

from django.conf import settings as dsettings

def stuff(request):
    """
    Aggiunge le variabili relative alla STUFF directory
    """
    stuff = settings.CONFERENCE_STUFF_URL
    ctx = {
        'STUFF_URL': stuff,
        'SPONSOR_LOGO_URL': '%ssponsor/' % stuff,
        'MEDIAPARTNER_LOGO_URL': '%smedia-partner/' % stuff,
        'SPEAKER_FACE_URL': '%sspeaker/' % stuff,
        'SLIDE_FILE_URL': '%sslides/' % stuff,
        'DEFAULT_URL_PREFIX': getattr(dsettings, 'DEFAULT_URL_PREFIX', ''),
    }
    if settings.CONFERENCE_GOOGLE_MAPS:
        ctx['GOOGLE_MAPS_KEY'] = settings.CONFERENCE_GOOGLE_MAPS['key']
    return ctx

{'fraction_non_alphanumeric': 0.11805555555555555, 'fraction_numerical': 0.0, 'mean_word_length': 3.367003367003367, 'pattern_counts': {'":': 0, '<': 3, '<?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': '4490178', 'n_tokens_mistral': 455, 'n_tokens_neox': 450, 'n_words': 85}