<commit_before>{% load i18n %}

{% if USER.is_authenticated %}
    <div id="userprofile">
        <img src="{% avatar user 24 %}" alt="{{ user.username }}"/>
        {{ USER.username }}
        <div id="profile_tools">
            <a href="{% url edit_profile %}">{% trans "settings" %}</a> |
            <a href="{% url logout %}">{% trans "logout" %}</a>
        </div>
    </div>
{% else %}
    <form action="{% url login %}" method="POST">
    {% csrf_token %}
        <div class="holding">
            <input id="id_username" type="text" name="username"/>
            <span class="username holder">{% trans "Username" %}</span>
        </div>
        <div class="holding">
            <input id="id_password" type="password" name="password"/>
            <span class="password holder">{% trans "Password" %}</span>
        </div>

        <input type="submit" value="{% trans "Sign in" %}"/>
    </form>
    <a class="small" href="">{% trans "Forgot it" %}</a>
{% endif %}

<script type="text/javascript" charset="utf-8">
    $(document).ready(function(){
        $("#id_username").keyup(function() {
            if ($(this).attr("value") == "")
                $(".username.holder").show();
            else
                $(".username.holder").hide();
        });<commit_msg>Adding link to user profile in user template<commit_after>{% load i18n %}

{% if USER.is_authenticated %}
    <div id="userprofile">
        <a href="{% url view_profile USER.username %}">
        <img src="{% avatar user 24 %}" alt="{{ user.username }}"/>
        {{ USER.username }}
        </a>
        <div id="profile_tools">
            <a href="{% url edit_profile %}">{% trans "settings" %}</a> |
            <a href="{% url logout %}">{% trans "logout" %}</a>
        </div>
    </div>
{% else %}
    <form action="{% url login %}" method="POST">
    {% csrf_token %}
        <div class="holding">
            <input id="id_username" type="text" name="username"/>
            <span class="username holder">{% trans "Username" %}</span>
        </div>
        <div class="holding">
            <input id="id_password" type="password" name="password"/>
            <span class="password holder">{% trans "Password" %}</span>
        </div>

        <input type="submit" value="{% trans "Sign in" %}"/>
    </form>
    <a class="small" href="">{% trans "Forgot it" %}</a>
{% endif %}

<script type="text/javascript" charset="utf-8">
    $(document).ready(function(){
        $("#id_username").keyup(function() {
            if ($(this).attr("value") == "")
                $(".username.holder").show();
            else
                $(".username.holder").hide();
        });
{'fraction_non_alphanumeric': 0.21717929482370593, 'fraction_numerical': 0.0037509377344336083, 'mean_word_length': 2.3048327137546467, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 0, '>': 55, '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': '5296844', 'n_tokens_mistral': 859, 'n_tokens_neox': 785, 'n_words': 195}