<commit_before>{% extends "wafer/base.html" %}
{% block content %}
{% with profile=object.get_profile %}
<div class="row">
    <div class="col-md-2" id="profile-avatar">
        {% with profile.avatar_url as avatar_url %}
            {% if avatar_url != None %}
            <img src="{{ profile.avatar_url }}">
            {% endif %}
        {% endwith %}
        {% if user == object or user.is_staff %}
            <a class="btn btn-default btn-sm" href="#" rel="popover" data-toggle="popover"
                data-title="{% trans 'Changing your mugshot' %}" data-html="true"
                data-placement="bottom">{% trans 'Edit Mugshot' %}</a>
            <div class="popover-contents">
                {% blocktrans %}
                    Pictures provided by <a href="https://www.libravatar.org/">libravatar</a>
                    (which falls back to <a href="https://secure.gravatar.com/">Gravatar</a>).<br>
                    Change your picture there.
                {% endblocktrans %}
            </div><commit_msg>Fix use of get_profile in user template<commit_after>{% extends "wafer/base.html" %}
{% block content %}
{% with profile=object.userprofile %}
<div class="row">
    <div class="col-md-2" id="profile-avatar">
        {% with profile.avatar_url as avatar_url %}
            {% if avatar_url != None %}
            <img src="{{ profile.avatar_url }}">
            {% endif %}
        {% endwith %}
        {% if user == object or user.is_staff %}
            <a class="btn btn-default btn-sm" href="#" rel="popover" data-toggle="popover"
                data-title="{% trans 'Changing your mugshot' %}" data-html="true"
                data-placement="bottom">{% trans 'Edit Mugshot' %}</a>
            <div class="popover-contents">
                {% blocktrans %}
                    Pictures provided by <a href="https://www.libravatar.org/">libravatar</a>
                    (which falls back to <a href="https://secure.gravatar.com/">Gravatar</a>).<br>
                    Change your picture there.
                {% endblocktrans %}
            </div>
{'fraction_non_alphanumeric': 0.16172248803827752, 'fraction_numerical': 0.0009569377990430622, 'mean_word_length': 2.0, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, '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': '5757866', 'n_tokens_mistral': 655, 'n_tokens_neox': 578, 'n_words': 139}