<commit_before>{% extends "base.html" %}
{% block content %}
<div class="category-page-container">
    <div class="category-logo">
        {% if category|string in MEDIUS_CATEGORIES and MEDIUS_CATEGORIES.get(category|string).logo %}
        <img src="{{ MEDIUS_CATEGORIES.get(category|string).logo }}" alt="{{ category|striptags }}"/>
        {% endif %}
        <h1>{{ category }}</h1>
    </div>

    <div class="section-header">
        Latest
    </div>


    
    {% set i = 0 %}
    {% for article in articles %}
    {% if i == 0 %}
    <div class="pure-g article-row">
        <div class="pure-u-2-3">
           <div class="col">
               {% if article.image %}
               <a href="{{ SITEURL }}/{{ article.url }}" class="article-thumbnail article-thumbnail-1" style="background-image:url({{ article.image }})"><span class="header">{{ article.title }}</span></a>
               {% elif article.smallimage %}
               <a href="{{ SITEURL }}/{{ article.url }}" class="article-thumbnail article-thumbnail-1" style="background-image:url({{ article.smallimage }})"><span class="header">{{ article.title }}</span></a>
               {% endif %}
           </div>
        </div>
        <div class="pure-u-1-3 article-info">
           <div class="col">

               <h1><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></h1>

               {{ article.summary }}

               {% for author in article.authors %}
               <div class="post-meta pure-g">
                   {% if author|string in MEDIUS_AUTHORS %}
                   <div class="pure-u">
                       <img src="{{ MEDIUS_AUTHORS.get(author|string).image }}" class="post-avatar" alt="Go to the profile of {{ author|striptags }}">
                   </div>
                   {% endif %}
                   <div class="pure-u-3-4 meta-data">
                       <a href="{{ SITEURL }}/{{ author.url }}" class="category">{{ author }}</a><br />
                       &mdash; <abbr title="{{ article.date.isoformat() }}">{{ article.locale_date }}</abbr>
                   </div>
               </div>
               {% endfor %}

           </div>

        </div>

    </div>
    {% elif i < 3 %}
    {% if i == 1 %}
    <div class="pure-g article-row">
    {% endif %}

    <div class="pure-u-1-2 article-info">
        <div class="col">
            {% if article.image %}
            <a href="{{ SITEURL }}/{{ article.url }}" class="article-thumbnail article-thumbnail-2" style="background-image:url({{ article.image }})"><span class="header">{{ article.title }}</span></a>
            {% elif article.smallimage %}
            <a href="{{ SITEURL }}/{{ article.url }}" class="article-thumbnail article-thumbnail-2" style="background-image:url({{ article.smallimage }})"><span class="header">{{ article.title }}</span></a>
            {% endif %}

            <h2><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></h2>
            {{ article.summary }}

            {% for author in article.authors %}
            <div class="post-meta pure-g">
                {% if author|string in MEDIUS_AUTHORS %}
                <div class="pure-u">
                    <img src="{{ MEDIUS_AUTHORS.get(author|string).image }}" class="post-avatar" alt="Go to the profile of {{ author|striptags }}">
                </div>
                {% endif %}
                <div class="pure-u-3-4 meta-data">
                    <a href="{{ SITEURL }}/{{ author.url }}" class="category">{{ author }}</a><br />
                    &mdash; <abbr title="{{ article.date.isoformat() }}">{{ article.locale_date }}</abbr>
                </div>
            </div>
            {% endfor %}

        </div>
    </div>

    {% if i == 2 %}
    </div>
    {% endif %}
    {% else %}
    {% if i % 3 == 0 %}
    <div class="pure-g article-row">
    {% endif %}


    <div class="pure-u-1-3 article-info">
        <div class="col">
            {% if article.image %}
            <a href="{{ SITEURL }}/{{ article.url }}" class="article-thumbnail article-thumbnail-3" style="background-image:url({{ article.image }})"><span class="header">{{ article.title }}</span></a>
            {% elif article.smallimage %}
            <a href="{{ SITEURL }}/{{ article.url }}" class="article-thumbnail article-thumbnail-3" style="background-image:url({{ article.smallimage }})"><span class="header">{{ article.title }}</span></a>
            {% endif %}

            <h2><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></h2>
            {{ article.summary }}

            {% for author in article.authors %}
            <div class="post-meta pure-g">
                {% if author|string in MEDIUS_AUTHORS %}
                <div class="pure-u">
                    <img src="{{ MEDIUS_AUTHORS.get(author|string).image }}" class="post-avatar" alt="Go to the profile of {{ author|striptags }}">
                </div>
                {% endif %}
                <div class="pure-u-3-4 meta-data">
                    <a href="{{ SITEURL }}/{{ author.url }}" class="category">{{ author }}</a><br />
                    &mdash; <abbr title="{{ article.date.isoformat() }}">{{ article.locale_date }}</abbr>
                </div>
            </div>
            {% endfor %}

        </div>
    </div>


    {% if i + 2 % 3 == 0 %}
    </div>
    {% endif %}
    {% endif %}
    {% set i = i + 1 %}
    {% endfor %}

    {% if i + 2 % 3 != 0 %}
    </div>
    {% endif %}
</div>
{% endblock %}<commit_msg>Fix closing div tag logic<commit_after>{% extends "base.html" %}
{% block content %}
<div class="category-page-container">
    <div class="category-logo">
        {% if category|string in MEDIUS_CATEGORIES and MEDIUS_CATEGORIES.get(category|string).logo %}
        <img src="{{ MEDIUS_CATEGORIES.get(category|string).logo }}" alt="{{ category|striptags }}"/>
        {% endif %}
        <h1>{{ category }}</h1>
    </div>

    <div class="section-header">
        Latest
    </div>


    
    {% set i = 0 %}
    {% for article in articles %}
    {% if i == 0 %}
    <div class="pure-g article-row">
        <div class="pure-u-2-3">
           <div class="col">
               {% if article.image %}
               <a href="{{ SITEURL }}/{{ article.url }}" class="article-thumbnail article-thumbnail-1" style="background-image:url({{ article.image }})"><span class="header">{{ article.title }}</span></a>
               {% elif article.smallimage %}
               <a href="{{ SITEURL }}/{{ article.url }}" class="article-thumbnail article-thumbnail-1" style="background-image:url({{ article.smallimage }})"><span class="header">{{ article.title }}</span></a>
               {% endif %}
           </div>
        </div>
        <div class="pure-u-1-3 article-info">
           <div class="col">

               <h1><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></h1>

               {{ article.summary }}

               {% for author in article.authors %}
               <div class="post-meta pure-g">
                   {% if author|string in MEDIUS_AUTHORS %}
                   <div class="pure-u">
                       <img src="{{ MEDIUS_AUTHORS.get(author|string).image }}" class="post-avatar" alt="Go to the profile of {{ author|striptags }}">
                   </div>
                   {% endif %}
                   <div class="pure-u-3-4 meta-data">
                       <a href="{{ SITEURL }}/{{ author.url }}" class="category">{{ author }}</a><br />
                       &mdash; <abbr title="{{ article.date.isoformat() }}">{{ article.locale_date }}</abbr>
                   </div>
               </div>
               {% endfor %}

           </div>

        </div>

    </div>
    {% elif i < 3 %}
    {% if i == 1 %}
    <div class="pure-g article-row">
    {% endif %}

    <div class="pure-u-1-2 article-info">
        <div class="col">
            {% if article.image %}
            <a href="{{ SITEURL }}/{{ article.url }}" class="article-thumbnail article-thumbnail-2" style="background-image:url({{ article.image }})"><span class="header">{{ article.title }}</span></a>
            {% elif article.smallimage %}
            <a href="{{ SITEURL }}/{{ article.url }}" class="article-thumbnail article-thumbnail-2" style="background-image:url({{ article.smallimage }})"><span class="header">{{ article.title }}</span></a>
            {% endif %}

            <h2><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></h2>
            {{ article.summary }}

            {% for author in article.authors %}
            <div class="post-meta pure-g">
                {% if author|string in MEDIUS_AUTHORS %}
                <div class="pure-u">
                    <img src="{{ MEDIUS_AUTHORS.get(author|string).image }}" class="post-avatar" alt="Go to the profile of {{ author|striptags }}">
                </div>
                {% endif %}
                <div class="pure-u-3-4 meta-data">
                    <a href="{{ SITEURL }}/{{ author.url }}" class="category">{{ author }}</a><br />
                    &mdash; <abbr title="{{ article.date.isoformat() }}">{{ article.locale_date }}</abbr>
                </div>
            </div>
            {% endfor %}

        </div>
    </div>

    {% if i == 2 %}
    </div>
    {% endif %}
    {% else %}
    {% if i % 3 == 0 %}
    <div class="pure-g article-row">
    {% endif %}


    <div class="pure-u-1-3 article-info">
        <div class="col">
            {% if article.image %}
            <a href="{{ SITEURL }}/{{ article.url }}" class="article-thumbnail article-thumbnail-3" style="background-image:url({{ article.image }})"><span class="header">{{ article.title }}</span></a>
            {% elif article.smallimage %}
            <a href="{{ SITEURL }}/{{ article.url }}" class="article-thumbnail article-thumbnail-3" style="background-image:url({{ article.smallimage }})"><span class="header">{{ article.title }}</span></a>
            {% endif %}

            <h2><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></h2>
            {{ article.summary }}

            {% for author in article.authors %}
            <div class="post-meta pure-g">
                {% if author|string in MEDIUS_AUTHORS %}
                <div class="pure-u">
                    <img src="{{ MEDIUS_AUTHORS.get(author|string).image }}" class="post-avatar" alt="Go to the profile of {{ author|striptags }}">
                </div>
                {% endif %}
                <div class="pure-u-3-4 meta-data">
                    <a href="{{ SITEURL }}/{{ author.url }}" class="category">{{ author }}</a><br />
                    &mdash; <abbr title="{{ article.date.isoformat() }}">{{ article.locale_date }}</abbr>
                </div>
            </div>
            {% endfor %}

        </div>
    </div>


    {% if i % 3 == 2 %}
    </div>
    {% endif %}
    {% endif %}
    {% set i = i + 1 %}
    {% endfor %}

    {% if i + 2 % 3 != 0 %}
    </div>
    {% endif %}
</div>
{% endblock %}
{'fraction_non_alphanumeric': 0.201215088864708, 'fraction_numerical': 0.007526296699310845, 'mean_word_length': 1.8520817170933541, 'pattern_counts': {'":': 0, '<': 213, '<?xml version=': 0, '>': 211, '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': '203571', 'n_tokens_mistral': 3622, 'n_tokens_neox': 3244, 'n_words': 715}