<commit_before>  <li class="read-list-item read-list-row hover-unmute-children row-fluid">
  {% with read.article as article %}

    <div class="span2 actions action-star hover-muted">
      {% comment %}
        {{ tenths_counter|add:forloop.counter }}
      {% endcomment %}

        {% if user.is_superuser %}
          <a href="#" onclick="javascript: $('#admin-{{read.id}}').slideToggle(); return false;" >
            <i class="icon-cog"></i></a>
        {% endif %}

        <a href="{{ article.url }}" target="_blank"
            title="{% trans "Action not yet available" %}">
          <i class="icon-star-empty"></i></a>

    </div>

    <div class="span10 article">

      <div class="pull-right actions hover-muted">

        {% if read.is_read %}
          <a href="{% url 'toggle' klass='Read' id=read.id key='is_read' %}"
              title="{% trans "mark as unread" %}" data-toggle="tooltip">
            <i class="icon-check-empty" alt="{% trans "mark as unread" %}"></i>
        {% else %}
          <a href="{% url 'toggle' klass='Read' id=read.id key='is_read' %}"
              title="{% trans "mark as read" %}" data-toggle="tooltip">
            <i class="icon-check" alt="{% trans "mark as read" %}"></i>
        {% endif %}
        </a>

        <a href="{{ article.url }}" target="_blank"
            title="{% trans "Open this article on the original website" %}">
          <i class="icon-circle-arrow-right"></i></a>

        <a href="#" target="_blank"
            title="{% trans "Action not yet available" %}">
          <i class="icon-retweet"></i></a>

      </div>

      <h2 class="heading article-title {% if not read.is_read %}is_unread{% endif %}"
          onclick="javascript: $('#content-{{read.id}}').slideToggle(); return false;">
        {{ article.title }}
      </h2>

      <p class="meta pointer"
          onclick="javascript: $('#content-{{read.id}}').slideToggle(); return false;">
        <span class="source muted">
          {{ article.get_source_unicode }}
        </span>

        <span class="meta hover-muted">

          {{ article.date_published }}{% if read.tags %},

          {% if article.authors %}
            <span class="muted">{% trans "by" %}</span>
            {% for author in article.authors %}
                {% firstof author.name author.origin_name %}{% if not forloop.last %}, {% endif %}
            {% endfor %}
          {% endif %}

          <span class="muted">{% trans "in" %}</span> {% for tag in read.tags %}{{ tag.name }}{% if not forloop.last %}, {% endif %}{% endfor %}{% endif %}
          {% if read.rating %}{% trans ", rated " %}{{ read.rating }}.{% endif %}
        </span>
      </p>

      <div class="hide article-content" id="content-{{ read.id }}">
        {% if article.content_type == 3 %}
          {% filter markdown %}{{ article.content }}{% endfilter %}

        {% elif article.content_type == 1 %}
          {# {{ article.content|safe }} #}
          —— HTML content: {{ article.content|length }} characters ——

        {% else %}
          <div class="hero-unit no-content"><h2>
          {% blocktrans %}
              <br />
              No content fetched for this article. Ask us for a refund ;-)
          {% endblocktrans %}
        </h2>
        <p><br />{% with article_url=article.url %}{% blocktrans %}
            Just kidding. The article should be automatically fetched soon.
            Alternatively, you can <a href="{{ article_url }}" target="_blank">read the article on its original website</a>. Sorry for the inconvenience.
        {% endblocktrans %}{% endwith %}</p></div>
        {% endif %}
      </div>

      {% if user.is_superuser %}
        <div class="hide admin-informations" id="admin-{{ read.id }}">
          <table class='table table-hover table-stripped table-condensed'>
            <tbody>
              <tr>
                <td>{% trans "Admin stuff" %}</td>
                <td>{% trans "Read: " %}{{ read.id }}</td>
                <td>{% trans "Article: " %}<a
                    href="/admin/models/article/{{ article.id }}/"
                    target="_blank">{{ article.id }}</a></td>
                {% if article.feeds %}
                    <td>{% trans "Feeds: " %}
                      {% for feed in article.feeds %}
                        <a href="/admin/models/feed/{{feed.id}}/"
                          target="_blank">{{feed.name}}</a>{% if not forloop.last %}, {% endif %}
                      {% endfor %}
                    </td>

                {% else %}
                  <td>{% trans "no feeds" %}</td>

                {% endif %}

              </tr>
              <!--
              <tr>
                <td></td>
                <td></td>
              </tr>
            -->
            </tbody>
          </table>
        </div>
      {% endif %}

    </div>
  {% endwith %}
  </li><commit_msg>Move the admin block at start of article.<commit_after>  <li class="read-list-item read-list-row hover-unmute-children row-fluid">
  {% with read.article as article %}

    <div class="span2 actions action-star hover-muted">
      {% comment %}
        {{ tenths_counter|add:forloop.counter }}
      {% endcomment %}

        {% if user.is_superuser %}
          <a href="#" onclick="javascript: $('#admin-{{read.id}}').slideToggle(); return false;" >
            <i class="icon-cog"></i></a>
        {% endif %}

        <a href="{{ article.url }}" target="_blank"
            title="{% trans "Action not yet available" %}">
          <i class="icon-star-empty"></i></a>

    </div>

    <div class="span10 article">

      <div class="pull-right actions hover-muted">

        {% if read.is_read %}
          <a href="{% url 'toggle' klass='Read' id=read.id key='is_read' %}"
              title="{% trans "mark as unread" %}" data-toggle="tooltip">
            <i class="icon-check-empty" alt="{% trans "mark as unread" %}"></i>
        {% else %}
          <a href="{% url 'toggle' klass='Read' id=read.id key='is_read' %}"
              title="{% trans "mark as read" %}" data-toggle="tooltip">
            <i class="icon-check" alt="{% trans "mark as read" %}"></i>
        {% endif %}
        </a>

        <a href="{{ article.url }}" target="_blank"
            title="{% trans "Open this article on the original website" %}">
          <i class="icon-circle-arrow-right"></i></a>

        <a href="#" target="_blank"
            title="{% trans "Action not yet available" %}">
          <i class="icon-retweet"></i></a>

      </div>

      <h2 class="heading article-title {% if not read.is_read %}is_unread{% endif %}"
          onclick="javascript: $('#content-{{read.id}}').slideToggle(); return false;">
        {{ article.title }}
      </h2>

      <p class="meta pointer"
          onclick="javascript: $('#content-{{read.id}}').slideToggle(); return false;">
        <span class="source muted">
          {{ article.get_source_unicode }}
        </span>

        <span class="meta hover-muted">

          {{ article.date_published }}{% if read.tags %},

          {% if article.authors %}
            <span class="muted">{% trans "by" %}</span>
            {% for author in article.authors %}
                {% firstof author.name author.origin_name %}{% if not forloop.last %}, {% endif %}
            {% endfor %}
          {% endif %}

          <span class="muted">{% trans "in" %}</span> {% for tag in read.tags %}{{ tag.name }}{% if not forloop.last %}, {% endif %}{% endfor %}{% endif %}
          {% if read.rating %}{% trans ", rated " %}{{ read.rating }}.{% endif %}
        </span>
      </p>

      {% if user.is_superuser %}
        <div class="hide admin-informations" id="admin-{{ read.id }}">
          <table class='table table-hover table-stripped table-condensed'>
            <tbody>
              <tr>
                <td>{% trans "Admin stuff" %}</td>
                <td>{% trans "Read: " %}{{ read.id }}</td>
                <td>{% trans "Article: " %}<a
                    href="/admin/models/article/{{ article.id }}/"
                    target="_blank">{{ article.id }}</a></td>
                {% if article.feeds %}
                    <td>{% trans "Feeds: " %}
                      {% for feed in article.feeds %}
                        <a href="/admin/models/feed/{{feed.id}}/"
                          target="_blank">{{feed.name}}</a>{% if not forloop.last %}, {% endif %}
                      {% endfor %}
                    </td>

                {% else %}
                  <td>{% trans "no feeds" %}</td>

                {% endif %}

              </tr>
              <!--
              <tr>
                <td></td>
                <td></td>
              </tr>
            -->
            </tbody>
          </table>
        </div>
      {% endif %}

      <div class="hide article-content" id="content-{{ read.id }}">
        {% if article.content_type == 3 %}
          {% filter markdown %}{{ article.content }}{% endfilter %}

        {% elif article.content_type == 1 %}
          {# {{ article.content|safe }} #}
          —— HTML content: {{ article.content|length }} characters ——

        {% else %}
          <div class="hero-unit no-content"><h2>
          {% blocktrans %}
              <br />
              No content fetched for this article. Ask us for a refund ;-)
          {% endblocktrans %}
        </h2>
        <p><br />{% with article_url=article.url %}{% blocktrans %}
            Just kidding. The article should be automatically fetched soon.
            Alternatively, you can <a href="{{ article_url }}" target="_blank">read the article on its original website</a>. Sorry for the inconvenience.
        {% endblocktrans %}{% endwith %}</p></div>
        {% endif %}
      </div>

    </div>
  {% endwith %}
  </li>
{'fraction_non_alphanumeric': 0.18817643455176639, 'fraction_numerical': 0.001837859914233204, 'mean_word_length': 1.7490878473196745, 'pattern_counts': {'":': 0, '<': 171, '<?xml version=': 0, '>': 171, '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': '5827747', 'n_tokens_mistral': 3077, 'n_tokens_neox': 2762, 'n_words': 696}