<commit_before>{% load i18n qhonuskan_votes thumbnail gravatar channel_tags %}
<div class="post{% ifequal highlight link.id %} highlight{% endifequal %}" id="{{link.id}}">
	<div class="side">
		{% vote_buttons_for link %}
	</div>
    <div class="content">
        <p class="info"><a class="posted_by" href="{{link.posted_by.get_absolute_url}}">{{link.posted_by}}</a> &rarr; <a class="channel" href="{{link.channel.get_absolute_url}}">{{link.channel}}</a>:</p>
        {% if link.body %}<p class="body">{{link.body}}</p>{% endif %}
        {%if link.url %}
            {% include "links/attachment.html" %}
        {% endif %}
        <ul class="flat-list actions">
            <li><a href="{{link.get_absolute_url}}">{% trans "Comments" %} ({{link.comment_score}})</a></li>
            {% if link.posted_by == user or user.is_staff %}
                <li><a href="{% url update_link link.id %}">{% trans "Update" %}</a></li>
                <li><a href="#" class="deleteLink">{% trans "Delete" %}</a></li>
            {% endif %}
            {% if user.is_authenticated %}
            <li>
                {% with link_subscription_status=user|link_subscription_status:link %}
                    {% if link_subscription_status %}
                        <a class="switchFollowLink" title="Do not send emails about that link anymore" href="#">{% trans "Unsubscribe" %}</a></li>
                    {% else %}
                        <a class="switchFollowLink" title="Email me when somebody comments on that link" href="#">{% trans "Subscribe" %}</a></li>
                    {% endif %}
                {% endwith %}
            </li>
            {% endif %}
            <li>
            <a href="http://www.addthis.com/bookmark.php" class="addthis_button" addthis:url="{{link.get_full_url}}" addthis:title="{{link.channel}}: {{link.title}}" {% if link.description %}addthis:description="{{link.description}}"{% endif %}>{% trans "Share" %}</a>
            </li>
        </ul>
    </div>
        {% if expanded_comments %}
            <div class="comments">
                {% for comment in link.comment_set.all %}
                    {% include "links/comment.html" %}
                {% endfor %}
                {% if user.is_authenticated %}
                    {% include "links/comment_form.html" %}
                {% else %}
                    <div class="comment">
                        <p class="warning">
                            {% url auth_login as login_url %}
                            {% blocktrans %} <a href="{{ login_url }}">Log in</a> to leave comment {% endblocktrans %}
                        </p>
                    </div>
               {% endif %}<commit_msg>fix #104<commit_after>{% load i18n qhonuskan_votes thumbnail gravatar channel_tags %}
<div class="post{% ifequal highlight link.id %} highlight{% endifequal %}" id="{{link.id}}">
	<div class="side">
		{% vote_buttons_for link %}
	</div>
    <div class="content">
        <p class="info"><a class="posted_by" href="{{link.posted_by.get_absolute_url}}">{{link.posted_by}}</a> &rarr; <a class="channel" href="{{link.channel.get_absolute_url}}">{{link.channel}}</a>:</p>
        {% if link.body %}<p class="body">{{link.body}}</p>{% endif %}
        {%if link.url %}
            {% include "links/attachment.html" %}
        {% endif %}
        <ul class="flat-list actions">
            <li><a href="{{link.get_absolute_url}}">{% trans "Comments" %} ({{link.comment_score}})</a></li>
            {% if link.posted_by == user or user.is_staff %}
                <li><a href="{% url update_link link.id %}">{% trans "Update" %}</a></li>
                <li><a href="#" class="deleteLink">{% trans "Delete" %}</a></li>
            {% endif %}
            {% if user.is_authenticated %}
            <li>
                {% with link_subscription_status=user|link_subscription_status:link %}
                    {% if link_subscription_status %}
                        <a class="switchFollowLink" title="Do not send emails about that link anymore" href="#">{% trans "Unsubscribe" %}</a></li>
                    {% else %}
                        <a class="switchFollowLink" title="Email me when somebody comments on that link" href="#">{% trans "Subscribe" %}</a></li>
                    {% endif %}
                {% endwith %}
            </li>
            {% endif %}
            <li>
            <a href="http://www.addthis.com/bookmark.php" class="addthis_button" addthis:url="{{link.get_full_url}}" addthis:title="{{link.channel}}: {{link.title}}" {% if link.description %}addthis:description="{{link.description}}"{% endif %}>{% trans "Share" %}</a>
            </li>
            <li>
                {{link.posted_at|timesince}} {% trans "ago" %}
            </li>
        </ul>
    </div>
        {% if expanded_comments %}
            <div class="comments">
                {% for comment in link.comment_set.all %}
                    {% include "links/comment.html" %}
                {% endfor %}
                {% if user.is_authenticated %}
                    {% include "links/comment_form.html" %}
                {% else %}
                    <div class="comment">
                        <p class="warning">
                            {% url auth_login as login_url %}
                            {% blocktrans %} <a href="{{ login_url }}">Log in</a> to leave comment {% endblocktrans %}
                        </p>
                    </div>
               {% endif %}
{'fraction_non_alphanumeric': 0.1804922515952598, 'fraction_numerical': 0.0012762078395624431, 'mean_word_length': 1.882816605359958, 'pattern_counts': {'":': 0, '<': 97, '<?xml version=': 0, '>': 97, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '526746', 'n_tokens_mistral': 1713, 'n_tokens_neox': 1498, 'n_words': 330}