<commit_before><?php

/** @var \Composer\Autoload\ClassLoader $composer */
$composer = require_once __DIR__ . '/../vendor/autoload.php';


$configurator = new \Nette\Configurator;

$configurator->setTempDirectory(__DIR__ . '/../temp');
$configurator->enableDebugger(__DIR__ . '/../log');

$robotLoader = $configurator->createRobotLoader()
	->addDirectory(__DIR__)
	->register();
$composer->addClassMap($robotLoader->getIndexedClasses());

$configurator->addConfig(__DIR__ . '/config/config.neon');
$configurator->addConfig(__DIR__ . '/config/local.neon');

return $configurator->createContainer();<commit_msg>Misc: enclosed bootstrap code<commit_after><?php

return call_user_func(function () {
	/** @var \Composer\Autoload\ClassLoader $composer */
	$composer = require_once __DIR__ . '/../vendor/autoload.php';

	$configurator = new \Nette\Configurator;

	$configurator->setTempDirectory(__DIR__ . '/../temp');
	$configurator->enableDebugger(__DIR__ . '/../log');

	$robotLoader = $configurator->createRobotLoader()
		->addDirectory(__DIR__)
		->register();
	$composer->addClassMap($robotLoader->getIndexedClasses());

	$configurator->addConfig(__DIR__ . '/config/config.neon');
	$configurator->addConfig(__DIR__ . '/config/local.neon');

	return $configurator->createContainer();
});
{'fraction_non_alphanumeric': 0.18521400778210118, 'fraction_numerical': 0.0, 'mean_word_length': 5.697916666666667, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 23, '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': '6370653', 'n_tokens_mistral': 432, 'n_tokens_neox': 425, 'n_words': 56}