<commit_before><?php
/**
 * Habari Options Class
 *
 * Requires PHP 5.0.4 or later
 * @package Habari
 */
 
class Options
{
 	const table = 'habari__options';
    static $options;
	
	/**
	 * constructor __construct
	 **/	 	
	public function __construct() 
	{
	}

	/**
	* function o
	* returns the value of an option
	* @param string an option name
	* @return mixed the value of the named option
	*/
	public static function o()
	{
		if (!isset(self::$options))
		{
			$c = __CLASS__;
			self::$options = new $c;
		}

		return self::$options;
	}

	/**
	* function e
	* echoes the value of an option
	* @param string the name of an option
	*/
	public static function e( $option = null )
	{
		echo self::o()->$option;
	}

	/**<commit_msg>Correct the documentation to reflect what the function actually does.<commit_after><?php
/**
 * Habari Options Class
 *
 * Requires PHP 5.0.4 or later
 * @package Habari
 */
 
class Options
{
 	const table = 'habari__options';
    static $options;
	
	/**
	 * constructor __construct
	 **/	 	
	public function __construct() 
	{
	}

	/**
	* function o
	* returns a singleton instance of the Options class. Use this to
	* retrieve values of options, like this:
	*
	* <code>
	* $foo = Options::o()->foo;
	* </code>
	*
	* @param string an option name
	* @return object Singleton Options object
	*/
	public static function o()
	{
		if (!isset(self::$options))
		{
			$c = __CLASS__;
			self::$options = new $c;
		}

		return self::$options;
	}

	/**
	* function e
	* echoes the value of an option
	* @param string the name of an option
	*/
	public static function e( $option = null )
	{
		echo self::o()->$option;
	}

	/**
{'fraction_non_alphanumeric': 0.13454545454545455, 'fraction_numerical': 0.0036363636363636364, 'mean_word_length': 2.9216152019002375, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 8, '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': '343767', 'n_tokens_mistral': 595, 'n_tokens_neox': 554, 'n_words': 181}