<commit_before><?php

use Cake\Core\Configure;
use Cake\Core\Plugin;
use Croogo\Croogo;

require_once 'croogo_bootstrap.php';

if (Configure::read('Croogo.installed')) {
	return;
}

// Load Install plugin
if (Configure::read('Security.salt') == 'f78b12a5c38e9e5c6ae6fbd0ff1f46c77a1e3' ||
	Configure::read('Security.cipherSeed') == '60170779348589376') {
	$_securedInstall = false;
}
Configure::write('Install.secured', !isset($_securedInstall));
Configure::write('Croogo.installed',
	file_exists(APP . 'Config' . DS . 'database.php') &&
	file_exists(APP . 'Config' . DS . 'settings.json') &&
	file_exists(APP . 'Config' . DS . 'croogo.php')
);
if (!Configure::read('Croogo.installed') || !Configure::read('Install.secured')) {
	Plugin::load('Install', array('routes' => true));
}<commit_msg>Make the Install core plugin loadable<commit_after><?php

use Cake\Core\Configure;
use Cake\Core\Plugin;
use Croogo\Croogo;

require_once 'croogo_bootstrap.php';

if (Configure::read('Croogo.installed')) {
	return;
}

// Load Install plugin
if (Configure::read('Security.salt') == 'f78b12a5c38e9e5c6ae6fbd0ff1f46c77a1e3' ||
	Configure::read('Security.cipherSeed') == '60170779348589376') {
	$_securedInstall = false;
}
Configure::write('Install.secured', !isset($_securedInstall));
Configure::write('Croogo.installed',
	file_exists(APP . 'Config' . DS . 'database.php') &&
	file_exists(APP . 'Config' . DS . 'settings.json') &&
	file_exists(APP . 'Config' . DS . 'croogo.php')
);
if (!Configure::read('Croogo.installed') || !Configure::read('Install.secured')) {
	Plugin::load('Croogo/Install', ['routes' => true, 'path' => Plugin::path('Croogo/Croogo') . '..' . DS . 'Install' . DS]);
}
{'fraction_non_alphanumeric': 0.19725864123957093, 'fraction_numerical': 0.04290822407628129, 'mean_word_length': 6.14468085106383, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, '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': '7361421', 'n_tokens_mistral': 670, 'n_tokens_neox': 608, 'n_words': 96}