<commit_before><?php
/**
 * Provides a class for invoking a controller.
 * 
 * @author    MadnessFreak <<EMAIL>>
 * @copyright 2014 MadnessFreak
 * @package   Matavior
 */
class Invoker {
	/**
	 * Invokes the specified controller.
	 *
	 * @param	string	name
	 */
	public static function invoke($name) {
		// create controller name
		$className = ucfirst($name) . 'Controller';
		$path = Utility::unidir(SYS_DIR . 'Controller/' . $className . '.php');
		
		// try invoke
		if (file_exists($path)) {
			$controller = new $className();
			$controller->init();
		} else {
			if (Mata::debugModeIsEnabled()) echo "Invoking $name failed. Could not find $path.<br>";
		}
	}
}<commit_msg>Update Invoker.php<commit_after><?php
/**
 * Provides a class for invoking a controller.
 * 
 * @author    MadnessFreak <<EMAIL>>
 * @copyright 2014 MadnessFreak
 * @package   Matavior
 */
class Invoker {
	/**
	 * Invokes the specified controller.
	 *
	 * @param	string	name
	 */
	public static function invoke($name) {
		// create controller name
		$className = ucfirst($name) . 'Controller';
		$path = Utility::unidir(SYS_DIR . 'Controller/' . $className . '.php');

		// try invoke
		if (file_exists($path)) {
			$controller = new $className();
			$controller->init();
		} else {
			throw new NotFoundException("Invoking $name failed. Could not find $path.");
		}
	}
}
{'fraction_non_alphanumeric': 0.153219837157661, 'fraction_numerical': 0.005921539600296077, 'mean_word_length': 3.361290322580645, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, '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': '7102104', 'n_tokens_mistral': 475, 'n_tokens_neox': 421, 'n_words': 118}