<commit_before><?php
// (c) Copyright 2002-2016 by authors of the Tiki Wiki CMS Groupware Project
// 
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// $Id$

function prefs_wikiplugin_list($partial = false)
{
	global $tikilib;
	
	$parserlib = TikiLib::lib('parser');
	
	// Note that most of the plugins controlled by the following preferences will be disabled by another feature check. For example, PluginCalendar depends not only on wikiplugin_calendar, but also on feature_calendar.
	// There is inefficiency in this data structure and the calls to in_array() below. 
	// PHP 7 TODO: Once we require PHP 7+, this native array should be replaced with Ds\Set.
	$defaultPlugins = array(
		'article',
		'articles',
		'attach',
		'author',
		'bigbluebutton',
		'box',
		'calendar',
		'category',
		'catorphans',
		'catpath',
		'center',
		'chart',
		'code',
		'content',
		'copyright',
		'div',
		'dl',
		'draw',
		'events',
		'fade',
		'fancylist',
		'fancytable',
		'file',
		'files',
		'googlemap',
		'group',
		'html',
		'img',
		'include',
		'invite',
		'kaltura',
		'lang',
		'list',
		'map',
		'mediaplayer',
		'memberpayment',
		'miniquiz',
		'module',
		'mouseover',
		'now',
		'payment',
		'poll',
		'quote',
		'rcontent',
		'remarksbox',
		'rss',
		'sheet',
		'sort',
		'split',
		'sub',
		'sup',
		'survey',
		'tabs',
		'thumb',
		'toc',
		'topfriends',
		'trackercomments',
		'trackerfilter',
		'trackeritemfield',
		'trackerlist',
		'trackertimeline',
		'tracker',
		'trackerprefill',
		'trackerstat',
		'trackertoggle',
		'trackerif',
		'transclude',
		'translated',
		'twitter',
		'userlink',
		'vimeo',	
		'vote',
		'xmpp',
		'youtube',
		'zotero',
	);

	if ($partial) {
		$out = array();
		$list = array();
		$alias = array();
		foreach ( glob('lib/wiki-plugins/wikiplugin_*.php') as $file ) {
			$base = basename($file);<commit_msg>[FIX] xmpp plugin was removed in r62200<commit_after><?php
// (c) Copyright 2002-2016 by authors of the Tiki Wiki CMS Groupware Project
// 
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// $Id$

function prefs_wikiplugin_list($partial = false)
{
	global $tikilib;
	
	$parserlib = TikiLib::lib('parser');
	
	// Note that most of the plugins controlled by the following preferences will be disabled by another feature check. For example, PluginCalendar depends not only on wikiplugin_calendar, but also on feature_calendar.
	// There is inefficiency in this data structure and the calls to in_array() below. 
	// PHP 7 TODO: Once we require PHP 7+, this native array should be replaced with Ds\Set.
	$defaultPlugins = array(
		'article',
		'articles',
		'attach',
		'author',
		'bigbluebutton',
		'box',
		'calendar',
		'category',
		'catorphans',
		'catpath',
		'center',
		'chart',
		'code',
		'content',
		'copyright',
		'div',
		'dl',
		'draw',
		'events',
		'fade',
		'fancylist',
		'fancytable',
		'file',
		'files',
		'googlemap',
		'group',
		'html',
		'img',
		'include',
		'invite',
		'kaltura',
		'lang',
		'list',
		'map',
		'mediaplayer',
		'memberpayment',
		'miniquiz',
		'module',
		'mouseover',
		'now',
		'payment',
		'poll',
		'quote',
		'rcontent',
		'remarksbox',
		'rss',
		'sheet',
		'sort',
		'split',
		'sub',
		'sup',
		'survey',
		'tabs',
		'thumb',
		'toc',
		'topfriends',
		'trackercomments',
		'trackerfilter',
		'trackeritemfield',
		'trackerlist',
		'trackertimeline',
		'tracker',
		'trackerprefill',
		'trackerstat',
		'trackertoggle',
		'trackerif',
		'transclude',
		'translated',
		'twitter',
		'userlink',
		'vimeo',	
		'vote',
		'youtube',
		'zotero',
	);

	if ($partial) {
		$out = array();
		$list = array();
		$alias = array();
		foreach ( glob('lib/wiki-plugins/wikiplugin_*.php') as $file ) {
			$base = basename($file);
{'fraction_non_alphanumeric': 0.16532054517920242, 'fraction_numerical': 0.0063099444724886425, 'mean_word_length': 3.6296728971962615, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '5685540', 'n_tokens_mistral': 1642, 'n_tokens_neox': 1434, 'n_words': 396}