<commit_before><?php
/**
 * Fuel Queue
 *
 * @package 	Fuel
 * @subpackage	Queue
 * @version		1.0
 * @author 		<NAME> <<EMAIL>>
 * @license 	MIT License
 * @link 		https://github.com/indigo-soft
 */

Config::load('queue', true);

Autoloader::add_core_namespace('Queue');

Autoloader::add_classes(array(
	'Queue\\Queue'          => __DIR__ . '/classes/queue.php',
	'Queue\\Queue_Driver'   => __DIR__ . '/classes/queue/driver.php',
	'Queue\\QueueException' => __DIR__ . '/classes/queue.php',

	'Queue\\Worker'          => __DIR__ . '/classes/worker.php',
	'Queue\\Worker_Driver'   => __DIR__ . '/classes/worker/driver.php',
	'Queue\\WorkerException' => __DIR__ . '/classes/worker.php',


	'Queue\\Queue_Direct' => __DIR__ . '/classes/queue/direct.php',

	'Queue\\Queue_Resque'  => __DIR__ . '/classes/queue/resque.php',
	'Queue\\Worker_Resque' => __DIR__ . '/classes/worker/resque.php',

	'Queue\\Queue_Beanstalkd'  => __DIR__ . '/classes/queue/beanstalkd.php',
	'Queue\\Worker_Beanstalkd' => __DIR__ . '/classes/worker/beanstalkd.php',
));

if (\Fuel::$is_cli)
{
	$event = \Event::instance('queue');

	$event->register('resque_init', function(){
		if (class_exists('\\Resque_Event'))
		{
			\Resque_Event::listen('onFailure', function($job) {
				if ($job instanceof \Resque_Job)
				{
					$instance = $job->getInstance();
					if (is_callable(array($instance, 'onFailure')))
					{
						$instance->onFailure();
					}
				}
			});
		}
	});
}<commit_msg>Bootstrap indentation<commit_after><?php
/**
 * Fuel Queue
 *
 * @package 	Fuel
 * @subpackage	Queue
 * @version		1.0
 * @author 		<NAME> <<EMAIL>>
 * @license 	MIT License
 * @link 		https://github.com/indigo-soft
 */

Config::load('queue', true);

Autoloader::add_core_namespace('Queue');

Autoloader::add_classes(array(
	'Queue\\Queue'             => __DIR__ . '/classes/queue.php',
	'Queue\\Queue_Driver'      => __DIR__ . '/classes/queue/driver.php',
	'Queue\\QueueException'    => __DIR__ . '/classes/queue.php',

	'Queue\\Worker'            => __DIR__ . '/classes/worker.php',
	'Queue\\Worker_Driver'     => __DIR__ . '/classes/worker/driver.php',
	'Queue\\WorkerException'   => __DIR__ . '/classes/worker.php',


	'Queue\\Queue_Direct'      => __DIR__ . '/classes/queue/direct.php',

	'Queue\\Queue_Resque'      => __DIR__ . '/classes/queue/resque.php',
	'Queue\\Worker_Resque'     => __DIR__ . '/classes/worker/resque.php',

	'Queue\\Queue_Beanstalkd'  => __DIR__ . '/classes/queue/beanstalkd.php',
	'Queue\\Worker_Beanstalkd' => __DIR__ . '/classes/worker/beanstalkd.php',
));

if (\Fuel::$is_cli)
{
	$event = \Event::instance('queue');

	$event->register('resque_init', function(){
		if (class_exists('\\Resque_Event'))
		{
			\Resque_Event::listen('onFailure', function($e, $job) {
				if ($job instanceof \Resque_Job)
				{
					$instance = $job->getInstance();
					$instance->failure($e);
				}
			});
		}
	});
}
{'fraction_non_alphanumeric': 0.20229007633587787, 'fraction_numerical': 0.0013879250520471894, 'mean_word_length': 3.394817073170732, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 37, 'https://': 2, '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': '291318', 'n_tokens_mistral': 1121, 'n_tokens_neox': 1036, 'n_words': 147}