<commit_before><?php
namespace Gt\WebEngine\Logic;

abstract class Api extends AbstractLogic {
	protected $object;

	/** @noinspection PhpMissingParentConstructorInspection */
	public function __construct($object) {
		$this->object = $object;
		call_user_func_array(
			"parent::__construct",
			func_get_args()
		);
	}
}<commit_msg>Introduce ObjectDocument for serving API requests<commit_after><?php
namespace Gt\WebEngine\Logic;

use Gt\WebEngine\Refactor\ObjectDocument;

abstract class Api extends AbstractLogic {
	/** @var ObjectDocument */
	protected $document;

	/** @noinspection PhpMissingParentConstructorInspection */
	public function __construct($object) {
		$this->document = $object;

		call_user_func_array(
			"parent::__construct",
			func_get_args()
		);
	}
}
{'fraction_non_alphanumeric': 0.11311053984575835, 'fraction_numerical': 0.0, 'mean_word_length': 5.491666666666666, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '761177', 'n_tokens_mistral': 261, 'n_tokens_neox': 246, 'n_words': 49}