<commit_before><?php
/**
 * Pagination Interface
 *
 * @package    Render
 * @copyright  2014 <NAME>. All rights reserved.
 * @license    http://www.opensource.org/licenses/mit-license.html MIT License
 */
namespace CommonApi\Render;

/**
 * Pagination Interface
 *
 * @package    Render
 * @license    http://www.opensource.org/licenses/mit-license.html MIT License
 * @copyright  2014 <NAME>. All rights reserved.
 * @since      1.0
 */
interface PaginationInterface
{
    /**
     * Get the first page number (always page=1)
     *
     * @return  int
     * @since   1.0
     */
    public function getFirstPage();

    /**
     * Get the page number previous to the current page
     *
     * @return  int
     * @since   1.0
     */
    public function getPrevPage();

    /**
     * Get the first page number to use when looping through the display page number buttons
     *
     * @return  int
     * @since   1.0
     */
    public function getStartDisplayPage();

    /**
     * Get the current page number
     *
     * @return  int
     * @since   1.0
     */
    public function getCurrentPage();

    /**
     * Get the last page number to use when looping through the display page number buttons
     *
     * @return  int
     * @since   1.0
     */
    public function getStopDisplayPage();

    /**
     * Get the page number following the current page
     *
     * @return  int
     * @since   1.0
     */
    public function getNextPage();

    /**
     * Get the final page number
     *
     * @return  int
     * @since   1.0
     */
    public function getLastPage();

    /**
     * Get data paginated
     *
     * @return  array
     * @since   1.0
     */
    public function getData();

    /**
     * Get the total number of items in the recordset (not just those displayed on the page)
     *
     * @return  int
     * @since   1.0
     */
    public function getTotalItems();

    /**
     * Get the URL for the specified key
     *
     *  - Use a numeric page number
     *  - Or, use a specific key value: first, previous, current, next, or last
     *
     * @param   mixed $page
     *
     * @return  string
     * @since   1.0
     */
    public function getPageUrl($page);
}<commit_msg>Pagination changes<commit_after><?php
/**
 * Pagination Interface
 *
 * @package    Render
 * @copyright  2014 <NAME>. All rights reserved.
 * @license    http://www.opensource.org/licenses/mit-license.html MIT License
 */
namespace CommonApi\Render;

/**
 * Pagination Interface
 *
 * @package    Render
 * @license    http://www.opensource.org/licenses/mit-license.html MIT License
 * @copyright  2014 <NAME>. All rights reserved.
 * @since      1.0.0
 */
interface PaginationInterface
{
    /**
     * Set pagination values
     *
     * << < 1 2 3 > >>
     *
     * @param  array  $data             Data to be displayed (not full results)
     * @param  string $page_url         URL for page on which paginated appears
     * @param  array  $query_parameters URL Query Parameters (other than page)
     * @param  int    $total_items      Total items in full resultset for data
     * @param  int    $per_page         Number of items per page
     * @param  int    $display_links    Number of page number "buttons" to show
     * @param  int    $page             Current page
     *
     * @since  1.0
     */
    public function setPagination(
        array $data = array(),
        $page_url,
        array $query_parameters = array(),
        $total_items,
        $per_page,
        $display_links,
        $page
    );

    /**
     * Get the first page number (always page=1)
     *
     * @return  int
     * @since   1.0
     */
    public function getFirstPage();

    /**
     * Get the page number previous to the current page
     *
     * @return  int
     * @since   1.0
     */
    public function getPrevPage();

    /**
     * Get the current page number
     *
     * @return  int
     * @since   1.0
     */
    public function getCurrentPage();

    /**
     * Get the page number following the current page
     *
     * @return  int
     * @since   1.0
     */
    public function getNextPage();

    /**
     * Get the final page number
     *
     * @return  int
     * @since   1.0
     */
    public function getLastPage();

    /**
     * Get the first page number to use when looping through the display page number buttons
     *
     * @return  int
     * @since   1.0
     */
    public function getStartLinksPage();

    /**
     * Get the last page number to use when looping through the display page number buttons
     *
     * @return  int
     * @since   1.0
     */
    public function getStopLinksPage();

    /**
     * Get data paginated
     *
     * @return  array
     * @since   1.0
     */
    public function getData();

    /**
     * Get the total number of items in the recordset (not just those displayed on the page)
     *
     * @return  int
     * @since   1.0
     */
    public function getTotalItems();

    /**
     * Get the URL for the specified key
     *
     * @param   int $page_number
     *
     * @return  string
     * @since   1.0
     */
    public function getPageUrl($page_number);
}
{'fraction_non_alphanumeric': 0.10175370977066872, 'fraction_numerical': 0.013104644440161881, 'mean_word_length': 1.7993527508090614, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 10, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '4893597', 'n_tokens_mistral': 1556, 'n_tokens_neox': 1513, 'n_words': 498}