<commit_before><?php

/**
 * Aperdia.
 *
 * @copyright Aperdia
 */

namespace Aperdia\AperdiaUI;

use Kilte\Pagination\Pagination;

/**
 * Pagination.
 */
class Pagination
{
    /**
     * Pagination.
     *
     * @param string $url         URL of link
     * @param int    $total       Total
     * @param int    $currentPage Current page
     * @param int    $nbrByPage   Number by page
     * @param int    $neighbord   Neighbord
     *
     * @return string
     */
    public static function get(string $url, int $total, int $currentPage, int $nbrByPage = 10, int $neighbord = 4)
    {
        $pagination = new Pagination($total, $currentPage, $nbrByPage, $neighbord);
        $pagination = $pagination->build();
        
        return $this->view('pagination', compact('pagination'));
    }
}<commit_msg>fix: pagination<commit_after><?php

/**
 * Aperdia.
 *
 * @copyright Aperdia
 */

namespace Aperdia\AperdiaUI;

use Kilte\Pagination\Pagination use KiltePagination;

/**
 * Pagination.
 */
class Pagination
{
    /**
     * Pagination.
     *
     * @param string $url         URL of link
     * @param int    $total       Total
     * @param int    $currentPage Current page
     * @param int    $nbrByPage   Number by page
     * @param int    $neighbord   Neighbord
     *
     * @return string
     */
    public static function get(string $url, int $total, int $currentPage, int $nbrByPage = 10, int $neighbord = 4)
    {
        $pagination = new KiltePagination($total, $currentPage, $nbrByPage, $neighbord);
        $pagination = $pagination->build();
        
        return $this->view('pagination', compact('pagination'));
    }
}
{'fraction_non_alphanumeric': 0.12522686025408347, 'fraction_numerical': 0.003629764065335753, 'mean_word_length': 2.361788617886179, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '3612830', 'n_tokens_mistral': 562, 'n_tokens_neox': 539, 'n_words': 133}