<commit_before>{% load i18n future mezzanine_tags %}

<ul class="nav pull-right">
    <li class="divider-vertical"></li>
</ul>
<div class="pull-right">
{% if request.user.is_authenticated %}
    {% url "profile" request.user.username as profile_url %}
    {% if profile_url %}
        <a href="{{ profile_url }}">{{ request.user.username }}</a>&nbsp;
    {% else %}
        <a href="{% url "profile_update" %}">{{ request.user.username }}</a>
    {% endif %}
    <a href="{% url "logout" %}?next={{ request.path }}"
        class="btn btn-small">{% trans "Log out" %}</a>
{% else %}
    <a href="{% url "login" %}?next={{ request.path }}"
        class="btn btn-small">{% trans "Log in" %}</a>
    <a href="{% url "signup" %}?next={{ request.path }}"
        class="btn btn-small">{% trans "Sign up" %}</a>
{% endif %}
</div>

<commit_msg>Clean up nav version of user panel.<commit_after>{% load i18n future mezzanine_tags %}

<ul class="nav pull-right"><li class="divider-vertical"></li></ul>

<div class="pull-right">
    {% if request.user.is_authenticated %}
    <a href="{% url "logout" %}?next={{ request.path }}"
        class="btn btn-small">{% trans "Log out" %}</a>
    {% else %}
    <a href="{% url "login" %}?next={{ request.path }}"
        class="btn btn-small">{% trans "Log in" %}</a>
    <a href="{% url "signup" %}?next={{ request.path }}"
        class="btn btn-small">{% trans "Sign up" %}</a>
    {% endif %}
</div>

{% if request.user.is_authenticated %}
<ul class="nav pull-right">
    {% url "profile" request.user.username as profile_url %}
    {% if not profile_url %}{% url "profile_update" as profile_url %}{% endif %}
    <li><a href="{{ profile_url }}">{{ request.user.username }}</a></li>
</ul>
{% endif %}


{'fraction_non_alphanumeric': 0.23390804597701148, 'fraction_numerical': 0.0022988505747126436, 'mean_word_length': 3.4641025641025642, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 37, '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': '3522855', 'n_tokens_mistral': 654, 'n_tokens_neox': 596, 'n_words': 157}