<commit_before>#include "Utility.h"

// Changes the color in which the console text is beeing displayed.
void ChangeColor(Color color)
{
#ifdef _WIN32
	HANDLE Handle = GetStdHandle(STD_OUTPUT_HANDLE);
	SetConsoleTextAttribute(Handle, (int)color);
#else
	char colorCode = (char)color;
	bool bright = false;
	std::string escapeCode("\x1B[");

	if (colorCode > 7)
	{
		colorCode -= 8;
		bright = true;
	}
	escapeCode += std::to_string(30 + colorCode);
	if (bright) escapeCode += ";1";
	escapeCode += "m";

	std::cout << escapeCode;
#endif
}


// Prints a standardized error message.
void PrintError(std::string error)<commit_msg>Fixed depiction of light colors on Ubuntu.<commit_after>#include "Utility.h"

// Changes the color in which the console text is beeing displayed.
void ChangeColor(Color color)
{
#ifdef _WIN32
	HANDLE Handle = GetStdHandle(STD_OUTPUT_HANDLE);
	SetConsoleTextAttribute(Handle, (int)color);
#else
	char colorCode = (char)color;
	bool bright = false;
	std::string escapeCode("\x1B[");

	if (colorCode > 7)
	{
		colorCode -= 8;
		bright = true;
	}
	escapeCode += std::to_string(30 + colorCode);
	escapeCode += "m";

	if (bright)
	{
		escapeCode += "\x1B[1m";
	}
	else
	{
		escapeCode += "\x1B[2m";
	}

	std::cout << escapeCode;
#endif
}


// Prints a standardized error message.
void PrintError(std::string error)
{'fraction_non_alphanumeric': 0.13718140929535233, 'fraction_numerical': 0.01424287856071964, 'mean_word_length': 4.609243697478991, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '6381143', 'n_tokens_mistral': 491, 'n_tokens_neox': 458, 'n_words': 126}