<commit_before><?php
/**
 * Smarty function 'set'
 * 
 * @copyright Copyright (c) 2008, S & S Royal Limited
 * @author <NAME>
 * @package Core
 * @subpackage Plugins
 * 
 */
/**
 *  
 *
 * @param array $params
 * @param Smarty $smarty
 * @return void
 */
function smarty_function_set($params, &$smarty)
{
	global $pageParameters;
	if (!is_a($smarty, 'Smarty'))
	{
		return;
	}

	if (isset($params['title'])) {
		$pageParameters['title'][] = $params['title'];
	}
	if (isset($params['description'])) {
		$pageParameters['description'][] = $params['description'];
	}
	if (isset($params['keywords'])) {
		$pageParameters['keywords'][] = $params['keywords'];
	}
}
?><commit_msg>fix: smarty function 'set' correct work with updated Smarty<commit_after><?php
/**
 * Smarty function 'set'
 * 
 * @copyright Copyright (c) 2008, S & S Royal Limited
 * @author <NAME>
 * @package Core
 * @subpackage Plugins
 * 
 */
/**
 * 'set' function realization
 *
 * @param array $params
 * @param Smarty $smarty
 * @return void
 */
function smarty_function_set($params, &$smarty)
{
	global $pageParameters;
	if (!is_a($smarty, 'Smarty_Internal_Template'))
	{
		return;
	}

	if (isset($params['title'])) {
		$pageParameters['title'][] = $params['title'];
	}
	if (isset($params['description'])) {
		$pageParameters['description'][] = $params['description'];
	}
	if (isset($params['keywords'])) {
		$pageParameters['keywords'][] = $params['keywords'];
	}
}
?>
{'fraction_non_alphanumeric': 0.20278745644599303, 'fraction_numerical': 0.005574912891986063, 'mean_word_length': 4.837398373983739, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '5987268', 'n_tokens_mistral': 512, 'n_tokens_neox': 481, 'n_words': 105}