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

if(!defined('ROOT_PATH'))
	define('ROOT_PATH', './');

/**
 * OpenFlame Web Framework - Main class
 * 	     Contains the static objects that power the framework
 *
 *
 * @author      <NAME> ("Obsidian")
 * @license     http://opensource.org/licenses/mit-license.php The MIT License
 * @link        http://github.com/OpenFlame/OpenFlame-Framework
 */
class Of
{
	// @todo phpdocs
	protected $config = array();
	protected $objects = array();

	public static function loadConfigFile($filename)
	{
		// load the config filename
		// @todo use json file?  use php file and include?
	}

	public static function config($config_name)
	{
		// pull the config we want
	}

	public static function loader($class)
	{
		// code to autoload a file based on class name
	}

	public static function storeObject($slot, $object)
	{
		// store one of the OpenFlame Framework objects...
	}

	public static function getObject($slot)
	{
		// get one of the OpenFlame Framework objects...
	}

	// alias of Of::getObject()
	public static function obj($slot)
	{
		self::getObject($slot);
	}
}<commit_msg>commit some docs and a little more code for the Of class<commit_after><?php
/**
 *
 * @package     OpenFlame Web Framework
 * @copyright   (c) 2010 OpenFlameCMS.com
 * @license     http://opensource.org/licenses/mit-license.php The MIT License
 * @link        http://github.com/OpenFlame/OpenFlame-Framework
 *
 * Minimum Requirement: PHP 5.0.0
 */

if(!defined('ROOT_PATH'))
	define('ROOT_PATH', './');

/**
 * OpenFlame Web Framework - Main class
 * 	     Contains the static objects that power the framework
 *
 *
 * @author      <NAME> ("Obsidian")
 * @license     http://opensource.org/licenses/mit-license.php The MIT License
 * @link        http://github.com/OpenFlame/OpenFlame-Framework
 *
 * @note        This class should not be instantiated; it should only be statically accessed.
 */
class Of
{
	/**
	 * @var array - Array of settings we have loaded and stored
	 */
	protected static $config = array();

	/**
	 * @var array - Array of objects we have instantiated and stored
	 */
	protected static $objects = array();

	/**
	 * Loads an array of settings into the config array.
	 * @param array $config_ary - The array of settings to load
	 * @return void
	 */
	public static function loadConfig(array $config_ary)
	{
		// note: this method can easily be used to load from a JSON config file as well!
		// Of::loadConfig(OfJSON::decode('./path_to_json/config.json'));
		self::$config = array_merge(self::$config, $config_ary);
	}

	/**
	 * Grab a setting from the config array
	 * @param string $config_name - The name of the setting to retrieve
	 * @return mixed - The setting's value if the setting exists, or NULL if the setting does not exist
	 */
	public static function config($config_name)
	{
		if(!isset(self::$config[$config_name]))
			return NULL;
		return self::$config[$config_name];
	}

	public static function loader($class)
	{
		// code to autoload a file based on class name
	}

	public static function storeObject($slot, $object)
	{
		// store one of the OpenFlame Framework objects...
	}

	public static function getObject($slot)
	{
		// get one of the OpenFlame Framework objects...
	}

	/**
	 * Alias of self::getObject() for quick coding purposes
	 * @see Of::getObject()
	 */
	public static function obj($slot)
	{
		self::getObject($slot);
	}
}
{'fraction_non_alphanumeric': 0.12352780060257464, 'fraction_numerical': 0.003834565872363736, 'mean_word_length': 3.2663551401869158, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '1393445', 'n_tokens_mistral': 1167, 'n_tokens_neox': 1091, 'n_words': 362}