<commit_before><?php

namespace Boom\Page;

class Creator
{
	/**
	 *
	 * @var Model_Person
	 */
	protected $_creator;

	/**
	 *
	 * @var \Model_Page
	 */
	protected $_parent;

	protected $_templateId;
	protected $_title = 'Untitled';

	public function __construct(\Model_Page $parent, \Model_Person $creator)
	{
		$this->_parent = $parent;
		$this->_creator = $creator;
	}

	protected function _createPage()
	{
		$model = new \Model_Page;

		return $model
			->values(array(
				'visible_in_nav'				=>	$this->_parent->children_visible_in_nav,
				'visible_in_nav_cms'			=>	$this->_parent->children_visible_in_nav_cms,
				'children_visible_in_nav'		=>	$this->_parent->children_visible_in_nav,
				'children_visible_in_nav_cms'	=>	$this->_parent->children_visible_in_nav_cms,
				'visible_from'				=>	time(),
				'created_by'				=>	$this->_creator->id,
			))<commit_msg>Fixed bug in page creator by updating type hints<commit_after><?php

namespace Boom\Page;

use \Boom\Page as Page;

class Creator
{
	/**
	 *
	 * @var Model_Person
	 */
	protected $_creator;

	/**
	 *
	 * @var \Model_Page
	 */
	protected $_parent;

	protected $_templateId;
	protected $_title = 'Untitled';

	public function __construct(Page $parent, \Model_Person $creator)
	{
		$this->_parent = $parent;
		$this->_creator = $creator;
	}

	protected function _createPage()
	{
		$model = new \Model_Page;

		return $model
			->values(array(
				'visible_in_nav'				=>	$this->_parent->children_visible_in_nav,
				'visible_in_nav_cms'			=>	$this->_parent->children_visible_in_nav_cms,
				'children_visible_in_nav'		=>	$this->_parent->children_visible_in_nav,
				'children_visible_in_nav_cms'	=>	$this->_parent->children_visible_in_nav_cms,
				'visible_from'				=>	time(),
				'created_by'				=>	$this->_creator->id,
			))
{'fraction_non_alphanumeric': 0.1440536013400335, 'fraction_numerical': 0.0, 'mean_word_length': 3.96398891966759, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 41, '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': '1336045', 'n_tokens_mistral': 749, 'n_tokens_neox': 651, 'n_words': 110}