<commit_before><?php

class MvcShell {

	protected $core_path = '';
	protected $app_path = '';
	protected $file_includer = null;

	function __construct($args=array()) {
	
		$this->core_path = MVC_CORE_PATH;
		$this->app_path = MVC_APP_PATH;
		$this->file_includer = new MvcFileIncluder();
	
		$this->init($args);
	
	}
	
	// This can be overwritten by descendant classes to add custom functionality during shell initialization
	protected function init($args) {
	
	}

	public function main($args) {
		echo 'To handle commands without any arguments, please define a main() method in the shell.';
	}
	
	public function out($string) {
		echo $string."\n";
	}
	
	protected function load_helper($helper_name) {
		$helper_name = $helper_name.'Helper';
		$helper_underscore = Inflector::underscore($helper_name);
		
		$this->file_includer->require_app_or_core_file('helpers/'.$helper_underscore.'.php');
		
		if (class_exists($helper_name)) {
			$helper_method_name = str_replace('_helper', '', $helper_underscore);
		
			$this->{$helper_method_name} = new $helper_name();
		}
	}
	
	protected function load_model($model_name) {
		$model_underscore = Inflector::underscore($model_name);<commit_msg>Using out() instead of echo for MvcShell::main()'s message<commit_after><?php

class MvcShell {

	protected $core_path = '';
	protected $app_path = '';
	protected $file_includer = null;

	function __construct($args=array()) {
	
		$this->core_path = MVC_CORE_PATH;
		$this->app_path = MVC_APP_PATH;
		$this->file_includer = new MvcFileIncluder();
	
		$this->init($args);
	
	}
	
	// This can be overwritten by descendant classes to add custom functionality during shell initialization
	protected function init($args) {
	
	}

	public function main($args) {
		$this->out('To handle commands without any arguments, please define a main() method in the shell.');
	}
	
	public function out($string) {
		echo $string."\n";
	}
	
	protected function load_helper($helper_name) {
		$helper_name = $helper_name.'Helper';
		$helper_underscore = Inflector::underscore($helper_name);
		
		$this->file_includer->require_app_or_core_file('helpers/'.$helper_underscore.'.php');
		
		if (class_exists($helper_name)) {
			$helper_method_name = str_replace('_helper', '', $helper_underscore);
		
			$this->{$helper_method_name} = new $helper_name();
		}
	}
	
	protected function load_model($model_name) {
		$model_underscore = Inflector::underscore($model_name);
{'fraction_non_alphanumeric': 0.13673805601317957, 'fraction_numerical': 0.0, 'mean_word_length': 4.953431372549019, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 18, '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': '3795867', 'n_tokens_mistral': 870, 'n_tokens_neox': 780, 'n_words': 167}