<commit_before>{% load i18n %}
<img src="{{ logo }}">

<ul>
    <li{% if not is_admin %} class="active"{% endif %}><a href="/">{% trans 'Visit site' %}</a></li>
    <li{% if is_admin %} class="active"{% endif %}><a href="{% url 'admin:index' %}">{% trans 'Dashboard' %}</a></li>
</ul>

<ul>
    {% for item in items %}
    <li><a href="{{ item.url }}">{{ item.name }}</a></li>
    {% endfor %}
</ul>

{% if user.is_active and user.is_staff %}
<div id="user-tools">
    {% trans 'Welcome,' %}
    <strong>{% firstof user.get_short_name user.get_username %}</strong>.
    {% block userlinks %}
        {% url 'django-admindocs-docroot' as docsroot %}
        {% if user.has_usable_password %}
        <a href="{% url 'admin:password_change' %}">{% trans 'Change password' %}</a> /
        {% endif %}
        <a href="{% url 'admin:logout' %}">{% trans 'Log out' %}</a>
    {% endblock %}
</div>
{% endif %}<commit_msg>fixing toolbar should only appear for admins<commit_after>{% load i18n %}

{% if user.is_active and user.is_staff %}
<img src="{{ logo }}">

<ul>
    <li{% if not is_admin %} class="active"{% endif %}><a href="/">{% trans 'Visit site' %}</a></li>
    <li{% if is_admin %} class="active"{% endif %}><a href="{% url 'admin:index' %}">{% trans 'Dashboard' %}</a></li>
</ul>

<ul>
    {% for item in items %}
    <li><a href="{{ item.url }}">{{ item.name }}</a></li>
    {% endfor %}
</ul>


<div id="user-tools">
    {% trans 'Welcome,' %}
    <strong>{% firstof user.get_short_name user.get_username %}</strong>.
    {% block userlinks %}
        {% url 'django-admindocs-docroot' as docsroot %}
        {% if user.has_usable_password %}
        <a href="{% url 'admin:password_change' %}">{% trans 'Change password' %}</a> /
        {% endif %}
        <a href="{% url 'admin:logout' %}">{% trans 'Log out' %}</a>
    {% endblock %}
</div>
{% endif %}
{'fraction_non_alphanumeric': 0.24745581146223888, 'fraction_numerical': 0.0021424745581146223, 'mean_word_length': 3.216704288939052, 'pattern_counts': {'":': 0, '<': 53, '<?xml version=': 0, '>': 53, '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': '7479372', 'n_tokens_mistral': 752, 'n_tokens_neox': 653, 'n_words': 176}