<commit_before>{% load i18n %}

<ul class="pagination">
    <li class="waves-effect {% if not page_obj.has_prev_page %}disabled{% endif %}">
        {% if page_obj.has_previous %}
            <a href="{{ request.path }}?page={{ page_obj.previous_page_number }}" aria-label="{% trans "Previous" %}">
        {% endif %}
            <i aria-hidden="true" class="material-icons">chevron_left</i>
        {% if page_obj.has_previous %}
            </a>
        {% endif %}
    </li>

    {% for num in page_obj.paginator.page_range %}
        {% if num %}
            {% if page_obj.number == num %}
                <li class="active waves-effect">{{ num }}</li>
            {% else %}
                <li class="waves-effect"><a href="{{ request.path }}?page={{ num }}">{{ num }}</a></li>
            {% endif %}
        {% else %}
            <li class="waves-effect"><a href="{{ request.path }}?page={{ num|add:"5" }}">...</a></li>
        {% endif %}
    {% empty %}
        <li class="active">1</li>
    {% endfor %}

    <li class="waves-effect {% if not page_obj.has_next_page %} disabled{% endif %}">
        {% if page_obj.has_next %}
            <a href="{{ request.path }}?page={{ page_obj.next_page_number }}" aria-label="{% trans "Next" %}">
        {% endif %}
            <i aria-hidden="true" class="material-icons">chevron_right</i>
        {% if page_obj.has_next %}
            </a>
        {% endif %}
    </li>
</ul><commit_msg>Pagination, revised<commit_after>{% load i18n %}

<ul class="pagination">
    <li class="waves-effect {% if not page_obj.has_previous %}disabled{% endif %}">
        {% if page_obj.has_previous %}
            <a href="{{ request.path }}?page={{ page_obj.previous_page_number }}" aria-label="{% trans "Previous" %}">
        {% endif %}
            <i aria-hidden="true" class="material-icons">chevron_left</i>
        {% if page_obj.has_previous %}
            </a>
        {% endif %}
    </li>

    {% for num in page_obj.paginator.page_range %}
        {% if num %}
            {% if page_obj.number == num %}
                <li class="active waves-effect">{{ num }}</li>
            {% else %}
                <li class="waves-effect"><a href="{{ request.path }}?page={{ num }}">{{ num }}</a></li>
            {% endif %}
        {% else %}
            <li class="waves-effect"><a href="{{ request.path }}?page={{ num|add:"5" }}">...</a></li>
        {% endif %}
    {% empty %}
        <li class="active">1</li>
    {% endfor %}

    <li class="waves-effect {% if not page_obj.has_next %}disabled{% endif %}">
        {% if page_obj.has_next %}
            <a href="{{ request.path }}?page={{ page_obj.next_page_number }}" aria-label="{% trans "Next" %}">
        {% endif %}
            <i aria-hidden="true" class="material-icons">chevron_right</i>
        {% if page_obj.has_next %}
            </a>
        {% endif %}
    </li>
</ul>
{'fraction_non_alphanumeric': 0.20941502249913466, 'fraction_numerical': 0.0027691242644513675, 'mean_word_length': 2.131094257854821, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 0, '>': 55, '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': '3108457', 'n_tokens_mistral': 1020, 'n_tokens_neox': 897, 'n_words': 190}