<commit_before><?php defined('SYSPATH') or die('No direct access allowed.');
/**
 * Index controller
 *
 * @package    Anqh
 * @author     <NAME>
 * @copyright  (c) 2010 <NAME>
 * @license    http://www.opensource.org/licenses/mit-license.php MIT license
 */
class Anqh_Controller_Index extends Controller_Template {

	/**
	 * @var  string  Index id is home
	 */
	protected $page_id = 'home';

	/**
	 * Controller default action
	 */
	public function action_index() {
		$this->page_title = __('Welcome to :site', array(':site' => Kohana::config('site.site_name')));

		// Display news feed
		/*
		$newsfeed = new NewsFeed($this->user);
		$newsfeed->max_items = 25;
		widget::add('main', View_Mod::factory('generic/newsfeed', array('newsfeed' => $newsfeed->as_array())));
		*/

		// Shout
		$shouts = Jelly::select('shout')->limit(10)->execute();
		Widget::add('side', View_Module::factory('generic/shout', array(
			'mod_title' => __('Shouts'),
			'shouts'    => $shouts,<commit_msg>Newsfeed<commit_after><?php defined('SYSPATH') or die('No direct access allowed.');
/**
 * Index controller
 *
 * @package    Anqh
 * @author     <NAME>
 * @copyright  (c) 2010 <NAME>
 * @license    http://www.opensource.org/licenses/mit-license.php MIT license
 */
class Anqh_Controller_Index extends Controller_Template {

	/**
	 * @var  string  Index id is home
	 */
	protected $page_id = 'home';


	/**
	 * Controller default action
	 */
	public function action_index() {
		$this->page_title = __('Welcome to :site', array(':site' => Kohana::config('site.site_name')));

		// Display news feed
		$newsfeed = new NewsFeed($this->user);
		$newsfeed->max_items = 25;
		Widget::add('main', View_Module::factory('generic/newsfeed', array(
			'newsfeed' => $newsfeed->as_array()
		)));

		// Shout
		$shouts = Jelly::select('shout')->limit(10)->execute();
		Widget::add('side', View_Module::factory('generic/shout', array(
			'mod_title' => __('Shouts'),
			'shouts'    => $shouts,
{'fraction_non_alphanumeric': 0.1875637104994903, 'fraction_numerical': 0.00815494393476045, 'mean_word_length': 4.12532637075718, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '907503', 'n_tokens_mistral': 707, 'n_tokens_neox': 646, 'n_words': 136}