<commit_before>{% load formatting %}
{% load macros %}
{% load thumbnail %}


{% macro article_list data %}
    {% for post in data %}
    <article>
        <header>
            <a href="/{{ post.category.name }}/{{ post.short_title }}">
                <img src="{{ post.image.url|thumbnail_url:'article_list' }}" width="300" height="300" alt="{{ post.image.title }}">
            </a>
        </header>
        <section>
            <h2><a href="/{{ post.category.name }}/{{ post.short_title }}">{{ post.title }}</a></h2>
            {{ post.content|markdown|safe|truncatechars_html:300}}
        </section>
        <footer>
            <em>Written by {{ post.author.username }} on {{ post.date|datetime|date }}</em>
            <a href="/{{ post.category.name }}/{{ post.short_title }}">Read more</a>
        </footer>
    </article>
    {% endfor %}
{% endmacro %}



{% if results %}
    {% usemacro article_list results %}
{% else %}
    {% usemacro article_list article_list %}
{% endif %}<commit_msg>Try to fix crashing template<commit_after>{% load formatting %}
{% load macros %}
{% load thumbnail %}


{% macro article_list data %}
    {% for post in data %}
    <article>
        <header>
            <a href="/{{ post.category.name }}/{{ post.short_title }}">
                <img src="{{ post.image.url|thumbnail_url:'article_list' }}" width="300" height="300" alt="{{ post.image.title }}">
            </a>
        </header>
        <section>
            <h2><a href="/{{ post.category.name }}/{{ post.short_title }}">{{ post.title }}</a></h2>
            {{ post.content|markdown|safe|truncatechars_html:300}}
        </section>
        <footer>
            <em>Written by {{ post.author.username }} on {{ post.date|date }}</em>
            <a href="/{{ post.category.name }}/{{ post.short_title }}">Read more</a>
        </footer>
    </article>
    {% endfor %}
{% endmacro %}



{% if results %}
    {% usemacro article_list results %}
{% else %}
    {% usemacro article_list article_list %}
{% endif %}
{'fraction_non_alphanumeric': 0.19831849653808112, 'fraction_numerical': 0.010880316518298714, 'mean_word_length': 2.388609715242881, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 41, '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': '6435446', 'n_tokens_mistral': 694, 'n_tokens_neox': 616, 'n_words': 134}