<commit_before><?php
namespace Website\Action;

use Jack\Action\Page;

class Jbpc extends Page {

	protected function assets() {
		return [
			'css' => ['layouts/full-width','pages/home','pages/models'],
			'js' => ['pages/models'],
		];
	}

}<commit_msg>Enabled the models shortcode on jbpc page<commit_after><?php
namespace Website\Action;

use Thunder\Shortcode\Shortcode\ShortcodeInterface;
use Jack\Action\Page;
use Website\Models;

class Jbpc extends Page {

	protected function assets() {
		return [
			'css' => ['layouts/full-width','pages/home','pages/models'],
			'js' => ['pages/models'],
		];
	}

	public function modelsShortcode(ShortcodeInterface $s) {
		global $app;
		$models = new Models();
		return $app->templateManager->snippet('models/list', ['models' => $models->fetchAll()]);
	}

	protected function fetchPageData() {
		$this->shortcodes->addHandler('jbpc_models', [$this, 'modelsShortcode']);
		parent::fetchPageData();
	}

}
{'fraction_non_alphanumeric': 0.17175974710221287, 'fraction_numerical': 0.0, 'mean_word_length': 4.9748427672955975, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '1976818', 'n_tokens_mistral': 330, 'n_tokens_neox': 305, 'n_words': 64}