<commit_before><?php defined('SYSPATH') or die('No direct script access.');

abstract class Controller_Site extends Controller_Template {

	public $template = 'default/template';
	
	public $session;
	
	public $errors;
	
	public $form_error;
	
	public $messages;
	
	public function before() 
	{
		parent::before();

		$this->session = Session::instance('database');
		
		$this->errors = $this->session->get('errors');
		if ($this->errors) {
			$this->session->delete('errors');
			$this->session->write();
		}
		
		$this->form_error = $this->session->get('form_error');
		if ($this->form_error) {
			$this->session->delete('form_error');
			$this->session->write();
		}
		
		$this->messages = $this->session->get('messages');
		if ($this->messages) {
			$this->session->delete('messages');
			$this->session->write();
		}
		
		$this->template->messages = $this->messages;
		$this->template->form_error = $this->form_error;
		
		if ($this->auto_render)	
		{
			// Initialize empty values
			$this->template->title   = '';
			$this->template->description = 'JDStraughan is a web developer, author, and consultant living in San Antonio, Texas.';
			$this->template->content = '';
			$this->template->right_column = '';
			$this->template->styles = array(
				'media/css/reset.css',
				'media/css/base.css',
				'media/css/shCore.css',
				'media/css/shThemeDefault.css'
			);
			$this->template->scripts = array(
				'media/js/jquery-1.4.2.min.js',
				'media/js/jquery.ui.core.js',
				'media/js/jquery-ui-1.8.2.custom.min.js',<commit_msg>Update default description<commit_after><?php defined('SYSPATH') or die('No direct script access.');

abstract class Controller_Site extends Controller_Template {

	public $template = 'default/template';
	
	public $session;
	
	public $errors;
	
	public $form_error;
	
	public $messages;
	
	public function before() 
	{
		parent::before();

		$this->session = Session::instance('database');
		
		$this->errors = $this->session->get('errors');
		if ($this->errors) {
			$this->session->delete('errors');
			$this->session->write();
		}
		
		$this->form_error = $this->session->get('form_error');
		if ($this->form_error) {
			$this->session->delete('form_error');
			$this->session->write();
		}
		
		$this->messages = $this->session->get('messages');
		if ($this->messages) {
			$this->session->delete('messages');
			$this->session->write();
		}
		
		$this->template->messages = $this->messages;
		$this->template->form_error = $this->form_error;
		
		if ($this->auto_render)	
		{
			// Initialize empty values
			$this->template->title   = '';
			$this->template->description = '<NAME> is a web developer, author, and consultant living in San Antonio, Texas. Specializing in LAMP development, PHP, and the Kohana framework.';
			$this->template->content = '';
			$this->template->right_column = '';
			$this->template->styles = array(
				'media/css/reset.css',
				'media/css/base.css',
				'media/css/shCore.css',
				'media/css/shThemeDefault.css'
			);
			$this->template->scripts = array(
				'media/js/jquery-1.4.2.min.js',
				'media/js/jquery.ui.core.js',
				'media/js/jquery-ui-1.8.2.custom.min.js',
{'fraction_non_alphanumeric': 0.19415316174134095, 'fraction_numerical': 0.0038131553860819827, 'mean_word_length': 3.6637037037037037, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 92, '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': '2124556', 'n_tokens_mistral': 1196, 'n_tokens_neox': 1013, 'n_words': 178}