<commit_before><?php
/**
 * Reveal
 *
 * PHP 5
 *
 * Copyright 2013, <NAME> (http://jadb.io)
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright     Copyright 2013, <NAME> (http://jadb.io)
 * @link          http://github.com/gourmet/common
 * @since         0.1.0
 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
 */

App::uses('CommonRevealException', 'Common.Error/Exception');

/**
 * Reveal different app and/or plugin specific stuff - condition checking, version, plugin name and more.
 *
 * Makes it simpler to modify certain conditions' checking commonly used by only
 * modifying their rule and allowing to add other rules from the application or any other
 * plugin and take advantage of that functionality.
 *
 * @package       Common.Lib
 */
class Reveal {

/**
 * Parameters matchers to use with mocked instance.
 *
 * @var array
 * @see  Reveal::is()
 */
	public static $parametersMatchers = array();

/**
 * Defined rules.
 *
 * @var array
 */
	public static $rules = array(
		'App' => array(
			'online' => array(array('self', 'isOnline')),
		),
		'DebugKit' => array(
			'automated' => array(array('Configure', 'read'), 'DebugKit.autoRun'),
			'enabled' => array(array('self', '__isDebugKitEnabled')),
			'loaded' => array(array('CakePlugin', 'loaded'), 'DebugKit'),
			'requested' => array(array('self', '__isDebugKitRequested')),
			'running' => array(array('self', '__isDebugKitRunning'))
		),
		'Page' => array(
			'front' => array(array('self', '__isPageFront')),
			'login' => array(array('self', '__isPageLogin')),
			'prefixed' => array(array('self', '__isPage'), true),
			'test' => array(array('self', '__isPageTest')),
			'visitor' => array(array('self', '__isPage')),
		),
		'Sapi' => array(<commit_msg>Switch to non-static, unused as static.<commit_after><?php
/**
 * Reveal
 *
 * PHP 5
 *
 * Copyright 2013, <NAME> (http://jadb.io)
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright     Copyright 2013, <NAME> (http://jadb.io)
 * @link          http://github.com/gourmet/common
 * @since         0.1.0
 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
 */

App::uses('CommonRevealException', 'Common.Error/Exception');

/**
 * Reveal different app and/or plugin specific stuff - condition checking, version, plugin name and more.
 *
 * Makes it simpler to modify certain conditions' checking commonly used by only
 * modifying their rule and allowing to add other rules from the application or any other
 * plugin and take advantage of that functionality.
 *
 * @package       Common.Lib
 */
class Reveal {

/**
 * Parameters matchers to use with mocked instance.
 *
 * @var array
 * @see  Reveal::is()
 */
	public $parametersMatchers = array();

/**
 * Defined rules.
 *
 * @var array
 */
	public static $rules = array(
		'App' => array(
			'online' => array(array('self', 'isOnline')),
		),
		'DebugKit' => array(
			'automated' => array(array('Configure', 'read'), 'DebugKit.autoRun'),
			'enabled' => array(array('self', '__isDebugKitEnabled')),
			'loaded' => array(array('CakePlugin', 'loaded'), 'DebugKit'),
			'requested' => array(array('self', '__isDebugKitRequested')),
			'running' => array(array('self', '__isDebugKitRunning'))
		),
		'Page' => array(
			'front' => array(array('self', '__isPageFront')),
			'login' => array(array('self', '__isPageLogin')),
			'prefixed' => array(array('self', '__isPage'), true),
			'test' => array(array('self', '__isPageTest')),
			'visitor' => array(array('self', '__isPage')),
		),
		'Sapi' => array(
{'fraction_non_alphanumeric': 0.17430197885605855, 'fraction_numerical': 0.006505828137706696, 'mean_word_length': 3.9397590361445785, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 37, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4574615', 'n_tokens_mistral': 1252, 'n_tokens_neox': 1162, 'n_words': 315}