<commit_before><!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head lang="en">
    <title>SBAC</title>
</head>
<body>

<nav th:fragment="pagination (page, url)" th:object="${page}" th:if="${serviceList.totalElements > 0}">
    <ul class="pagination">
        <li>
            <a th:href="@{${url}(page=0, size=*{size})}" aria-label="Previous">
                <span aria-hidden="true">&laquo;</span>
            </a>
        </li>
        <li th:if="3 lt *{number} and *{totalPages} le *{number + 1}"><a th:href="@{/services(page=*{number - 4}, size=*{size})}" th:text="*{number - 3}"></a></li>
        <li th:if="2 lt *{number} and *{totalPages} le *{number + 2}"><a th:href="@{/services(page=*{number - 3}, size=*{size})}" th:text="*{number - 2}"></a></li>
        <li th:if="1 lt *{number}"><a th:href="@{/services(page=*{number - 2}, size=*{size})}" th:text="*{number - 1}">1</a></li>
        <li th:if="0 lt *{number}"><a th:href="@{/services(page=*{number - 1}, size=*{size})}" th:text="*{number}">2</a></li>
        <li class="active"><a th:href="@{/services(page=*{number}, size=*{size})}" th:text="*{number + 1}">3</a></li>
        <li th:if="*{number + 1} lt *{totalPages}"><a th:href="@{/services(page=*{number + 1}, size=*{size})}" th:text="*{number + 2}">4</a></li>
        <li th:if="*{number + 2} lt *{totalPages}"><a th:href="@{/services(page=*{number + 2}, size=*{size})}" th:text="*{number + 3}">5</a></li>
        <li th:if="*{number} le 1 and *{number + 3} lt *{totalPages}"><a th:href="@{/services(page=*{number + 3}, size=*{size})}" th:text="*{number + 4}"></a></li>
        <li th:if="*{number} le 0 and *{number + 4} lt *{totalPages}"><a th:href="@{/services(page=*{number + 4}, size=*{size})}" th:text="*{number + 5}"></a></li>
        <li>
            <a th:href="@{/services(page=*{totalPages - 1}, size=*{size})}" aria-label="Next">
                <span aria-hidden="true">&raquo;</span>
            </a>
        </li>
    </ul>
</nav>

</body>
</html><commit_msg>Added disabled state to pagination.<commit_after><!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head lang="en">
    <title>SBAC</title>
</head>
<body>

<nav th:fragment="pagination (page, url)" th:object="${page}" th:if="${serviceList.totalElements > 0}">
    <ul class="pagination">
        <li th:class="*{first} ? 'disabled' : ''">
            <a th:href="@{${url}(page=0, size=*{size})}" aria-label="Previous">
                <span aria-hidden="true">&laquo;</span>
            </a>
        </li>
        <li th:if="3 lt *{number} and *{totalPages} le *{number + 1}"><a th:href="@{/services(page=*{number - 4}, size=*{size})}" th:text="*{number - 3}"></a></li>
        <li th:if="2 lt *{number} and *{totalPages} le *{number + 2}"><a th:href="@{/services(page=*{number - 3}, size=*{size})}" th:text="*{number - 2}"></a></li>
        <li th:if="1 lt *{number}"><a th:href="@{/services(page=*{number - 2}, size=*{size})}" th:text="*{number - 1}">1</a></li>
        <li th:if="0 lt *{number}"><a th:href="@{/services(page=*{number - 1}, size=*{size})}" th:text="*{number}">2</a></li>
        <li class="active"><a th:href="@{/services(page=*{number}, size=*{size})}" th:text="*{number + 1}">3</a></li>
        <li th:if="*{number + 1} lt *{totalPages}"><a th:href="@{/services(page=*{number + 1}, size=*{size})}" th:text="*{number + 2}">4</a></li>
        <li th:if="*{number + 2} lt *{totalPages}"><a th:href="@{/services(page=*{number + 2}, size=*{size})}" th:text="*{number + 3}">5</a></li>
        <li th:if="*{number} le 1 and *{number + 3} lt *{totalPages}"><a th:href="@{/services(page=*{number + 3}, size=*{size})}" th:text="*{number + 4}"></a></li>
        <li th:if="*{number} le 0 and *{number + 4} lt *{totalPages}"><a th:href="@{/services(page=*{number + 4}, size=*{size})}" th:text="*{number + 5}"></a></li>
        <li th:class="*{last} ? 'disabled' : ''">
            <a th:href="@{/services(page=*{totalPages - 1}, size=*{size})}" aria-label="Next">
                <span aria-hidden="true">&raquo;</span>
            </a>
        </li>
    </ul>
</nav>

</body>
</html>
{'fraction_non_alphanumeric': 0.29681894283664195, 'fraction_numerical': 0.01961253288686917, 'mean_word_length': 3.8290993071593533, 'pattern_counts': {'":': 0, '<': 125, '<?xml version=': 0, '>': 127, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 4}, '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': '7387680', 'n_tokens_mistral': 1661, 'n_tokens_neox': 1568, 'n_words': 289}