<commit_before><?php
// First, let's request the install utilities
require_once '../../../../../mouf/actions/InstallUtils.php';

// Let's init Mouf
InstallUtils::init(InstallUtils::$INIT_APP);

// Let's create the instance
$moufManager = MoufManager::getMoufManager();

//language detection service
if ($moufManager->instanceExists("defaultLanguageDetection")) {
	$defaultLanguageDetection = $moufManager->getInstanceDescriptor("defaultLanguageDetection");
} else {
	$defaultLanguageDetection = $moufManager->createInstance("BrowserLanguageDetection");
	$defaultLanguageDetection->setName("defaultLanguageDetection");
}

//common translation service
if ($moufManager->instanceExists("fineCommonTranslationService")) {
	$fineCommonTranslationService = $moufManager->getInstanceDescriptor("fineCommonTranslationService");
} else {
	$fineCommonTranslationService = $moufManager->createInstance("FinePHPArrayTranslationService");
	$fineCommonTranslationService->setName("fineCommonTranslationService");
	$fineCommonTranslationService->getProperty("languageDetection")->setValue($defaultLanguageDetection);
}
$fineCommonTranslationService->getProperty("i18nMessagePath")->setValue("vendor/mouf/utils.i18n.fine/resources/");<commit_msg>Add mouf/ path to autoload<commit_after><?php
use Mouf\MoufManager;
use Mouf\Actions\InstallUtils;

// First, let's request the install utilities


// Let's init Mouf

InstallUtils::init(InstallUtils::$INIT_APP);

// Let's create the instance
$moufManager = MoufManager::getMoufManager();

//language detection service
if ($moufManager->instanceExists("defaultLanguageDetection")) {
	$defaultLanguageDetection = $moufManager->getInstanceDescriptor("defaultLanguageDetection");
} else {
	$defaultLanguageDetection = $moufManager->createInstance("BrowserLanguageDetection");
	$defaultLanguageDetection->setName("defaultLanguageDetection");
}

//common translation service
if ($moufManager->instanceExists("fineCommonTranslationService")) {
	$fineCommonTranslationService = $moufManager->getInstanceDescriptor("fineCommonTranslationService");
} else {
	$fineCommonTranslationService = $moufManager->createInstance("FinePHPArrayTranslationService");
	$fineCommonTranslationService->setName("fineCommonTranslationService");
	$fineCommonTranslationService->getProperty("languageDetection")->setValue($defaultLanguageDetection);
}
$fineCommonTranslationService->getProperty("i18nMessagePath")->setValue("vendor/mouf/utils.i18n.fine/resources/");
{'fraction_non_alphanumeric': 0.13168557536466774, 'fraction_numerical': 0.0032414910858995136, 'mean_word_length': 9.924778761061948, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 27, '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': '1628168', 'n_tokens_mistral': 690, 'n_tokens_neox': 670, 'n_words': 91}