<commit_before>{% load bazaar_list %}

{% if is_paginated %}
    <ul class="pagination">
        {% if page_obj.has_previous %}
            <li><a href="?page={{ page_obj.previous_page_number }}&{{ query_filter.urlencode }}{% if order_by %}&order_by={{ order_by }}{% endif %}">&laquo;</a></li>
        {% endif %}

        {% for i in page_obj|paginator_slice:5 %}
            <li class="
            {% if i == page_obj.number %}
                active
            {% elif i == "..." %}
                disabled
            {% endif %}
            ">
                {% ifequal i "..." %}
                    <a>{{ i }}</a>
                {% else %}
                    <a href="?page={{ i }}&{{ query_filter.urlencode }}{% if order_by %}&order_by={{ order_by }}{% endif %}">{{ i }}</a>
                {% endifequal %}
            </li>

        {% endfor %}

        {% if page_obj.has_next %}
            <li><a href="?page={{ page_obj.next_page_number }}&{{ query_filter.urlencode }}{% if order_by %}&order_by={{ order_by }}{% endif %}">&raquo;</a></li>
        {% endif %}
    </ul>
{% endif %}<commit_msg>Integrate pagination with the sort queries<commit_after>{% load bazaar_list %}

{% if is_paginated %}
    <ul class="pagination">
        {% if page_obj.has_previous %}
            <li><a href="?page={{ page_obj.previous_page_number }}&{{ query_filter.urlencode }}&{{ current_sort_query }}">&laquo;</a></li>
        {% endif %}

        {% for i in page_obj|paginator_slice:5 %}
            <li class="
            {% if i == page_obj.number %}
                active
            {% elif i == "..." %}
                disabled
            {% endif %}
            ">
                {% ifequal i "..." %}
                    <a>{{ i }}</a>
                {% else %}
                    <a href="?page={{ i }}&{{ query_filter.urlencode }}&{{ current_sort_query }}">{{ i }}</a>
                {% endifequal %}
            </li>

        {% endfor %}

        {% if page_obj.has_next %}
            <li><a href="?page={{ page_obj.next_page_number }}&{{ query_filter.urlencode }}&{{ current_sort_query }}">&raquo;</a></li>
        {% endif %}
    </ul>
{% endif %}
{'fraction_non_alphanumeric': 0.19825206991720332, 'fraction_numerical': 0.0009199632014719411, 'mean_word_length': 1.681874229346486, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 35, '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': '5201455', 'n_tokens_mistral': 752, 'n_tokens_neox': 660, 'n_words': 131}