<commit_before><?php
/**
 *
 * @package     OpenFlame Web Framework
 * @copyright   (c) 2010 OpenFlameCMS.com
 * @license     http://opensource.org/licenses/mit-license.php The MIT License
 * @link        https://github.com/OpenFlame/OpenFlame-Framework
 *
 * Minimum Requirement: PHP 5.3.0
 */

namespace OpenFlame\Framework;

if(!defined('OpenFlame\\Framework\\ROOT_PATH')) exit;

/**
 * OpenFlame Web Framework - Autoloader object
 * 	     Provides just-in-time class autoloading functionality.
 *
 *
 * @license     http://opensource.org/licenses/mit-license.php The MIT License
 * @link        https://github.com/OpenFlame/OpenFlame-Framework
 */
class Autoloader
{
	/**
	 * @var string - The path that the autoloader will attempt to load files from.
	 */
	private $include_path = '';

	/**
	 * Constructor
	 * @return void
	 */
	protected function __construct()
	{
		// Unless PHAR packaging mode is enabled, we want to grab straight from the src/ folder.
		if(!defined('OpenFlame\\Framework\\USE_PHAR'))
		{
			$this->include_path  = 'phar://' . OpenFlame\Framework\PHAR_PATH;
		}
		else
		{
			$this->include_path = OpenFlame\Framework\ROOT_PATH . '/src';
		}
	}

	/**
	 * Autoload callback for loading class files.
	 * @param string $class - Class to load
	 * @return void
	 */<commit_msg>Modify the autoloader slightly, to force trailing slashes.<commit_after><?php
/**
 *
 * @package     OpenFlame Web Framework
 * @copyright   (c) 2010 OpenFlameCMS.com
 * @license     http://opensource.org/licenses/mit-license.php The MIT License
 * @link        https://github.com/OpenFlame/OpenFlame-Framework
 *
 * Minimum Requirement: PHP 5.3.0
 */

namespace OpenFlame\Framework;

if(!defined('OpenFlame\\Framework\\ROOT_PATH')) exit;

/**
 * OpenFlame Web Framework - Autoloader object
 * 	     Provides just-in-time class autoloading functionality.
 *
 *
 * @license     http://opensource.org/licenses/mit-license.php The MIT License
 * @link        https://github.com/OpenFlame/OpenFlame-Framework
 */
class Autoloader
{
	/**
	 * @var string - The path that the autoloader will attempt to load files from.
	 */
	private $include_path = '';

	/**
	 * Constructor
	 * @return void
	 */
	protected function __construct()
	{
		// Unless PHAR packaging mode is enabled, we want to grab straight from the src/ folder.
		if(!defined('OpenFlame\\Framework\\USE_PHAR'))
		{
			$this->include_path  = 'phar://' . OpenFlame\Framework\PHAR_PATH;
		}
		else
		{
			$this->include_path = OpenFlame\Framework\ROOT_PATH . '/src';
		}

		$this->include_path = rtrim($this->include_path, '/') . '/';
	}

	/**
	 * Autoload callback for loading class files.
	 * @param string $class - Class to load
	 * @return void
	 */
{'fraction_non_alphanumeric': 0.1345656192236599, 'fraction_numerical': 0.005175600739371534, 'mean_word_length': 3.1187214611872145, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 4, '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': '1732467', 'n_tokens_mistral': 923, 'n_tokens_neox': 858, 'n_words': 211}