<commit_before><?php

use Cake\Cache\Cache;
use Cake\Core\Configure;
use Croogo\Core\Croogo;

if (Configure::read('Site.acl_plugin') == 'Croogo/Acl') {

	// activate AclFilter component only until after a succesful install
	if (file_exists(APP . 'config' . DS . 'settings.json')) {
		Croogo::hookComponent('*', 'Croogo/Acl.AclFilter');
		Croogo::hookComponent('*', array(
			'CroogoAccess' => array(
				'className' => 'Croogo/Acl.AclAccess',
			),
		));
	}

//	Croogo::hookBehavior('Croogo/Users.Users', 'Croogo/Acl.UserAro');
//	Croogo::hookBehavior('Croogo/Users.Roles', 'Croogo/Acl.RoleAro');

	Cache::config('permissions', array(
		'duration' => '+1 hour',
		'path' => CACHE . 'queries' . DS,
		'className' => Configure::read('Croogo.Cache.defaultEngine'),
		'prefix' => Configure::read('Croogo.Cache.defaultPrefix'),
		'groups' => array('acl')
	));
}<commit_msg>Use Site.installed as check for a installed site<commit_after><?php

use Cake\Cache\Cache;
use Cake\Core\Configure;
use Croogo\Core\Croogo;

if (Configure::read('Site.acl_plugin') == 'Croogo/Acl') {

	// activate AclFilter component only until after a succesfull install
	if (Configure::read('Site.status')) {
		Croogo::hookComponent('*', 'Croogo/Acl.Filter');
		Croogo::hookComponent('*', array(
			'CroogoAccess' => array(
				'className' => 'Croogo/Acl.Access',
			),
		));
	}

//	Croogo::hookBehavior('Croogo/Users.Users', 'Croogo/Acl.UserAro');
//	Croogo::hookBehavior('Croogo/Users.Roles', 'Croogo/Acl.RoleAro');

	Cache::config('permissions', array(
		'duration' => '+1 hour',
		'path' => CACHE . 'queries' . DS,
		'className' => Configure::read('Croogo.Cache.defaultEngine'),
		'prefix' => Configure::read('Croogo.Cache.defaultPrefix'),
		'groups' => array('acl')
	));
}
{'fraction_non_alphanumeric': 0.20389461626575028, 'fraction_numerical': 0.001145475372279496, 'mean_word_length': 5.024137931034483, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, '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': '4976487', 'n_tokens_mistral': 697, 'n_tokens_neox': 626, 'n_words': 106}