<commit_before><div class="col-lg-9">
    <h1>Pagination example with Zend Framework 2</h1>
    <div class="demo-box">
        <form method="get" class="form-inline" style="margin-bottom: 20px">
            <select class="form-control" name="category">
                <option value="">
                    All categories
                </option>
                <option value="movies"
                        <?php echo isset($this->category) && $this->category === 'movies' ? 'selected' : '' ?>>
                    Movies
                </option>
                <option value="books"
                        <?php echo isset($this->category) && $this->category === 'books' ? 'selected' : '' ?>>
                    Books
                </option>
                <option value="music"
                        <?php echo isset($this->category) && $this->category === 'music' ? 'selected' : '' ?>>
                    Music
                </option>
            </select>
            <input type="text" name="keyword" class="form-control" placeholder="Keyword"
                   value="<?php echo $this->keyword ?: '' ?>">
            <input type="hidden" name="page" value="<?php echo $this->page ?: 1 ?>">
            <button type="submit" class="btn btn-primary">Apply filter</button>
        </form>
        <table class="table">
            <thead>
                <tr>
                    <th>Title</th>
                    <th>Category</th>
                    <th class="text-right">Year</th>
                </tr>
            </thead>
            <tbody>
                <?php foreach ($this->paginator as $element): ?>
                    <tr>
                        <td><?php echo $element['title'] ?></td>
                        <td><?php echo $element['category'] ?></td>
                        <td class="text-right"><?php echo $element['year'] ?></td>
                    </tr>
                <?php endforeach; ?>
            </tbody>
        </table>
        <?php
        echo $this->paginationControl(
            $this->paginator,
            'sliding',
            'learn-zf2-pagination/partials/paginator.phtml'
        );
        ?>
    </div>
</div>
<commit_msg>Added message in Pagination module which is displayed when no elements are returned<commit_after><div class="col-lg-9">
    <h1>Pagination example with Zend Framework 2</h1>
    <div class="demo-box">
        <form method="get" class="form-inline" style="margin-bottom: 20px">
            <select class="form-control" name="category">
                <option value="">
                    All categories
                </option>
                <option value="movies"
                        <?php echo isset($this->category) && $this->category === 'movies' ? 'selected' : '' ?>>
                    Movies
                </option>
                <option value="books"
                        <?php echo isset($this->category) && $this->category === 'books' ? 'selected' : '' ?>>
                    Books
                </option>
                <option value="music"
                        <?php echo isset($this->category) && $this->category === 'music' ? 'selected' : '' ?>>
                    Music
                </option>
            </select>
            <input type="text" name="keyword" class="form-control" placeholder="Keyword"
                   value="<?php echo $this->keyword ?: '' ?>">
            <input type="hidden" name="page" value="<?php echo $this->page ?: 1 ?>">
            <button type="submit" class="btn btn-primary">Apply filter</button>
        </form>
        <?php if (count($this->paginator) > 0): ?>
            <table class="table">
                <thead>
                    <tr>
                        <th>Title</th>
                        <th>Category</th>
                        <th class="text-right">Year</th>
                    </tr>
                </thead>
                <tbody>
                    <?php foreach ($this->paginator as $element): ?>
                        <tr>
                            <td><?php echo $element['title'] ?></td>
                            <td><?php echo $element['category'] ?></td>
                            <td class="text-right"><?php echo $element['year'] ?></td>
                        </tr>
                    <?php endforeach; ?>
                </tbody>
            </table>
        <?php
        echo $this->paginationControl(
            $this->paginator,
            'sliding',
            'learn-zf2-pagination/partials/paginator.phtml'
        );
        else: ?>
            <div class="alert alert-warning">No elements found with provided conditions</div>
        <?php endif; ?>
    </div>
</div>

{'fraction_non_alphanumeric': 0.15770456960680126, 'fraction_numerical': 0.0036131774707757703, 'mean_word_length': 1.3205128205128205, 'pattern_counts': {'":': 0, '<': 117, '<?xml version=': 0, '>': 141, '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': '419215', 'n_tokens_mistral': 1237, 'n_tokens_neox': 1180, 'n_words': 263}