<commit_before>{{ form(formulario_fechas) }}
<table class="table table-bordered table-hover table-striped table-responsive listado">
    <thead>
    <tr>
       <th class="col-md-3">{% block lista_item %}Elemento{% endblock %}</th>
        <th class="col-md-2">Partes (total, sin notificar)<span class="text-muted small"> - Prescritos</span></th>
        <th class="col-md-2">Sanciones (total, sin notificar)</th>
        <th class="col-md-2">Expulsiones</th>
        <th class="col-md-3">Estado</th>
        {% block lista_extra_cabecera %}{% endblock %}
    </tr>
    </thead>
    <tbody>
    {% set suma1, suma2, suma3, suma4, suma5, suma6, suma7 = 0, 0, 0, 0, 0, 0, 0 %}
    {% for item in items %}
        <tr>
            <td>{{ item[0] }}</td>
            <td>{{ item[1] }}{% if item[1] - item[2] %} <strong>({{ item[1] - item[2] }})</strong>{% endif %}
                {% if item[7] %}<span class="text-muted"> - {{ item[7] }}</span>{% endif %}
            </td>
            <td>{{ item[3] - item[5] }}{% if item[3] - item[4] - item[5] %} <strong>({{ item[3] - item[4] - item[5] }})</strong>{% endif %}
            </td>
            <td>{% if item[6] %}<strong>{% endif %}{{ item[6] }}{% if item[6] %}</strong>{% endif %}</td>
            <td>{% if item[8] %}Último parte el {{ item[8] | date('d/m/Y') }}{% endif %}{% if item[9] %}. Última sanción el {{ item[9] | date('d/m/Y') }}{% endif %}</td>
            {% block lista_extra_fila %}{% endblock %}
        </tr>
        {% set suma1 = suma1 + item[1] %}
        {% set suma2 = suma2 + item[2] %}
        {% set suma3 = suma3 + item[3] %}
        {% set suma4 = suma4 + item[4] %}
        {% set suma5 = suma5 + item[5] %}
        {% set suma6 = suma6 + item[6] %}
        {% set suma7 = suma7 + item[7] %}
    {% else %}
        <tr>
            <td colspan="100">No hay elementos que mostrar</td>
        </tr>
    {% endfor %}
    </tbody>
    {% if items %}
        <tfoot>
            <tr>
                <th>Total</th>
                <th>{{ suma1 }}{% if suma1 - suma2 %} <strong>({{ suma1 - suma2 }})</strong>{% endif %}
                    {% if suma7 %}<span class="text-muted"> - {{ suma7 }}</span>{% endif %}
                </th>
                <th>
                    {{ suma3 - suma5 }}{% if suma3 - suma4 - suma5 %} <strong>({{ suma3 - suma4 - suma5 }})</strong>{% endif %}
                </th>
                <th>{% if suma6 %}<strong>{% endif %}{{ suma6 }}{% if suma6 %}</strong>{% endif %}</td>
                <th colspan="100"></td>
            </tr>
        </tfoot>
    {% endif %}
</table><commit_msg>Los listados resumen no calculaban bien las sanciones no notificadas. Ahora no se muestran<commit_after>{{ form(formulario_fechas) }}
<table class="table table-bordered table-hover table-striped table-responsive listado">
    <thead>
    <tr>
        <th class="col-md-3">{% block lista_item %}Elemento{% endblock %}</th>
        <th class="col-md-2">Partes (total, sin notificar)<span class="text-muted small"> - Prescritos</span></th>
        <th class="col-md-2">Sanciones (total)</th>
        <th class="col-md-2">Expulsiones</th>
        <th class="col-md-3">Estado</th>
        {% block lista_extra_cabecera %}{% endblock %}
    </tr>
    </thead>
    <tbody>
    {% set suma1, suma2, suma3, suma4, suma5, suma6, suma7 = 0, 0, 0, 0, 0, 0, 0 %}
    {% for item in items %}
        <tr>
            <td>{{ item[0] }}</td>
            <td>{{ item[1] }}{% if item[1] - item[2] %} <strong>({{ item[1] - item[2] }})</strong>{% endif %}
                {% if item[7] %}<span class="text-muted"> - {{ item[7] }}</span>{% endif %}
            </td>
            <td>{{ item[3] - item[5] }}
            </td>
            <td>{% if item[6] %}<strong>{% endif %}{{ item[6] }}{% if item[6] %}</strong>{% endif %}</td>
            <td>{% if item[8] %}Último parte el {{ item[8] | date('d/m/Y') }}{% endif %}{% if item[9] %}. Última sanción el {{ item[9] | date('d/m/Y') }}{% endif %}</td>
            {% block lista_extra_fila %}{% endblock %}
        </tr>
        {% set suma1 = suma1 + item[1] %}
        {% set suma2 = suma2 + item[2] %}
        {% set suma3 = suma3 + item[3] %}
        {% set suma4 = suma4 + item[4] %}
        {% set suma5 = suma5 + item[5] %}
        {% set suma6 = suma6 + item[6] %}
        {% set suma7 = suma7 + item[7] %}
    {% else %}
        <tr>
            <td colspan="100">No hay elementos que mostrar</td>
        </tr>
    {% endfor %}
    </tbody>
    {% if items %}
        <tfoot>
            <tr>
                <th>Total</th>
                <th>{{ suma1 }}{% if suma1 - suma2 %} <strong>({{ suma1 - suma2 }})</strong>{% endif %}
                    {% if suma7 %}<span class="text-muted"> - {{ suma7 }}</span>{% endif %}
                </th>
                <th>
                    {{ suma3 - suma5 }}
                </th>
                <th>{% if suma6 %}<strong>{% endif %}{{ suma6 }}{% if suma6 %}</strong>{% endif %}</td>
                <th colspan="100"></td>
            </tr>
        </tfoot>
    {% endif %}
</table>
{'fraction_non_alphanumeric': 0.2214751829147716, 'fraction_numerical': 0.032034803243029465, 'mean_word_length': 1.8935926773455378, 'pattern_counts': {'":': 0, '<': 131, '<?xml version=': 0, '>': 131, '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': '5012334', 'n_tokens_mistral': 2037, 'n_tokens_neox': 1852, 'n_words': 434}