<commit_before>{% macro render_subcontribution_list(event, contrib) %}
    <div class="flashed-messages"></div>
    <div id="subcontribution-list">
        <div>
            <div class="toolbar form-group">
                <div class="group left">
                    <a class="icon-checkbox-checked i-button arrow js-dropdown" href="#" data-toggle="dropdown"></a>
                    <ul class="dropdown">
                        <li>
                            <a href="#" data-select-all="#subcontribution-list input.select-row:visible">
                                {% trans %}All{% endtrans %}
                            </a>
                        </li>
                        <li>
                            <a href="#" data-select-none="#subcontribution-list input.select-row:visible">
                                {% trans %}None{% endtrans %}
                            </a>
                        </li>
                    </ul>
                </div>
                <div class="group left">
                    <button class="i-button highlight icon-plus"
                            data-title="{% trans %}Add new subcontribution{% endtrans %}"
                            data-href="{{ url_for('.manage_create_subcontrib', contrib) }}"
                            data-update="#subcontribution-list"
                            data-ajax-dialog>
                        {% trans %}Add new subcontribution{% endtrans %}
                    </button>
                </div>
                <button class="i-button js-enable-if-checked icon-remove" disabled
                        title="{% trans %}Remove{% endtrans %}"
                        data-method="POST"
                        data-href="{{ url_for('.manage_delete_subcontribs', contrib) }}"
                        data-params-selector="#subcontribution-list input[name=subcontribution_id]:checked"
                        data-confirm="{% trans %}Do you really want to delete the selected subcontributions?{% endtrans %}"
                        data-title="{% trans %}Confirm deletion{% endtrans %}"
                        data-update="#subcontribution-list">
                    {%- trans %}Remove{% endtrans -%}
                </button>
            </div>
        </div>
        <div class="form-group">
            <form method="POST">
                <table class="i-table-widget 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">
                                {% trans %}Title{% endtrans %}
                            </th>
                            <th class="i-table">
                                {% trans %}Duration{% endtrans %}
                            </th>
                            <th data-sorter="false">
                                {# Actions #}
                            </th>
                        </tr>
                    </thead>
                    <tbody>
                        {% for subcontribution in contrib.subcontributions if not subcontribution.is_deleted -%}
                            <tr class="i-table">
                                <td class="i-table">
                                    <input type="checkbox" class="select-row" name="subcontribution_id"
                                           value="{{ subcontribution.id }}">
                                </td>
                                <td class="i-table">{{ subcontribution.friendly_id }}</td>
                                <td class="i-table">{{ subcontribution.title }}</td>
                                <td class="i-table">{{ subcontribution.duration | format_timedelta(format='medium') }}</td>
                                <td class="i-table">
                                    <div class="group right">
                                        <a href="#" class="icon-edit"
                                           data-title="{% trans %}Edit the subcontribution{% endtrans %}"
                                           data-href="{{ url_for('.manage_edit_subcontrib', subcontribution) }}"
                                           data-update="#subcontribution-list"
                                           data-ajax-dialog>
                                        </a>
                                        <a href="#" class="icon-attachment"
                                           data-title="{% trans title=subcontribution.title %}Manage materials for '{{ title }}'{% endtrans %}"
                                           data-locator="{{ subcontribution.locator|tojson|forceescape }}"
                                           data-attachment-editor>
                                        </a>
                                        <a href="#" class="icon-remove"
                                           data-href="{{ url_for('.manage_subcontrib_rest', subcontribution) }}"
                                           data-method="DELETE"
                                           data-title="{% trans title=subcontribution.title%}Delete subcontribution '{{ title }}'{% endtrans %}"
                                           data-confirm="{% trans %}Are you sure you want to delete this subcontribution?{% endtrans %}"
                                           data-update="#subcontribution-list">
                                        </a>
                                    </div>
                                </td>
                            </tr>
                        {%- else -%}
                            <tr class="i-table">
                                <td colspan="5">
                                    {%- trans %}There are no subcontributions in this contribution yet{% endtrans -%}
                                </td>
                            </tr>
                        {%- endfor %}
                    </tbody>
                </table>
            </form>
        </div>
    </div>
    <script>
        setupSubContributionList();
    </script>
{% endmacro %}<commit_msg>Use i-button-icon style in the contribution list<commit_after>{% macro render_subcontribution_list(event, contrib) %}
    <div class="flashed-messages"></div>
    <div id="subcontribution-list">
        <div>
            <div class="toolbar form-group">
                <div class="group left">
                    <a class="icon-checkbox-checked i-button arrow js-dropdown" href="#" data-toggle="dropdown"></a>
                    <ul class="dropdown">
                        <li>
                            <a href="#" data-select-all="#subcontribution-list input.select-row:visible">
                                {% trans %}All{% endtrans %}
                            </a>
                        </li>
                        <li>
                            <a href="#" data-select-none="#subcontribution-list input.select-row:visible">
                                {% trans %}None{% endtrans %}
                            </a>
                        </li>
                    </ul>
                </div>
                <div class="group left">
                    <button class="i-button highlight icon-plus"
                            data-title="{% trans %}Add new subcontribution{% endtrans %}"
                            data-href="{{ url_for('.manage_create_subcontrib', contrib) }}"
                            data-update="#subcontribution-list"
                            data-ajax-dialog>
                        {% trans %}Add new subcontribution{% endtrans %}
                    </button>
                </div>
                <button class="i-button js-enable-if-checked icon-remove" disabled
                        title="{% trans %}Remove{% endtrans %}"
                        data-method="POST"
                        data-href="{{ url_for('.manage_delete_subcontribs', contrib) }}"
                        data-params-selector="#subcontribution-list input[name=subcontribution_id]:checked"
                        data-confirm="{% trans %}Do you really want to delete the selected subcontributions?{% endtrans %}"
                        data-title="{% trans %}Confirm deletion{% endtrans %}"
                        data-update="#subcontribution-list">
                    {%- trans %}Remove{% endtrans -%}
                </button>
            </div>
        </div>
        <div class="form-group">
            <form method="POST">
                <table class="i-table-widget 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">
                                {% trans %}Title{% endtrans %}
                            </th>
                            <th class="i-table">
                                {% trans %}Duration{% endtrans %}
                            </th>
                            <th data-sorter="false">
                                {# Actions #}
                            </th>
                        </tr>
                    </thead>
                    <tbody>
                        {% for subcontribution in contrib.subcontributions if not subcontribution.is_deleted -%}
                            <tr class="i-table">
                                <td class="i-table">
                                    <input type="checkbox" class="select-row" name="subcontribution_id"
                                           value="{{ subcontribution.id }}">
                                </td>
                                <td class="i-table">{{ subcontribution.friendly_id }}</td>
                                <td class="i-table">{{ subcontribution.title }}</td>
                                <td class="i-table">{{ subcontribution.duration | format_timedelta(format='medium') }}</td>
                                <td class="i-table">
                                    <div class="group right">
                                        <a href="#" class="icon-edit i-button-icon"
                                           data-title="{% trans %}Edit the subcontribution{% endtrans %}"
                                           data-href="{{ url_for('.manage_edit_subcontrib', subcontribution) }}"
                                           data-update="#subcontribution-list"
                                           data-ajax-dialog>
                                        </a>
                                        <a href="#" class="icon-attachment i-button-icon"
                                           data-title="{% trans title=subcontribution.title %}Manage materials for '{{ title }}'{% endtrans %}"
                                           data-locator="{{ subcontribution.locator|tojson|forceescape }}"
                                           data-attachment-editor>
                                        </a>
                                        <a href="#" class="icon-remove i-button-icon"
                                           data-href="{{ url_for('.manage_subcontrib_rest', subcontribution) }}"
                                           data-method="DELETE"
                                           data-title="{% trans title=subcontribution.title%}Delete subcontribution '{{ title }}'{% endtrans %}"
                                           data-confirm="{% trans %}Are you sure you want to delete this subcontribution?{% endtrans %}"
                                           data-update="#subcontribution-list">
                                        </a>
                                    </div>
                                </td>
                            </tr>
                        {%- else -%}
                            <tr class="i-table">
                                <td colspan="5">
                                    {%- trans %}There are no subcontributions in this contribution yet{% endtrans -%}
                                </td>
                            </tr>
                        {%- endfor %}
                    </tbody>
                </table>
            </form>
        </div>
    </div>
    <script>
        setupSubContributionList();
    </script>
{% endmacro %}
{'fraction_non_alphanumeric': 0.1176377579255277, 'fraction_numerical': 0.0001581152660289351, 'mean_word_length': 0.9062688366485835, 'pattern_counts': {'":': 0, '<': 157, '<?xml version=': 0, '>': 157, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 104, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3526985', 'n_tokens_mistral': 2902, 'n_tokens_neox': 2583, 'n_words': 553}