<commit_before>{% from 'message_box.html' import message_box %}
{% from 'attachments/_management_info_column.html' import render_attachment_info %}

{% macro render_contrib_report(event, total_entries, contribs, sessions, tracks) %}
    {% if contribs %}
        <form method="POST">
            <input type="hidden" name="csrf_token" value="{{ session.csrf_token }}">
            <table class="i-table tablesorter">
                <thead>
                    <tr class="i-table">
                        <th class="i-table checkbox-column"></th>
                        <th class="i-table id-column">
                            {% trans %}ID{% endtrans %}
                        </th>
                        <th class="i-table protection-column" data-sorter="false"></th>
                        <th class="i-table title-column">
                            {% trans %}Title{% endtrans %}
                        </th>
                        <th class="i-table">
                            {% trans %}Time{% endtrans %}
                        </th>
                        <th class="i-table duration-column">
                            {% trans %}Duration{% endtrans %}
                        </th>
                        <th class="i-table">
                            {% trans %}Presenters{% endtrans %}
                        </th>
                        <th class="i-table type-column">
                            {% trans %}Type{% endtrans %}
                        </th>
                        <th class="i-table">
                            {% trans %}Subcontributions{% endtrans %}
                        </th>
                        <th class="i-table">
                            {% trans %}Session{% endtrans %}
                        </th>
                        <th class="i-table">
                            {% trans %}Track{% endtrans %}
                        </th>
                        <th class="i-table material-column">
                            {% trans %}Material{% endtrans %}
                        </th>
                        <th class="actions-column">
                            {# Actions #}
                        </th>
                    </tr>
                </thead>
                <tbody>
                    {% for contrib in contribs %}
                        <tr id="contrib-{{ contrib.id }}" class="i-table contribution-row"
                            data-friendly-id="{{ contrib.friendly_id }}"
                            data-title="{{ contrib.title }}">
                            <td class="i-table id-column">
                                <span class="vertical-aligner">
                                    <input type="checkbox" class="select-row" name="contribution_id"
                                           value="{{ contrib.id }}">
                                </span>
                            </td>
                            <td class="i-table id-column">
                                <span class="vertical-aligner">{{ contrib.friendly_id }}</span>
                            </td>
                            <td class="i-table">
                                <span class="vertical-aligner">
                                    <i class="{% if contrib.is_self_protected %}self-protection-icon
                                              {% elif contrib.is_public %}public-protection-icon{% endif %}"></i>
                                </span>
                            </td>
                            <td class="i-table title-column" data-searchable="{{ contrib.title | lower }}">
                                <span class="vertical-aligner">
                                    {{ contrib.title }}
                                </span>
                            </td>
                            <td class="i-table start-date">
                                <span class="vertical-aligner"><commit_msg>Sort contributions by start date<commit_after>{% from 'message_box.html' import message_box %}
{% from 'attachments/_management_info_column.html' import render_attachment_info %}

{% macro render_contrib_report(event, total_entries, contribs, sessions, tracks) %}
    {% if contribs %}
        <form method="POST">
            <input type="hidden" name="csrf_token" value="{{ session.csrf_token }}">
            <table class="i-table tablesorter">
                <thead>
                    <tr class="i-table">
                        <th class="i-table checkbox-column"></th>
                        <th class="i-table id-column">
                            {% trans %}ID{% endtrans %}
                        </th>
                        <th class="i-table protection-column" data-sorter="false"></th>
                        <th class="i-table title-column">
                            {% trans %}Title{% endtrans %}
                        </th>
                        <th class="i-table" data-sorter="text">
                            {% trans %}Time{% endtrans %}
                        </th>
                        <th class="i-table duration-column">
                            {% trans %}Duration{% endtrans %}
                        </th>
                        <th class="i-table">
                            {% trans %}Presenters{% endtrans %}
                        </th>
                        <th class="i-table type-column">
                            {% trans %}Type{% endtrans %}
                        </th>
                        <th class="i-table">
                            {% trans %}Subcontributions{% endtrans %}
                        </th>
                        <th class="i-table">
                            {% trans %}Session{% endtrans %}
                        </th>
                        <th class="i-table">
                            {% trans %}Track{% endtrans %}
                        </th>
                        <th class="i-table material-column">
                            {% trans %}Material{% endtrans %}
                        </th>
                        <th class="actions-column">
                            {# Actions #}
                        </th>
                    </tr>
                </thead>
                <tbody>
                    {% for contrib in contribs %}
                        <tr id="contrib-{{ contrib.id }}" class="i-table contribution-row"
                            data-friendly-id="{{ contrib.friendly_id }}"
                            data-title="{{ contrib.title }}">
                            <td class="i-table id-column">
                                <span class="vertical-aligner">
                                    <input type="checkbox" class="select-row" name="contribution_id"
                                           value="{{ contrib.id }}">
                                </span>
                            </td>
                            <td class="i-table id-column">
                                <span class="vertical-aligner">{{ contrib.friendly_id }}</span>
                            </td>
                            <td class="i-table">
                                <span class="vertical-aligner">
                                    <i class="{% if contrib.is_self_protected %}self-protection-icon
                                              {% elif contrib.is_public %}public-protection-icon{% endif %}"></i>
                                </span>
                            </td>
                            <td class="i-table title-column" data-searchable="{{ contrib.title | lower }}">
                                <span class="vertical-aligner">
                                    {{ contrib.title }}
                                </span>
                            </td>
                            <td class="i-table start-date" data-text="{{ contrib.start_dt.isoformat()
                                                                         if contrib.is_scheduled else ''}}">
                                <span class="vertical-aligner">
{'fraction_non_alphanumeric': 0.12156960139078604, 'fraction_numerical': 0.0, 'mean_word_length': 0.8643518518518518, 'pattern_counts': {'":': 0, '<': 115, '<?xml version=': 0, '>': 115, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 17, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5835229', 'n_tokens_mistral': 1914, 'n_tokens_neox': 1673, 'n_words': 359}