<commit_before>namespace Mirb
{
	namespace Platform
	{
		class BenchmarkResult
		{
			public:
				LARGE_INTEGER time, freq;

				std::string format();
		};
		
		template<Color input> void color(const CharArray &string)
		{
			WORD flags;
			
			HANDLE console = GetStdHandle(STD_ERROR_HANDLE);

			CONSOLE_SCREEN_BUFFER_INFO info;
			
			GetConsoleScreenBufferInfo(console, &info);
			
			switch(input)
			{
				case Red:
					flags = FOREGROUND_RED;
					break;
					
				case Green:
					flags = FOREGROUND_GREEN;
					break;
					
				case Gray:
					flags = FOREGROUND_INTENSITY;
					break;

				default:
					func();
					return;
			};

			SetConsoleTextAttribute(console, flags | (info.wAttributes & ~(FOREGROUND_BLUE | FOREGROUND_GREEN | FOREGROUND_RED | FOREGROUND_INTENSITY)));
			
			std::cerr << std::flush << string.get_string();

			SetConsoleTextAttribute(console, info.wAttributes);
			
			std::cerr << std::flush;
		};

		template<typename T> BenchmarkResult benchmark(T work)
		{
			BenchmarkResult result;<commit_msg>Fixed an error.<commit_after>namespace Mirb
{
	namespace Platform
	{
		class BenchmarkResult
		{
			public:
				LARGE_INTEGER time, freq;

				std::string format();
		};
		
		template<Color input> void color(const CharArray &string)
		{
			WORD flags;
			
			HANDLE console = GetStdHandle(STD_ERROR_HANDLE);

			CONSOLE_SCREEN_BUFFER_INFO info;
			
			GetConsoleScreenBufferInfo(console, &info);
			
			switch(input)
			{
				case Red:
					flags = FOREGROUND_RED;
					break;
					
				case Green:
					flags = FOREGROUND_GREEN;
					break;
					
				case Gray:
					flags = FOREGROUND_INTENSITY;
					break;

				default:
					std::cerr << string.get_string();
					return;
			};

			SetConsoleTextAttribute(console, flags | (info.wAttributes & ~(FOREGROUND_BLUE | FOREGROUND_GREEN | FOREGROUND_RED | FOREGROUND_INTENSITY)));
			
			std::cerr << std::flush << string.get_string();

			SetConsoleTextAttribute(console, info.wAttributes);
			
			std::cerr << std::flush;
		};

		template<typename T> BenchmarkResult benchmark(T work)
		{
			BenchmarkResult result;
{'fraction_non_alphanumeric': 0.1, 'fraction_numerical': 0.0, 'mean_word_length': 3.111545988258317, 'pattern_counts': {'":': 0, '<': 21, '<?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': '2608266', 'n_tokens_mistral': 932, 'n_tokens_neox': 672, 'n_words': 136}