<commit_before>def get_url():
    return reverse('openid-provider-xrds')

def openid_meta(request):
    context = {
        'openid_server': context['request'].build_absolute_uri(get_url())
    }
    content = '''<meta http-equiv="X-XRDS-Location" content="%(openid_server)s"/>
    <meta http-equiv="X-YADIS-Location" content="%(openid_server)s" />
''' % context
    return { 'openid_meta': context }<commit_msg>Remove dependency on openid in the base template (bis)<commit_after>from django.core.urlresolvers import reverse

def get_url():
    return reverse('openid-provider-xrds')

def openid_meta(request):
    context = {
        'openid_server': request.build_absolute_uri(get_url())
    }
    content = '''<meta http-equiv="X-XRDS-Location" content="%(openid_server)s"/>
    <meta http-equiv="X-YADIS-Location" content="%(openid_server)s" />
''' % context
    return { 'openid_meta': content }
{'fraction_non_alphanumeric': 0.1622222222222222, 'fraction_numerical': 0.0, 'mean_word_length': 4.63125, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '7312671', 'n_tokens_mistral': 303, 'n_tokens_neox': 297, 'n_words': 52}