<commit_before>{% extends "base.html" %}

{% block content %}

<h1>{% trans "MEPs by deleguation" %}</h1>
<ul class="deleguations">
{% for deleguation in object_list %}
    <li>
        <a href="{% url meps:index_by_deleguation deleguation.id %}">{{ deleguation.name }}</a>
        {% blocktrans with deleguation.count as count %} - {{ count }} MEPs {% endblocktrans %}
    </li>
{% endfor %}
</ul>

{% endblock %}<commit_msg>[enh] don't display empty deleguations<commit_after>{% extends "base.html" %}

{% block content %}

<h1>{% trans "MEPs by deleguation" %}</h1>
<ul class="deleguations">
{% for deleguation in object_list %}
    {% if deleguation.count %}
    <li>
        <a href="{% url meps:index_by_deleguation deleguation.id %}">{{ deleguation.name }}</a>
        {% blocktrans with deleguation.count as count %} - {{ count }} MEPs {% endblocktrans %}
    </li>
    {% endif %}
{% endfor %}
</ul>

{% endblock %}
{'fraction_non_alphanumeric': 0.19264069264069264, 'fraction_numerical': 0.004329004329004329, 'mean_word_length': 3.648241206030151, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '4617632', 'n_tokens_mistral': 343, 'n_tokens_neox': 307, 'n_words': 81}