<commit_before><?php

namespace App\Presenters;

use App\Components\GistRenderer;


final class HomepagePresenter extends BasePresenter
{

	public function actionDefault()
	{
//		$p = new Path();
//		$p->list = [
//			$this->orm->videos->getById(1),
//			$this->orm->videos->getById(3),
//			$this->orm->blueprints->getById(1),
//			$this->orm->videos->getById(2),
//			$this->orm->videos->getById(5),
//		];
//		//
//		$this->orm->paths->attach($p);
//		$p->getRepository()->getMapper(); // HACK, move events to repository
//		$this->orm->flush();

//		$path = $this->orm->paths->getById(1);
//		$path->list = [
//			$this->orm->videos->getById(4),
//			$this->orm->videos->getById(3),
//			$this->orm->blueprints->getById(1),
//			$this->orm->videos->getById(2),
//			$this->orm->videos->getById(5),
//		];
//		$this->orm->flush();

		$this->template->video = $this->orm->videos->getById(3);

		$gist = $this->orm->gists->getByName('test');
		/** @var GistRenderer $gistRenderer */
		$gistRenderer = $this['gist'];
		$gistRenderer->setEditable(TRUE);
		$gistRenderer->setGist($gist);
	}
<commit_msg>remove test code in homepage<commit_after><?php

namespace App\Presenters;

use App\Components\GistRenderer;


final class HomepagePresenter extends BasePresenter
{

	public function actionDefault()
	{
		$this->template->video = $this->orm->videos->getById(3);

		$gist = $this->orm->gists->getByName('test');
		/** @var GistRenderer $gistRenderer */
		$gistRenderer = $this['gist'];
		$gistRenderer->setEditable(TRUE);
		$gistRenderer->setGist($gist);
	}

{'fraction_non_alphanumeric': 0.23185613359023763, 'fraction_numerical': 0.008349389852280027, 'mean_word_length': 3.853582554517134, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 67, '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': '5378206', 'n_tokens_mistral': 638, 'n_tokens_neox': 601, 'n_words': 78}