<commit_before><?php

use Mouf\MoufUtils;

use Mouf\MoufManager;

$moufManager = MoufManager::getMoufManager();

$moufManager->declareComponent('splashGenerateService', 'Mouf\\Mvc\\Splash\\SplashGenerateService', true);

$moufManager->declareComponent('splashApacheConfig', 'Mouf\\Mvc\\Splash\\Controllers\\Admin\\SplashAdminApacheConfigureController', true);
$moufManager->bindComponent('splashApacheConfig', 'template', 'moufTemplate');
$moufManager->bindComponents('splashApacheConfig', 'content', 'block.content');
$moufManager->bindComponent('splashApacheConfig', 'splashGenerateService', 'splashGenerateService');

$moufManager->declareComponent('splashinstall', 'Mouf\\Mvc\\Splash\\Controllers\\Admin\\SplashInstallController', true);
$moufManager->bindComponent('splashinstall', 'template', 'moufInstallTemplate');
$moufManager->bindComponents('splashinstall', 'content', 'block.content');
$moufManager->bindComponent('splashinstall', 'splashGenerateService', 'splashGenerateService');

$moufManager->declareComponent('splashpurgecache', 'Mouf\\Mvc\\Splash\\Controllers\\Admin\\SplashPurgeCacheController', true);
$moufManager->bindComponent('splashpurgecache', 'template', 'moufTemplate');
$moufManager->bindComponents('splashpurgecache', 'content', 'block.content');

$moufManager->declareComponent('splashHtaccessValidator', 'Mouf\\Validator\\MoufBasicValidationProvider', true);
$moufManager->setParameter('splashHtaccessValidator', 'name', 'Splash validator');
$moufManager->setParameter('splashHtaccessValidator', 'url', "vendor/mouf/mvc.splash/src/direct/splash_htaccess_validator.php");
$moufManager->setParameter('splashHtaccessValidator', 'propagatedUrlParameters', array('selfedit'));
$moufManager->getInstance("validatorService")->validators[] = $moufManager->getInstance("splashHtaccessValidator");

MoufAdmin::getValidatorService()->registerBasicValidator('Splash validator', 'vendor/mouf/mvc.splash/src/direct/splash_instance_validator.php');

MoufUtils::registerMainMenu('mvcMainMenu', 'MVC', null, 'mainMenu', 100);
MoufUtils::registerMenuItem('mvcSplashSubMenu', 'Splash MVC', null, 'mvcMainMenu', 45);
MoufUtils::registerMenuItem('mvcSplashPurgeCacheItem', 'Purge URLs cache', 'splashpurgecache/', 'mvcSplashSubMenu', 0);
MoufUtils::registerMenuItem('mvcSplashAdminApacheConfig2Item', 'Configure Apache redirection', 'splashApacheConfig/', 'mvcSplashSubMenu', 45);


?><commit_msg>Fixing validator<commit_after><?php

use Mouf\MoufUtils;

use Mouf\MoufManager;

$moufManager = MoufManager::getMoufManager();

$moufManager->declareComponent('splashGenerateService', 'Mouf\\Mvc\\Splash\\SplashGenerateService', true);

$moufManager->declareComponent('splashApacheConfig', 'Mouf\\Mvc\\Splash\\Controllers\\Admin\\SplashAdminApacheConfigureController', true);
$moufManager->bindComponent('splashApacheConfig', 'template', 'moufTemplate');
$moufManager->bindComponents('splashApacheConfig', 'content', 'block.content');
$moufManager->bindComponent('splashApacheConfig', 'splashGenerateService', 'splashGenerateService');

$moufManager->declareComponent('splashinstall', 'Mouf\\Mvc\\Splash\\Controllers\\Admin\\SplashInstallController', true);
$moufManager->bindComponent('splashinstall', 'template', 'moufInstallTemplate');
$moufManager->bindComponents('splashinstall', 'content', 'block.content');
$moufManager->bindComponent('splashinstall', 'splashGenerateService', 'splashGenerateService');

$moufManager->declareComponent('splashpurgecache', 'Mouf\\Mvc\\Splash\\Controllers\\Admin\\SplashPurgeCacheController', true);
$moufManager->bindComponent('splashpurgecache', 'template', 'moufTemplate');
$moufManager->bindComponents('splashpurgecache', 'content', 'block.content');

$moufManager->declareComponent('splashHtaccessValidator', 'Mouf\\Validator\\MoufBasicValidationProvider', true);
$moufManager->setParameter('splashHtaccessValidator', 'name', 'Splash validator');
$moufManager->setParameter('splashHtaccessValidator', 'url', MoufUtils::getUrlPathFromFilePath(__DIR__.'/direct/splash_htaccess_validator.php', true));
$moufManager->setParameter('splashHtaccessValidator', 'propagatedUrlParameters', array('selfedit'));
$moufManager->getInstance("validatorService")->validators[] = $moufManager->getInstance("splashHtaccessValidator");

MoufAdmin::getValidatorService()->registerBasicValidator('Splash validator', MoufUtils::getUrlPathFromFilePath(__DIR__.'/direct/splash_instance_validator.php', true));

MoufUtils::registerMainMenu('mvcMainMenu', 'MVC', null, 'mainMenu', 100);
MoufUtils::registerMenuItem('mvcSplashSubMenu', 'Splash MVC', null, 'mvcMainMenu', 45);
MoufUtils::registerMenuItem('mvcSplashPurgeCacheItem', 'Purge URLs cache', 'splashpurgecache/', 'mvcSplashSubMenu', 0);
MoufUtils::registerMenuItem('mvcSplashAdminApacheConfig2Item', 'Configure Apache redirection', 'splashApacheConfig/', 'mvcSplashSubMenu', 45);


?>
{'fraction_non_alphanumeric': 0.16156217882836588, 'fraction_numerical': 0.0036998972250770813, 'mean_word_length': 12.516666666666667, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 45, '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': '2599146', 'n_tokens_mistral': 1612, 'n_tokens_neox': 1561, 'n_words': 175}