<commit_before><?php

namespace Parvula\Core;

/**
 * Page type
 *
 * @package Parvula
 * @version 0.1.0
 * @since 0.1.0
 * @author <NAME>
 * @license MIT License
 */
class Page {
//implements Serializable {
	public $title;
	public $description;
	public $author;
	public $date;
	public $robots;
	public $index;
	public $content;

	public static function pageFactory($pageInfo) {
		$page = new self;

		foreach ($pageInfo as $field => $value) {
			if(property_exists(get_class(), $field)) {
				$page->$field = $value;
			}
		}

		return $page;
	}<commit_msg>new field "hidden"<commit_after><?php

namespace Parvula\Core;

/**
 * Page type
 *
 * @package Parvula
 * @version 0.1.0
 * @since 0.1.0
 * @author <NAME>
 * @license MIT License
 */
class Page {
//implements Serializable {
	public $title;
	public $description;
	public $author;
	public $date;
	public $robots;
	public $index;
	public $content;
	public $hidden;

	public static function pageFactory($pageInfo) {
		$page = new self;

		foreach ($pageInfo as $field => $value) {
			if(property_exists(get_class(), $field)) {
				$page->$field = $value;
			}
		}

		return $page;
	}
{'fraction_non_alphanumeric': 0.15114235500878734, 'fraction_numerical': 0.01054481546572935, 'mean_word_length': 3.592741935483871, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '1836604', 'n_tokens_mistral': 437, 'n_tokens_neox': 405, 'n_words': 108}