<commit_before><?php

/**
 * TagsInstall
 * Installer for the tags module
 *
 * @package		installer
 * @subpackage	tags
 *
 * @author		<NAME> <<EMAIL>>
 * @author 		<NAME> <<EMAIL>>
 * @since		2.0
 */
class TagsInstall extends ModuleInstaller
{
	/**
	 * Install the module
	 *
	 * @return	void
	 */
	protected function execute()
	{
		// load install.sql
		$this->importSQL(PATH_WWW .'/backend/modules/tags/installer/install.sql');

		// add 'blog' as a module
		$this->addModule('tags', 'The tags module.');

		// general settings
		$this->setSetting('blog', 'requires_akismet', false);
		$this->setSetting('blog', 'requires_google_maps', false);

		// module rights
		$this->setModuleRights(1, 'tags');

		// action rights
		$this->setActionRights(1, 'tags', 'autocomplete');
		$this->setActionRights(1, 'tags', 'edit');
		$this->setActionRights(1, 'tags', 'index');
		$this->setActionRights(1, 'tags', 'mass_action');

		// insert locale (nl)
		$this->insertLocale('nl', 'backend', 'tags', 'msg', 'Edited', 'De tag "%1$s" werd opgeslagen.');
		$this->insertLocale('nl', 'backend', 'tags', 'msg', 'EditTag', 'bewerk tag "%1$s"');
		$this->insertLocale('nl', 'backend', 'tags', 'msg', 'Deleted', 'De geselecteerde tag(s) werd(en) verwijderd.');
		$this->insertLocale('nl', 'backend', 'tags', 'msg', 'NoItems', 'Er zijn geen tags.');
		$this->insertLocale('nl', 'backend', 'tags', 'err', 'NonExisting', 'Deze tag bestaat niet.');
		$this->insertLocale('nl', 'backend', 'tags', 'err', 'NoSelection', 'Er waren geen tags geselecteerd.');

		// insert locale (en)
		$this->insertLocale('en', 'backend', 'tags', 'msg', 'Edited', 'The tag "%1$s" was saved.');
		$this->insertLocale('en', 'backend', 'tags', 'msg', 'EditTag', 'edit tag "%1$s"');
		$this->insertLocale('en', 'backend', 'tags', 'msg', 'Deleted', 'The selected tag(s) was/were deleted.');
		$this->insertLocale('en', 'backend', 'tags', 'msg', 'NoItems', 'There are no tags.');
		$this->insertLocale('en', 'backend', 'tags', 'err', 'NonExisting', 'This tag doesn\'t exist.');<commit_msg>* bugfix: akismet key requirement wordt nu deftig ingesteld<commit_after><?php

/**
 * TagsInstall
 * Installer for the tags module
 *
 * @package		installer
 * @subpackage	tags
 *
 * @author		<NAME> <<EMAIL>>
 * @author 		<NAME> <<EMAIL>>
 * @since		2.0
 */
class TagsInstall extends ModuleInstaller
{
	/**
	 * Install the module
	 *
	 * @return	void
	 */
	protected function execute()
	{
		// load install.sql
		$this->importSQL(PATH_WWW .'/backend/modules/tags/installer/install.sql');

		// add 'blog' as a module
		$this->addModule('tags', 'The tags module.');

		// general settings
		$this->setSetting('tags', 'requires_akismet', false);
		$this->setSetting('tags', 'requires_google_maps', false);

		// module rights
		$this->setModuleRights(1, 'tags');

		// action rights
		$this->setActionRights(1, 'tags', 'autocomplete');
		$this->setActionRights(1, 'tags', 'edit');
		$this->setActionRights(1, 'tags', 'index');
		$this->setActionRights(1, 'tags', 'mass_action');

		// insert locale (nl)
		$this->insertLocale('nl', 'backend', 'tags', 'msg', 'Edited', 'De tag "%1$s" werd opgeslagen.');
		$this->insertLocale('nl', 'backend', 'tags', 'msg', 'EditTag', 'bewerk tag "%1$s"');
		$this->insertLocale('nl', 'backend', 'tags', 'msg', 'Deleted', 'De geselecteerde tag(s) werd(en) verwijderd.');
		$this->insertLocale('nl', 'backend', 'tags', 'msg', 'NoItems', 'Er zijn geen tags.');
		$this->insertLocale('nl', 'backend', 'tags', 'err', 'NonExisting', 'Deze tag bestaat niet.');
		$this->insertLocale('nl', 'backend', 'tags', 'err', 'NoSelection', 'Er waren geen tags geselecteerd.');

		// insert locale (en)
		$this->insertLocale('en', 'backend', 'tags', 'msg', 'Edited', 'The tag "%1$s" was saved.');
		$this->insertLocale('en', 'backend', 'tags', 'msg', 'EditTag', 'edit tag "%1$s"');
		$this->insertLocale('en', 'backend', 'tags', 'msg', 'Deleted', 'The selected tag(s) was/were deleted.');
		$this->insertLocale('en', 'backend', 'tags', 'msg', 'NoItems', 'There are no tags.');
		$this->insertLocale('en', 'backend', 'tags', 'err', 'NonExisting', 'This tag doesn\'t exist.');
{'fraction_non_alphanumeric': 0.2260406582768635, 'fraction_numerical': 0.005324298160696999, 'mean_word_length': 4.862411347517731, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 55, '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': '3134919', 'n_tokens_mistral': 1513, 'n_tokens_neox': 1464, 'n_words': 363}