<commit_before>{% extends "base.html" %}
{% block title %}
    User Page: {{ user.name }}
{% endblock %}

{% block content %}
    <h1>
        {{ user.name }}
    </h1>
    <p> Total Time Committed: 
        {{ _import['datetime'].timedelta(minutes=ttc) }}
    </p>
    <p> Total Commits: {{ tc }} </p>
    {% if user.scripts %}
        <p> Scripts: <p/>
        <ul>
        {% for script in user.scripts %}
        <li>
        <a href="{{baseurl}}/script/{{ script.id }}">
            {{ script.name }}
        </a></li>
        {% endfor %}
        </ul>
    {% endif %}

    <a href="{{baseurl}}/user/{{user.id}}/commits"> Commits by this user </a>
{% endblock %}<commit_msg>Stats: Fix error in user page.<commit_after>{% extends "base.html" %}
{% block title %}
    User Page: {{ user.name }}
{% endblock %}

{% block content %}
    <h1>
        {{ user.name }}
    </h1>
    <p> Total Time Committed: 
        {% if ttc %}
        {{ _import['datetime'].timedelta(minutes=ttc) }}
        {% else %}
        {{ _import['datetime'].timedelta(minutes=0) }}
        {% endif %}
    </p>
    <p> Total Commits: {{ tc }} </p>
    {% if user.scripts %}
        <p> Scripts: <p/>
        <ul>
        {% for script in user.scripts %}
        <li>
        <a href="{{baseurl}}/script/{{ script.id }}">
            {{ script.name }}
        </a></li>
        {% endfor %}
        </ul>
    {% endif %}

    <a href="{{baseurl}}/user/{{user.id}}/commits"> Commits by this user </a>
{% endblock %}
{'fraction_non_alphanumeric': 0.2158176943699732, 'fraction_numerical': 0.003351206434316354, 'mean_word_length': 1.8878143133462282, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 35, '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': '1636463', 'n_tokens_mistral': 551, 'n_tokens_neox': 496, 'n_words': 114}