<commit_before><?php

/**
 * @copyright  <NAME>
 * @license    http://www.makoframework.com/license
 */

namespace mako\pagination;

use mako\http\Request;
use mako\http\routing\URLBuilder;
use mako\pagination\Pagination;
use mako\pagination\PaginationFactoryInterface;
use mako\pagination\PaginationInterface;
use mako\view\ViewFactory;

/**
 * Pagination factory.
 *
 * @author  <NAME>
 * @author  <NAME>
 */
class PaginationFactory implements PaginationFactoryInterface
{
	/**
	 * Request instance.
	 *
	 * @var \mako\http\Request
	 */
	protected $request;

	/**
	 * Options.
	 *
	 * @var array
	 */
	protected $options;

	/**
	 * URL builder instance.
	 *
	 * @var \mako\http\routing\URLBuilder
	 */
	protected $urlBuilder;

	/**
	 * View factory instance.
	 *
	 * @var \mako\view\ViewFactory
	 */
	protected $viewFactory;

	/**
	 * Constructor.
	 *
	 * @access  public
	 * @param   \mako\http\Request  $request  Request
	 * @param   array               $config   Configuration
	 */
	public function __construct(Request $request, array $config = [])
	{
		$this->request = $request;

		$this->options = $config;
	}

	/**
	 * Sets the URL builder instance.
	 *
	 * @access  public
	 * @param   \mako\http\routing\URLBuilder  $urlBuilder  URL builder instance
	 */
	public function setURLBuilder(URLBuilder $urlBuilder)
	{
		$this->urlBuilder = $urlBuilder;
	}

	/**
	 * Sets the view factory builder instance.<commit_msg>Cleaning up<commit_after><?php

/**
 * @copyright  <NAME>
 * @license    http://www.makoframework.com/license
 */

namespace mako\pagination;

use mako\http\Request;
use mako\http\routing\URLBuilder;
use mako\pagination\Pagination;
use mako\pagination\PaginationFactoryInterface;
use mako\pagination\PaginationInterface;
use mako\view\ViewFactory;

/**
 * Pagination factory.
 *
 * @author  <NAME>
 * @author  <NAME>
 */
class PaginationFactory implements PaginationFactoryInterface
{
	/**
	 * Request instance.
	 *
	 * @var \mako\http\Request
	 */
	protected $request;

	/**
	 * Options.
	 *
	 * @var array
	 */
	protected $options;

	/**
	 * URL builder instance.
	 *
	 * @var \mako\http\routing\URLBuilder
	 */
	protected $urlBuilder;

	/**
	 * View factory instance.
	 *
	 * @var \mako\view\ViewFactory
	 */
	protected $viewFactory;

	/**
	 * Constructor.
	 *
	 * @access  public
	 * @param   \mako\http\Request  $request  Request
	 * @param   array               $options  Options
	 */
	public function __construct(Request $request, array $options = [])
	{
		$this->request = $request;

		$this->options = $options;
	}

	/**
	 * Sets the URL builder instance.
	 *
	 * @access  public
	 * @param   \mako\http\routing\URLBuilder  $urlBuilder  URL builder instance
	 */
	public function setURLBuilder(URLBuilder $urlBuilder)
	{
		$this->urlBuilder = $urlBuilder;
	}

	/**
	 * Sets the view factory builder instance.
{'fraction_non_alphanumeric': 0.1352112676056338, 'fraction_numerical': 0.0, 'mean_word_length': 3.0527817403708988, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 15, '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': '6634588', 'n_tokens_mistral': 984, 'n_tokens_neox': 915, 'n_words': 200}