<commit_before>{% with
    (remarks|length / page_length)|ceiling
as
    total_pages
%}

{% if total_pages > 1 %}
    <div class="remark__pager">
        <div class="remark__pager__result-counter">{{ remarks|length }} {_ results _}</div>
        <div class="remark__pager__pagination">
            <ul class="pagination pagination-centered">
                {% if page - 1 > 0 %}
                    <li><a href="?remark_page={{ page - 1}}&remark_page_length={{ page_length }}#remarks" title="{_ Previous page _}">←</a></li>
                    {% if page - 1 > 2 %}
                        <li><a href="?remark_page=1&remark_page_length={{ page_length }}#remarks">1</a></li>
                        <li class="disabled"><a href="#content-pager">…</a></li>
                    {% endif %}
                {% else %}
                    <li class="disabled"><a href="#content-pager">←</a></li>
                {% endif %}
                        {% if (page - 2) > 0 %}
                        <li><a href="?remark_page={{ page - 2 }}&remark_page_length={{ page_length }}#remarks">{{ page - 2 }}</a></li>
                        {% endif %}
                        {% if (page - 1) > 0 %}
                        <li><a href="?remark_page={{ page - 1 }}&remark_page_length={{ page_length }}#remarks">{{ page - 1 }}</a></li>
                        {% endif %}
                        <li class="active"><span>{{ page }}</span></li>
                        {% if (page + 1) <= total_pages %}
                        <li><a href="?remark_page={{ page + 1 }}&remark_page_length={{ page_length }}#remarks">{{ page + 1 }}</a></li>
                        {% endif %}
                        {% if (page + 2) <= total_pages %}
                        <li><a href="?remark_page={{ page + 2 }}&remark_page_length={{ page_length }}#remarks">{{ page + 2 }}</a></li>
                        {% endif %}
                        {% if page != total_pages %}
                            <li class="disabled"><a href="#content-pager">…</a></li>

                            <li><a href="?remark_page={{ total_pages }}&remark_page_length={{ page_length }}#remarks">{{ total_pages }}</a></li>
                        {% endif %}
                {% if total_pages > page %}
                    <li><a href="?remark_page={{ page + 1}}&remark_page_length={{ page_length }}#remarks" title="{_ Next page _}">→</a></li>
                {% else %}
                    <li class="disabled"><a href="#content-pager">→</a></li>
                {% endif %}
            </ul>
        </div>
    </div>
{% endif %}
{% endwith %}<commit_msg>[remark] pager wip<commit_after>{% with
    (remarks|length / page_length)|ceiling
as
    total_pages
%}

{% if total_pages > 1 %}
    <div class="remark__pager">
        <div class="remark__pager__result-counter">{{ remarks|length }} {_ results _}</div>
        <div class="remark__pager__pagination">
            <ul class="pagination pagination-centered">
                {% if page - 1 > 0 %}
                    <li><a href="?remark_page={{ page - 1}}&remark_page_length={{ page_length }}#remarks" title="{_ Previous page _}">←</a></li>
                    {% if page - 1 > 2 %}
                        <li><a href="?remark_page=1&remark_page_length={{ page_length }}#remarks">1</a></li>
                        <li class="disabled"><a href="#content-pager">…</a></li>
                    {% endif %}
                {% else %}
                    <li class="disabled"><a href="#content-pager">←</a></li>
                {% endif %}
                        {% if (page - 2) > 0 %}
                        <li><a href="?remark_page={{ page - 2 }}&remark_page_length={{ page_length }}#remarks">{{ page - 2 }}</a></li>
                        {% endif %}
                        {% if (page - 1) > 0 %}
                        <li><a href="?remark_page={{ page - 1 }}&remark_page_length={{ page_length }}#remarks">{{ page - 1 }}</a></li>
                        {% endif %}
                        <li class="active"><span>{{ page }}</span></li>
                        {% if (page + 1) <= total_pages %}
                        <li><a href="?remark_page={{ page + 1 }}&remark_page_length={{ page_length }}#remarks">{{ page + 1 }}</a></li>
                        {% endif %}
                        {% if (page + 2) <= total_pages %}
                        <li><a href="?remark_page={{ page + 2 }}&remark_page_length={{ page_length }}#remarks">{{ page + 2 }}</a></li>
                        {% endif %}
                    {% if page != total_pages %}
                        <li class="disabled"><a href="#content-pager">…</a></li>

                        <li><a href="?remark_page={{ total_pages }}&remark_page_length={{ page_length }}#remarks">{{ total_pages }}</a></li>
                    {% endif %}
                {% if total_pages > page %}
                    <li><a href="?remark_page={{ page + 1}}&remark_page_length={{ page_length }}#remarks" title="{_ Next page _}">→</a></li>
                {% else %}
                    <li class="disabled"><a href="#content-pager">→</a></li>
                {% endif %}
            </ul>
        </div>
    </div>
{% endif %}
{% endwith %}
{'fraction_non_alphanumeric': 0.19320145957365084, 'fraction_numerical': 0.008834261570962166, 'mean_word_length': 1.5794947994056463, 'pattern_counts': {'":': 0, '<': 127, '<?xml version=': 0, '>': 135, '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': '15671', 'n_tokens_mistral': 1640, 'n_tokens_neox': 1474, 'n_words': 310}