<commit_before><?php

/*
*  class:       Website_Controller
*  description: Provides basic setup for all application controllers
*/
abstract class Website_Controller extends Template_Controller {

	public function __construct()
	{
		parent::__construct();

		$this->auth = new Auth;

		if (request::is_ajax())
		{
			$this->template = new View('blank');
		}
		else
		{
			$this->template->title = 'ArgentumInvoice';
			$this->profiler = new Profiler;
		}

		$this->session = new Session;
	}
}<commit_msg>Added: disable profiler when in production env<commit_after><?php

/*
*  class:       Website_Controller
*  description: Provides basic setup for all application controllers
*/
abstract class Website_Controller extends Template_Controller {

	public function __construct()
	{
		parent::__construct();

		$this->auth = new Auth;

		if (request::is_ajax())
		{
			$this->template = new View('blank');
		}
		else
		{
			$this->template->title = 'ArgentumInvoice';
			
			if (IN_PRODUCTION === FALSE)
			{
				$this->profiler = new Profiler;
			}
		}

		$this->session = new Session;
	}
}
{'fraction_non_alphanumeric': 0.13051470588235295, 'fraction_numerical': 0.0, 'mean_word_length': 3.6340425531914895, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '6014554', 'n_tokens_mistral': 386, 'n_tokens_neox': 339, 'n_words': 83}