<commit_before>{% extends "base.html" %}
{% load i18n %}

{% block content %}
<div class="content member-detail">

    <img src="{{ object.get_thumbnail_LAYER_url }}" />
    <div class="title">{{ object.username }}</div>

    <div class="meta">
        {% if can_friend %}
            <div class="friend">
                <a href="{% url friend-request object.id %}">{% trans "Send friend request" %}</a>
            </div>
        {% endif %}
        {% if notifications %}
            <div class="friend">
                <a href="{% url member-notifications %}">{% trans "Notifications" %} ({{ notifications }})</a>
            </div>
        {% endif %}
        {% if is_self %}
            <div class="friend">
                <a href="{% url my-friends %}">{% trans "My Friends" %}</a>
            </div>
        {% endif %}
    </div>


    <table>
        <tr class="total-comments">
            <th>{% trans "Total comments" %}</th>            
            <td>{{ object.number_of_comments }}</td>
        </tr>
        <tr class="recent-comments">
            <th>{% trans "Recent comments" %}</th>            
            <td>
                {% for comment in object.last_5_comments %}
                    <div>
                        <a href="{{ comment.content_object.get_absolute_url }}">{{ comment.comment|truncatewords:20 }}</a>
                    </div>
                {% endfor %}
            </td>
        </tr>
<commit_msg>Use distinct CSS class names<commit_after>{% extends "base.html" %}
{% load i18n %}

{% block content %}
<div class="content member-detail">

    <img src="{{ object.get_thumbnail_LAYER_url }}" />
    <div class="title">{{ object.username }}</div>

    <div class="meta">
        {% if can_friend %}
            <div class="friend">
                <a href="{% url friend-request object.id %}">{% trans "Send friend request" %}</a>
            </div>
        {% endif %}
        {% if notifications %}
            <div class="notifications">
                <a href="{% url member-notifications %}">{% trans "Notifications" %} ({{ notifications }})</a>
            </div>
        {% endif %}
        {% if is_self %}
            <div class="my-friends">
                <a href="{% url my-friends %}">{% trans "My Friends" %}</a>
            </div>
        {% endif %}
    </div>


    <table>
        <tr class="total-comments">
            <th>{% trans "Total comments" %}</th>            
            <td>{{ object.number_of_comments }}</td>
        </tr>
        <tr class="recent-comments">
            <th>{% trans "Recent comments" %}</th>            
            <td>
                {% for comment in object.last_5_comments %}
                    <div>
                        <a href="{{ comment.content_object.get_absolute_url }}">{{ comment.comment|truncatewords:20 }}</a>
                    </div>
                {% endfor %}
            </td>
        </tr>

{'fraction_non_alphanumeric': 0.17842465753424658, 'fraction_numerical': 0.003424657534246575, 'mean_word_length': 1.5758377425044092, 'pattern_counts': {'":': 0, '<': 73, '<?xml version=': 0, '>': 73, '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': '3515208', 'n_tokens_mistral': 919, 'n_tokens_neox': 807, 'n_words': 200}