<commit_before><?php

declare(strict_types = 1);

use Nette\Application\Application;
use Tester\Assert;

/** @var $boot Drago\Bootstrap\ExtraConfigurator */
$boot = require __DIR__ . '/../bootstrap.php';


$configCache = function () use ($boot): ConfigCache {
	return new ConfigCache($boot::CACHING, TEMP_DIR);
};


test(function () use ($boot, $configCache) {
	$boot->addFindConfig(CONF_DIR . '/conf');
	$config = $configCache()->getCache();

	Assert::same('conf.neon', $config[0]);
	Assert::same('9.conf.neon', $config[1]);

	$configCache()->remove();
});


test(function () use ($boot, $configCache) {
	$boot->addFindConfig([
		CONF_DIR . '/conf',<commit_msg>Update ExtraConfigurator.phpt<commit_after><?php

declare(strict_types = 1);

use Nette\Application\Application;
use Tester\Assert;

/** @var $boot Drago\ExtraConfigurator */
$boot = require __DIR__ . '/../bootstrap.php';


$configCache = function () use ($boot): ConfigCache {
	return new ConfigCache($boot::CACHING, TEMP_DIR);
};


test(function () use ($boot, $configCache) {
	$boot->addFindConfig(CONF_DIR . '/conf');
	$config = $configCache()->getCache();

	Assert::same('conf.neon', $config[0]);
	Assert::same('9.conf.neon', $config[1]);

	$configCache()->remove();
});


test(function () use ($boot, $configCache) {
	$boot->addFindConfig([
		CONF_DIR . '/conf',
{'fraction_non_alphanumeric': 0.20451127819548873, 'fraction_numerical': 0.006015037593984963, 'mean_word_length': 5.399038461538462, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '4317945', 'n_tokens_mistral': 469, 'n_tokens_neox': 454, 'n_words': 86}