<commit_before><?php
// (c) Copyright 2002-2010 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 wikiplugin_author_help() {
	return tra("Shows which author created/deleted which text.").":<br />~np~{AUTHOR(author=username,deleted_by=username)}".tra('text')."{AUTHOR}~/np~";
}
function wikiplugin_author_info() {
	return array(
		'name' => tra('Author'),
		'documentation' => 'PluginAuthor',
		'description' => tra("Color codes parts of the page like 'Track changes' in Office programs."),
		'prefs' => array('wikiplugin_author'),
		'body' => tra('text'),
		'params' => array(
			'author' => array(
				'required' => true,
				'name' => tra('User name'),
				'description' => tra('User name of the user who wrote the text.'),
			),
			'deleted_by' => array(
				'required' => false,
				'name' => tra('Deleted by User'),
				'description' => tra('User name of the user who deleted the text.'),
			),
			'visible'	=> array(
				'required'	=> false,
				'name'		=> tra('Make visible'),
				'description' => tra("Should this author's contribution be visible (default: no)."),
				'options' => array(
					array('text' => tra('No'), 'value' => '0'), 
					array('text' => tra('Yes'), 'value' => '1'), 
				),
			),
			'popup'	=> array(
				'required'	=> false,
				'name'		=> tra('Show popup with author/deleted by'),
				'description' => tra('Generate a popup with names of author(s) (default: no).'),
				'options' => array(
					array('text' => tra('No'), 'value' => '0'), 
					array('text' => tra('Yes'), 'value' => '1'), 
				),
			),
		), // params
	);
}

function wikiplugin_author($data, $params) {
	global $smarty, $tikilib, $headerlib;
	global $authors;
	
	static $style=0;<commit_msg>Add options, default fields and other cleanup to plugin info for use in plugin edit popup and plugin manager, Also pulled info related changes made in trunk to hopefully avoid merge conflicts.<commit_after><?php
// (c) Copyright 2002-2010 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 wikiplugin_author_help() {
	return tra("Shows which author created/deleted which text.").":<br />~np~{AUTHOR(author=username,deleted_by=username)}".tra('text')."{AUTHOR}~/np~";
}
function wikiplugin_author_info() {
	return array(
		'name' => tra('Author'),
		'documentation' => tra('PluginAuthor'),
		'description' => tra('Color codes parts of the page like \'Track changes\' in Office programs.'),
		'prefs' => array('wikiplugin_author'),
		'body' => tra('text'),
		'params' => array(
			'author' => array(
				'required' => true,
				'name' => tra('User Name'),
				'description' => tra('User name of the user who wrote the text.'),
				'default' => '',
				'filter' => 'username'
			),
			'deleted_by' => array(
				'required' => false,
				'name' => tra('Deleted by User'),
				'description' => tra('User name of the user who deleted the text.'),
				'default' => '',
				'filter' => 'username'
			),
			'visible'	=> array(
				'required'	=> false,
				'name'		=> tra('Make Visible'),
				'description' => tra("Should this author's contribution be visible (default: no)."),
				'filter' => 'text',
				'default' => 0,
				'options' => array(
					array('text' => '', 'value' => ''), 
					array('text' => tra('Yes'), 'value' => '1'), 
					array('text' => tra('No'), 'value' => '0'), 
				),
			),
			'popup'	=> array(
				'required'	=> false,
				'name'		=> tra('Show popup with author/deleted by'),
				'description' => tra('Generate a popup with names of author(s) (default: no).'),
				'filter' => 'text',
				'default' => 0,
				'options' => array(
					array('text' => '', 'value' => ''), 
					array('text' => tra('Yes'), 'value' => '1'), 
					array('text' => tra('No'), 'value' => '0'), 
				),
			),
		), // params
	);
}

function wikiplugin_author($data, $params) {
	global $smarty, $tikilib, $headerlib;
	global $authors;
	
	static $style=0;
{'fraction_non_alphanumeric': 0.19483901515151514, 'fraction_numerical': 0.006628787878787879, 'mean_word_length': 3.6276013143483024, 'pattern_counts': {'":': 2, '<': 7, '<?xml version=': 0, '>': 81, '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': '4611258', 'n_tokens_mistral': 1594, 'n_tokens_neox': 1378, 'n_words': 402}