<commit_before>{% load wagtailcore_tags wagtailimages_tags %}

{# Individual event item in a list - used on event index and home page #}
<a href="{% pageurl event %}">
    <div class="media">
        {% if event.feed_image %}
            <div class="media-left">
                {% image event.feed_image width-200 as img %}
                <img class="media-object" src="{{ img.url }}" />
            </div>
        {% endif %}
        <div class="media-body">
            <h4 class="media-heading">{{ event.title }}</h4>
            <p><strong>{{ event.date_from }}{% if event.date_to %} to {{ event.date_to }}{% endif %}</strong></p>
            {% if event.search_description %}
                <p>{{ event.search_description }}</p>
            {% endif %}
            {% if event.body %}
                <p>{{ event.body | richtext | truncatewords:25 }}</p>
            {% endif %}
        </div>
    </div>
</a><commit_msg>temp disabled description listing. truncate isn't quite working as it should<commit_after>{% load wagtailcore_tags wagtailimages_tags %}

{# Individual event item in a list - used on event index and home page #}
<a href="{% pageurl event %}">
    <div class="media">
        {% if event.feed_image %}
            <div class="media-left">
                {% image event.feed_image width-200 as img %}
                <img class="media-object" src="{{ img.url }}" />
            </div>
        {% endif %}
        <div class="media-body">
            <h4 class="media-heading">{{ event.title }}</h4>
            <p><strong>{{ event.date_from }}{% if event.date_to %} to {{ event.date_to }}{% endif %}</strong></p>
            {% if event.search_description %}
                <p>{{ event.search_description }}</p>
            {% endif %}
{#            {% if event.body %}#}
{#                <p>{{ event.body | richtext | truncatewords:0 }}</p>#}
{#            {% endif %}#}
        </div>
    </div>
</a>
{'fraction_non_alphanumeric': 0.17701863354037267, 'fraction_numerical': 0.006728778467908903, 'mean_word_length': 1.9376899696048633, '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': '2270421', 'n_tokens_mistral': 633, 'n_tokens_neox': 568, 'n_words': 147}