<commit_before><?php
	namespace Bolt;

	use Bolt\Interfaces\Connection;

	abstract class Job extends Base
	{
		protected $connection;

		public $type = null;
		public $data = array();
		public $receipt = null;

		public function __construct(Connection $connection = null)
		{
			$this->connection = $connection;
		}

		abstract public function execute($data = null);

		protected function output($message, $type = null)
		{
			switch ($type)
			{
				case "system":
					$colour = Job\Output::SYSTEM;
					break;
				case "job":
					$colour = Job\Output::JOB;
					break;
				case "error":
					$colour = Job\Output::ERROR;
					break;
				default:
					$colour = Job\Output::DEFAULT;
					break;
			}

			echo(sprintf("- %s(%s) %s \033[0m \n", $colour, date("c"), $message));
		}
	}
?><commit_msg>Use new colours enum in output<commit_after><?php
	namespace Bolt;

	use Bolt\Interfaces\Connection;
	use Bolt\Job\Colours;

	abstract class Job extends Base
	{
		protected $connection;

		public $type = null;
		public $data = array();
		public $receipt = null;

		public function __construct(Connection $connection = null)
		{
			$this->connection = $connection;
		}

		abstract public function execute($data = null);

		protected function output($message, $type = null)
		{
			switch ($type)
			{
				case "system":
					$colour = Colours::SYSTEM;
					break;
				case "job":
					$colour = Colours::JOB;
					break;
				case "error":
					$colour = Colours::ERROR;
					break;
				default:
					$colour = Colours::DEFAULT;
					break;
			}

			echo(sprintf("- %s(%s) %s \033[0m \n", $colour, date("c"), $message));
		}
	}
?>
{'fraction_non_alphanumeric': 0.14575645756457564, 'fraction_numerical': 0.004920049200492005, 'mean_word_length': 2.97799511002445, 'pattern_counts': {'":': 6, '<': 5, '<?xml version=': 0, '>': 7, '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': '854949', 'n_tokens_mistral': 687, 'n_tokens_neox': 532, 'n_words': 141}