<commit_before><?php
/**
 * Addons and code snippets for Nette Framework. (unofficial)
 *
 * @author   <NAME>
 * @license  MIT
 */

namespace JanTvrdik\CodeSnippets;

use Nette;

/**
 * Base control for all controls in application.
 *
 * @author   <NAME>
 * @version  0.1
 * @link     http://nette.merxes.cz/base-control/
 */
abstract class BaseControl extends Nette\Application\Control
{
	/** @var     bool              automatically derive template path from class name */
	protected $autoSetupTemplateFile = TRUE;



	/**
	 * Automatically registers template file.
	 *
	 * @author   <NAME>
	 * @return   Nette\Templates\FileTemplate
	 */
	protected function createTemplate()
	{
		$template = parent::createTemplate();
		if ($this->autoSetupTemplateFile) $template->setFile($this->getTemplateFilePath());

		return $template;
	}<commit_msg>BaseControl: migrated to new Nette namespaces (released v0.2)<commit_after><?php
/**
 * Addons and code snippets for Nette Framework. (unofficial)
 *
 * @author   <NAME>
 * @license  MIT
 */

namespace JanTvrdik\CodeSnippets;

use Nette;

/**
 * Base control for all controls in application.
 *
 * @author   <NAME>
 * @version  0.2
 * @link     http://nette.merxes.cz/base-control/
 */
abstract class BaseControl extends Nette\Application\UI\Control
{
	/** @var     bool              automatically derive template path from class name */
	protected $autoSetupTemplateFile = TRUE;



	/**
	 * Automatically registers template file.
	 *
	 * @author   <NAME>
	 * @return   Nette\Templating\FileTemplate
	 */
	protected function createTemplate()
	{
		$template = parent::createTemplate();
		if ($this->autoSetupTemplateFile) $template->setFile($this->getTemplateFilePath());

		return $template;
	}
{'fraction_non_alphanumeric': 0.125, 'fraction_numerical': 0.0034562211981566822, 'mean_word_length': 3.5, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 15, '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': '3419482', 'n_tokens_mistral': 548, 'n_tokens_neox': 515, 'n_words': 137}