<commit_before><?php

namespace Dashboard;

class Controller_Dashboard extends \Controller_Secure {
	
	public function before() {
		$this->public_content = true;
		parent::before();
	}
	
	function action_index() {	
		if($this->public_request) {
			$this->template->title = __('dashboard.title');
			$this->template->content = \View::forge('public/index');
		} else {
			$widgets = new \Data();
			\Event::trigger('gather_widgets', $widgets);
			$data = array();
			$data['widgets'] = $widgets->get_items();
			$this->template->title = __('dashboard.title');
			$this->template->content = \View::forge('index', $data);
		}
	}
}<commit_msg>Redirect public dash to login form<commit_after><?php

namespace Dashboard;

class Controller_Dashboard extends \Controller_Secure {
	
	public function before() {
		$this->public_content = true;
		parent::before();
	}
	
	function action_index() {	
		if($this->public_request) {	
			\Response::redirect('gate/login');
			//$this->template->title = __('dashboard.title');
			//$this->template->content = \View::forge('public/index');
		} else {
			$widgets = new \Data();
			\Event::trigger('gather_widgets', $widgets);
			$data = array();
			$data['widgets'] = $widgets->get_items();
			$this->template->title = __('dashboard.title');
			$this->template->content = \View::forge('index', $data);
		}
	}
}
{'fraction_non_alphanumeric': 0.1947761194029851, 'fraction_numerical': 0.0, 'mean_word_length': 4.385542168674699, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 25, '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': '7587649', 'n_tokens_mistral': 488, 'n_tokens_neox': 430, 'n_words': 76}