<commit_before><?php
function __($key, $params=[]) {
	return \Asgard\Container\Container::singleton()['translator']->trans($key, $params);
}

function d() {
	call_user_func_array(['Asgard\Debug\Debug', 'dWithTrace'], array_merge([debug_backtrace()], func_get_args()));
}

require_once 'vendor/autoload.php';
foreach(spl_autoload_functions() as $function) {
	if(is_array($function) && $function[0] instanceof \Composer\Autoload\ClassLoader)
		$function[0]->setUseIncludePath(true);
}
set_include_path(get_include_path() . PATH_SEPARATOR . __DIR__.'/app');
set_include_path(get_include_path() . PATH_SEPARATOR . 'bundles/admin/app');
set_include_path(get_include_path() . PATH_SEPARATOR . 'bundles/wysiwyg/app');

#Bundles
$kernel = new \Asgard\Core\Kernel(__DIR__);
$kernel->addBundles([
	new \Asgard\Core\Bundle,
	new \Asgard\Data\Bundle,
	new \Asgard\Imagecache\Bundle,
	new \Wysiwyg\Bundle,
	new \Admin\Bundle,
	new \News\Bundle
]);
$container = $kernel->getContainer();
$container['errorHandler'] = new \Asgard\Debug\ErrorHandler;
$container['translator'] = new \Symfony\Component\Translation\Translator('en', new \Symfony\Component\Translation\MessageSelector);
$kernel->load();

#DB
$container['config']->set('database', [
	'host' => 'localhost',
	'user' => 'root',
	'password' => '',
	'database' => 'asgard'<commit_msg>fixes<commit_after><?php
function __($key, $params=[]) {
	return \Asgard\Container\Container::singleton()['translator']->trans($key, $params);
}

function d() {
	call_user_func_array(['Asgard\Debug\Debug', 'dWithTrace'], array_merge([debug_backtrace()], func_get_args()));
}

require_once 'vendor/autoload.php';
foreach(spl_autoload_functions() as $function) {
	if(is_array($function) && $function[0] instanceof \Composer\Autoload\ClassLoader)
		$function[0]->setUseIncludePath(true);
}
set_include_path(get_include_path() . PATH_SEPARATOR . __DIR__.'/app');
set_include_path(get_include_path() . PATH_SEPARATOR . 'bundles/admin/app');
set_include_path(get_include_path() . PATH_SEPARATOR . 'bundles/wysiwyg/app');

#Bundles
$kernel = new \Asgard\Core\Kernel(__DIR__);
$kernel->addBundles([
	new \Asgard\Core\Bundle,
	new \Asgard\Data\Bundle,
	new \Asgard\Imagecache\Bundle,
	new \Wysiwyg\Bundle,
	new \Admin\Bundle,
	new \News\Bundle
]);
$container = $kernel->getContainer();
$container['errorHandler'] = new \Asgard\Debug\ErrorHandler;
$container['translator'] = new \Symfony\Component\Translation\Translator('en', new \Symfony\Component\Translation\MessageSelector);
$kernel->load();

#DB
$container['config']->set('database', [
	'driver' => 'sqlite',
	'database' => ':memory:',
{'fraction_non_alphanumeric': 0.18534151957022257, 'fraction_numerical': 0.0015349194167306216, 'mean_word_length': 6.924012158054711, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 21, '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': '5949943', 'n_tokens_mistral': 943, 'n_tokens_neox': 924, 'n_words': 134}