<commit_before><?php
/**
 * Fuel
 *
 * Fuel is a fast, lightweight, community driven PHP5 framework.
 *
 * @package		Fuel
 * @version		1.0
 * @author		Fuel Development Team
 * @license		MIT License
 * @copyright	2010 - 2011 Fuel Development Team
 * @link		http://fuelphp.com
 */

// Get the start time and memory for use later
defined('FUEL_START_TIME') or define('FUEL_START_TIME', microtime(true));
defined('FUEL_START_MEM') or define('FUEL_START_MEM', memory_get_usage());

define('DS', DIRECTORY_SEPARATOR);
define('CRLF', sprintf('%s%s', chr(13), chr(10)));

// save a bit of memory by unsetting the path array
unset($app_path, $package_path);

// If the user has added a base.php to their app load it

is_file(APPPATH.'base.php') and require APPPATH.'base.php';
require COREPATH.'base.php';

import('fuel');

( ! class_exists('Fuel')) and class_alias('Fuel\\Core\\Fuel', 'Fuel');

/**
 * Do we have access to mbstring?
 * We need this in order to work with UTF-8 strings
 */
define('MBSTRING', function_exists('mb_get_info'));

// Load in the Autoloader
require COREPATH.'classes'.DS.'autoloader.php';

Fuel\Core\Autoloader::add_namespace('Fuel\\Core', COREPATH.'classes/');

Fuel\Core\Autoloader::add_classes(array(
	'Fuel\\Core\\Arr'						=> COREPATH.'classes/arr.php',
	'Fuel\\Core\\Asset'						=> COREPATH.'classes/asset.php',

	'Fuel\\Core\\Cache'						=> COREPATH.'classes/cache.php',
	'Fuel\\Core\\Cache_Exception'			=> COREPATH.'classes/cache/exception.php',
	'Fuel\\Core\\Cache_Handler_Driver'		=> COREPATH.'classes/cache/handler/driver.php',
	'Fuel\\Core\\Cache_Handler_Json'		=> COREPATH.'classes/cache/handler/json.php',
	'Fuel\\Core\\Cache_Handler_Serialized'	=> COREPATH.'classes/cache/handler/serialized.php',
	'Fuel\\Core\\Cache_Handler_String'		=> COREPATH.'classes/cache/handler/string.php',
	'Fuel\\Core\\Cache_Storage_Driver'		=> COREPATH.'classes/cache/storage/driver.php',
	'Fuel\\Core\\Cache_Storage_File'		=> COREPATH.'classes/cache/storage/file.php',
	'Fuel\\Core\\Cache_Storage_Memcached'	=> COREPATH.'classes/cache/storage/memcached.php',
	'Fuel\\Core\\Cache_Storage_Redis'		=> COREPATH.'classes/cache/storage/redis.php',

	'Fuel\\Core\\Config'					=> COREPATH.'classes/config.php',
	'Fuel\\Core\\Controller'				=> COREPATH.'classes/controller.php',
	'Fuel\\Core\\Controller_Rest'			=> COREPATH.'classes/controller/rest.php',
	'Fuel\\Core\\Controller_Template'		=> COREPATH.'classes/controller/template.php',
	'Fuel\\Core\\Cookie'					=> COREPATH.'classes/cookie.php',

	'Fuel\\Core\\DB'						=> COREPATH.'classes/db.php',
	'Fuel\\Core\\DBUtil'					=> COREPATH.'classes/dbutil.php',<commit_msg>Put IS_AJAX and IS_CLI back in.<commit_after><?php
/**
 * Fuel
 *
 * Fuel is a fast, lightweight, community driven PHP5 framework.
 *
 * @package		Fuel
 * @version		1.0
 * @author		Fuel Development Team
 * @license		MIT License
 * @copyright	2010 - 2011 Fuel Development Team
 * @link		http://fuelphp.com
 */

// Get the start time and memory for use later
defined('FUEL_START_TIME') or define('FUEL_START_TIME', microtime(true));
defined('FUEL_START_MEM') or define('FUEL_START_MEM', memory_get_usage());

define('DS', DIRECTORY_SEPARATOR);
define('CRLF', sprintf('%s%s', chr(13), chr(10)));

// save a bit of memory by unsetting the path array
unset($app_path, $package_path);

// If the user has added a base.php to their app load it

is_file(APPPATH.'base.php') and require APPPATH.'base.php';
require COREPATH.'base.php';

import('fuel');

( ! class_exists('Fuel')) and class_alias('Fuel\\Core\\Fuel', 'Fuel');

/**
 * Do we have access to mbstring?
 * We need this in order to work with UTF-8 strings
 */
define('MBSTRING', function_exists('mb_get_info'));

// Is Fuel being requested via an AJAX request?
define('IS_AJAX', isset($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest');

// Is Fuel running on the command line?
define('IS_CLI', defined('STDIN'));

// Load in the Autoloader
require COREPATH.'classes'.DS.'autoloader.php';

Fuel\Core\Autoloader::add_namespace('Fuel\\Core', COREPATH.'classes/');

Fuel\Core\Autoloader::add_classes(array(
	'Fuel\\Core\\Arr'						=> COREPATH.'classes/arr.php',
	'Fuel\\Core\\Asset'						=> COREPATH.'classes/asset.php',

	'Fuel\\Core\\Cache'						=> COREPATH.'classes/cache.php',
	'Fuel\\Core\\Cache_Exception'			=> COREPATH.'classes/cache/exception.php',
	'Fuel\\Core\\Cache_Handler_Driver'		=> COREPATH.'classes/cache/handler/driver.php',
	'Fuel\\Core\\Cache_Handler_Json'		=> COREPATH.'classes/cache/handler/json.php',
	'Fuel\\Core\\Cache_Handler_Serialized'	=> COREPATH.'classes/cache/handler/serialized.php',
	'Fuel\\Core\\Cache_Handler_String'		=> COREPATH.'classes/cache/handler/string.php',
	'Fuel\\Core\\Cache_Storage_Driver'		=> COREPATH.'classes/cache/storage/driver.php',
	'Fuel\\Core\\Cache_Storage_File'		=> COREPATH.'classes/cache/storage/file.php',
	'Fuel\\Core\\Cache_Storage_Memcached'	=> COREPATH.'classes/cache/storage/memcached.php',
	'Fuel\\Core\\Cache_Storage_Redis'		=> COREPATH.'classes/cache/storage/redis.php',

	'Fuel\\Core\\Config'					=> COREPATH.'classes/config.php',
	'Fuel\\Core\\Controller'				=> COREPATH.'classes/controller.php',
	'Fuel\\Core\\Controller_Rest'			=> COREPATH.'classes/controller/rest.php',
	'Fuel\\Core\\Controller_Template'		=> COREPATH.'classes/controller/template.php',
	'Fuel\\Core\\Cookie'					=> COREPATH.'classes/cookie.php',

	'Fuel\\Core\\DB'						=> COREPATH.'classes/db.php',
	'Fuel\\Core\\DBUtil'					=> COREPATH.'classes/dbutil.php',
{'fraction_non_alphanumeric': 0.17890738060781475, 'fraction_numerical': 0.005788712011577424, 'mean_word_length': 4.474257425742574, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 41, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 1}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5684206', 'n_tokens_mistral': 2086, 'n_tokens_neox': 1978, 'n_words': 331}