<commit_before><?php
/**
 * @version		$Id$
 * @category	Koowa
 * @package		Koowa_View
 * @subpackage 	Ajax
 * @copyright	Copyright (C) 2007 - 2009 <NAME> and <NAME>. All rights reserved.
 * @license		GNU GPLv2 <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>
 * @link     	http://www.koowa.org
 */

/**
 * Ajax View Class
 *
 * @author		<NAME> <<EMAIL>>
 * @category	Koowa
 * @package		Koowa_View
 * @subpackage 	Ajax
 */
class KViewAjax extends KViewAbstract 
{ 
	public function __construct($options = array())
	{
		$options = $this->_initialize($options);
		
		// Set a base path for use by the view
		$this->assign('baseurl', $options['base_url']);
		
		parent::__construct($options);
	}
}<commit_msg>Added template form filter to KViewAjax<commit_after><?php
/**
 * @version		$Id$
 * @category	Koowa
 * @package		Koowa_View
 * @subpackage 	Ajax
 * @copyright	Copyright (C) 2007 - 2009 <NAME> and <NAME>. All rights reserved.
 * @license		GNU GPLv2 <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>
 * @link     	http://www.koowa.org
 */

/**
 * Ajax View Class
 *
 * @author		<NAME> <<EMAIL>>
 * @category	Koowa
 * @package		Koowa_View
 * @subpackage 	Ajax
 */
class KViewAjax extends KViewAbstract 
{ 
	public function __construct($options = array())
	{
		$options = $this->_initialize($options);
		
		// Add a rule to the template for form handling and secrity tokens
		KTemplate::addRules(array(KFactory::get('lib.koowa.template.filter.form')));
		
		// Set a base path for use by the view
		$this->assign('baseurl', $options['base_url']);
		
		parent::__construct($options);
	}
}
{'fraction_non_alphanumeric': 0.15677701436602123, 'fraction_numerical': 0.013741411617738912, 'mean_word_length': 3.61671469740634, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '2635151', 'n_tokens_mistral': 614, 'n_tokens_neox': 557, 'n_words': 138}