<commit_before><?php

// 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());

// This is purely for ease of use, creating an alias of DS
define('DS', DIRECTORY_SEPARATOR);

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

// Determine the app path
if ( ! is_dir($app_path) and is_dir(DOCROOT.$app_path))
{
	$app_path = DOCROOT.$app_path;
}

// Determine the package path
if ( ! is_dir($package_path) and is_dir(DOCROOT.$package_path))
{
	$package_path = DOCROOT.$package_path;
}

// Define the global path constants
define('APPPATH', realpath($app_path).DS);
define('PKGPATH', realpath($package_path).DS);
define('COREPATH', realpath(dirname(__FILE__)).DS);

// 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
if (is_file(APPPATH.'base.php'))
{
	require APPPATH.'base.php';
}

// Load in the core functions that are available app wide
require COREPATH.'base.php';


/**
 * Load in the autoloader class then register any app and core autoloaders.
 */
require COREPATH.'classes'.DS.'autoloader.php';

if (is_file(APPPATH.'autoload.php'))
{
	$autoloaders['app'] = require APPPATH.'autoload.php';
}
$autoloaders['core'] = require COREPATH.'autoload.php';


// Load in the core class
require COREPATH.'classes'.DS.'fuel'.DS.'core.php';

// If the Fuel class is overrided in the application folder
// load that, else load the core class.
if (is_file(APPPATH.'classes'.DS.'fuel.php'))
{
	require APPPATH.'classes'.DS.'fuel.php';
}
else
{
	require COREPATH.'classes'.DS.'fuel.php';
}

// Initialize the framework
// and start buffering the output.
Fuel::init($autoloaders);<commit_msg>As the Autoload class prepends the autoloader now, the APP loader should be loaded after the core loader.<commit_after><?php

// 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());

// This is purely for ease of use, creating an alias of DS
define('DS', DIRECTORY_SEPARATOR);

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

// Determine the app path
if ( ! is_dir($app_path) and is_dir(DOCROOT.$app_path))
{
	$app_path = DOCROOT.$app_path;
}

// Determine the package path
if ( ! is_dir($package_path) and is_dir(DOCROOT.$package_path))
{
	$package_path = DOCROOT.$package_path;
}

// Define the global path constants
define('APPPATH', realpath($app_path).DS);
define('PKGPATH', realpath($package_path).DS);
define('COREPATH', realpath(dirname(__FILE__)).DS);

// 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
if (is_file(APPPATH.'base.php'))
{
	require APPPATH.'base.php';
}

// Load in the core functions that are available app wide
require COREPATH.'base.php';


/**
 * Load in the autoloader class then register any app and core autoloaders.
 */
require COREPATH.'classes'.DS.'autoloader.php';

$autoloaders['core'] = require COREPATH.'autoload.php';
if (is_file(APPPATH.'autoload.php'))
{
	$autoloaders['app'] = require APPPATH.'autoload.php';
}


// Load in the core class
require COREPATH.'classes'.DS.'fuel'.DS.'core.php';

// If the Fuel class is overrided in the application folder
// load that, else load the core class.
if (is_file(APPPATH.'classes'.DS.'fuel.php'))
{
	require APPPATH.'classes'.DS.'fuel.php';
}
else
{
	require COREPATH.'classes'.DS.'fuel.php';
}

// Initialize the framework
// and start buffering the output.
Fuel::init($autoloaders);
{'fraction_non_alphanumeric': 0.14227226202661208, 'fraction_numerical': 0.0005117707267144319, 'mean_word_length': 4.84304932735426, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '5470999', 'n_tokens_mistral': 1347, 'n_tokens_neox': 1314, 'n_words': 382}