<commit_before>{{--
    Copyright (c) ppy Pty Ltd <<EMAIL>>.

    This file is part of osu!web. osu!web is distributed with the hope of
    attracting more community contributions to the core ecosystem of osu!.

    osu!web is free software: you can redistribute it and/or modify
    it under the terms of the Affero GNU General Public License version 3
    as published by the Free Software Foundation.

    osu!web is distributed WITHOUT ANY WARRANTY; without even the implied
    warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    See the GNU Affero General Public License for more details.

    You should have received a copy of the GNU Affero General Public License
    along with osu!web.  If not, see <http://www.gnu.org/licenses/>.
--}}
@if ($object->lastPage() > 1)
    @php
        if ($object->currentPage() > $object->lastPage()) {
            $currentPage = $object->lastPage() + 1;
        } else {
            $currentPage = $object->currentPage();
        }
    @endphp

    @php
        $blockClass = 'pagination-v2';

        foreach ($modifiers ?? [] as $modifier) {
            $blockClass .= " pagination-v2--{$modifier}";
        }
    @endphp

    <nav class="{{ $blockClass }}">
        <div class="pagination-v2__quick">
            @if ($currentPage === 1)
                <span class="pagination-v2__link pagination-v2__link--quick pagination-v2__link--disabled">
                    <i class="fas fa-angle-left"></i>
                    <span class="hidden-xs">
                        {{ trans("common.pagination.previous") }}
                    </span>
                </span>
            @else
                <a class="pagination-v2__link pagination-v2__link--link pagination-v2__link--quick" href="{{ $object->url($currentPage - 1) }}">
                    <i class="fas fa-angle-left"></i>
                    <span class="hidden-xs">
                        {{ trans("common.pagination.previous") }}
                    </span>
                </a>
            @endif
        </div>

        <div class="pagination-v2__quick pagination-v2__quick--next">
            @if ($currentPage >= $object->lastPage())
                <span class="pagination-v2__link pagination-v2__link--quick pagination-v2__link--disabled">
                    <span class="hidden-xs">
                        {{ trans("common.pagination.next") }}
                    </span>
                    <i class="fas fa-angle-right"></i>
                </span>
            @else
                <a class="pagination-v2__link pagination-v2__link--link pagination-v2__link--quick" href="{{ $object->url($currentPage + 1) }}">
                    <span class="hidden-xs">
                        {{ trans("common.pagination.next") }}
                    </span>
                    <i class="fas fa-angle-right"></i>
                </a>
            @endif
        </div>

        <ul class="pagination-v2__pages">
            {{-- decide if we're showing first page link separately --}}<commit_msg>Single quote<commit_after>{{--
    Copyright (c) ppy Pty Ltd <<EMAIL>>.

    This file is part of osu!web. osu!web is distributed with the hope of
    attracting more community contributions to the core ecosystem of osu!.

    osu!web is free software: you can redistribute it and/or modify
    it under the terms of the Affero GNU General Public License version 3
    as published by the Free Software Foundation.

    osu!web is distributed WITHOUT ANY WARRANTY; without even the implied
    warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    See the GNU Affero General Public License for more details.

    You should have received a copy of the GNU Affero General Public License
    along with osu!web.  If not, see <http://www.gnu.org/licenses/>.
--}}
@if ($object->lastPage() > 1)
    @php
        if ($object->currentPage() > $object->lastPage()) {
            $currentPage = $object->lastPage() + 1;
        } else {
            $currentPage = $object->currentPage();
        }
    @endphp

    @php
        $blockClass = 'pagination-v2';

        foreach ($modifiers ?? [] as $modifier) {
            $blockClass .= " pagination-v2--{$modifier}";
        }
    @endphp

    <nav class="{{ $blockClass }}">
        <div class="pagination-v2__quick">
            @if ($currentPage === 1)
                <span class="pagination-v2__link pagination-v2__link--quick pagination-v2__link--disabled">
                    <i class="fas fa-angle-left"></i>
                    <span class="hidden-xs">
                        {{ trans('common.pagination.previous') }}
                    </span>
                </span>
            @else
                <a class="pagination-v2__link pagination-v2__link--link pagination-v2__link--quick" href="{{ $object->url($currentPage - 1) }}">
                    <i class="fas fa-angle-left"></i>
                    <span class="hidden-xs">
                        {{ trans('common.pagination.previous') }}
                    </span>
                </a>
            @endif
        </div>

        <div class="pagination-v2__quick pagination-v2__quick--next">
            @if ($currentPage >= $object->lastPage())
                <span class="pagination-v2__link pagination-v2__link--quick pagination-v2__link--disabled">
                    <span class="hidden-xs">
                        {{ trans('common.pagination.next') }}
                    </span>
                    <i class="fas fa-angle-right"></i>
                </span>
            @else
                <a class="pagination-v2__link pagination-v2__link--link pagination-v2__link--quick" href="{{ $object->url($currentPage + 1) }}">
                    <span class="hidden-xs">
                        {{ trans('common.pagination.next') }}
                    </span>
                    <i class="fas fa-angle-right"></i>
                </a>
            @endif
        </div>

        <ul class="pagination-v2__pages">
            {{-- decide if we're showing first page link separately --}}
{'fraction_non_alphanumeric': 0.129491637688359, 'fraction_numerical': 0.007948335817188276, 'mean_word_length': 1.7404718693284937, 'pattern_counts': {'":': 0, '<': 69, '<?xml version=': 0, '>': 91, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '6073998', 'n_tokens_mistral': 1682, 'n_tokens_neox': 1607, 'n_words': 435}