<commit_before><?php

namespace Application;

use Silex\Application;
use Knp\Component\Pager\Paginator as KnpPaginator;
use Doctrine\ORM\QueryBuilder;

/**
 * @author <NAME> <<EMAIL>>
 */
class Paginator
{
    protected $app;

    /**
     * @param Application $app
     */
    public function __construct(Application $app)
    {
        $this->app = $app;
    }

    /**
     * @param $data
     * @param $currentPage
     * @param $limitPerPage
     * @param $options
     */
    public function paginate($data, $currentPage = 1, $limitPerPage = 10, $options = array())
    {
        $paginator = new KnpPaginator();

        if ($currentPage === null) {<commit_msg>Typo fix<commit_after><?php

namespace Application;

use Silex\Application;
use Knp\Component\Pager\Paginator as KnpPaginator;
use Doctrine\ORM\QueryBuilder;

/**
 * @author <NAME> <<EMAIL>>
 */
class Paginator
{
    protected $app;

    /**
     * @param Application $app
     */
    public function __construct(Application $app)
    {
        $this->app = $app;
    }

    /**
     * @param $data
     * @param $currentPage
     * @param $limitPerPage
     * @param $options
     */
    public function paginate($data, $currentPage = 1, $limitPerPage = 10, $options = array())
    {
        $paginator = new KnpPaginator();

        if ($currentPage === null) {
{'fraction_non_alphanumeric': 0.14124718256949662, 'fraction_numerical': 0.004507888805409466, 'mean_word_length': 2.6, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '2949355', 'n_tokens_mistral': 435, 'n_tokens_neox': 428, 'n_words': 101}