<commit_before><?php
/**
 *
 *===================================================================
 *
 *  Quartz
 *-------------------------------------------------------------------
 * @category    Quartz
 * @package     Quartz
 * @author      <NAME>
 * @copyright   (c) 2009 - 2011 <NAME>
 * @license     MIT License
 * @link        https://github.com/damianb/Quartz
 *
 *===================================================================
 *
 */

namespace Codebite\Quartz\Page\Instance;
use \OpenFlame\Framework\Core;

/**
 * Quartz - Base page class,
 * 		Provides a base for page instances to extend.
 *
 *
 * @category    Quartz
 * @package     Quartz
 * @author      <NAME>
 * @license     http://opensource.org/licenses/mit-license.php The MIT License
 * @link        https://github.com/damianb/Quartz
 */
abstract class Base
{
	protected $route;

	protected $template_name = '';

	public function setRoute(\OpenFlame\Framework\Router\RouteInstance $route)
	{
		$this->route = $route;
		return $this;
	}

	public static function newInstance()
	{
		return Core::setObject('page.instance', new static());
	}

	public static function newRoutedInstance(\OpenFlame\Framework\Router\RouteInstance $route)
	{
		$self = static::newInstance();
		$self->setRoute($route)
			->executePage();

		return $self;
	}

	public function getTemplateName()
	{
		return $this->template_name;
	}

	abstract public function executePage();
}
<commit_msg>Fix a stupid move within the base page<commit_after><?php
/**
 *
 *===================================================================
 *
 *  Quartz
 *-------------------------------------------------------------------
 * @category    Quartz
 * @package     Quartz
 * @author      <NAME>
 * @copyright   (c) 2009 - 2011 <NAME>
 * @license     MIT License
 * @link        https://github.com/damianb/Quartz
 *
 *===================================================================
 *
 */

namespace Codebite\Quartz\Page\Instance;
use \OpenFlame\Framework\Core;

/**
 * Quartz - Base page class,
 * 		Provides a base for page instances to extend.
 *
 *
 * @category    Quartz
 * @package     Quartz
 * @author      <NAME>
 * @license     http://opensource.org/licenses/mit-license.php The MIT License
 * @link        https://github.com/damianb/Quartz
 */
abstract class Base
{
	protected $route;

	protected $template_name = '';

	public function setRoute(\OpenFlame\Framework\Router\RouteInstance $route)
	{
		$this->route = $route;
		return $this;
	}

	public static function newInstance()
	{
		return Core::setObject('page.instance', new static());
	}

	public static function newRoutedInstance(\OpenFlame\Framework\Router\RouteInstance $route)
	{
		$self = static::newInstance();
		$self->setRoute($route);

		return $self;
	}

	public function getTemplateName()
	{
		return $this->template_name;
	}

	abstract public function executePage();
}

{'fraction_non_alphanumeric': 0.25607217210270644, 'fraction_numerical': 0.005551700208188758, 'mean_word_length': 2.987551867219917, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 16, 'https://': 4, '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': '3704604', 'n_tokens_mistral': 888, 'n_tokens_neox': 825, 'n_words': 186}