<commit_before>#include "HelpWindow.h"

void HelpWindow::OnWindowRefreshed()
{
	WORD colour = FOREGROUND_INTENSITY | BACKGROUND_GREEN;
	s_consoleBuffer->DrawWindow(m_x, m_y, m_width, m_height, colour);
}

void HelpWindow::OnWindowResized(int width, int height)
{
    int newWidth = (int)(width * 0.8f);<commit_msg>Draw colours in help window.<commit_after>#include "HelpWindow.h"

void HelpWindow::OnWindowRefreshed()
{
	WORD colour = FOREGROUND_INTENSITY | BACKGROUND_GREEN;
	s_consoleBuffer->DrawWindow(m_x, m_y, m_width, m_height, colour);

	s_consoleBuffer->Write(m_x + 10, m_y + 8, FOREGROUND_INTENSITY | FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE | BACKGROUND_GREEN, "Foreground");
	s_consoleBuffer->Write(m_x + 30, m_y + 8, FOREGROUND_INTENSITY | FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE | BACKGROUND_GREEN, "Background");
	for (int i = 0; i < 16; i++)
	{
		int x = (m_x + 10) + ((i >> 3) * 10);
		int y = m_y + 10 + (i & 7);
		s_consoleBuffer->Write(x, y, i, "%c%c%c%c%c%c%c%c", 219, 219, 219, 219, 219, 219, 219, 219);

		s_consoleBuffer->Write(x + 20, y, i << 4, "        ");
	}
}

void HelpWindow::OnWindowResized(int width, int height)
{
    int newWidth = (int)(width * 0.8f);
{'fraction_non_alphanumeric': 0.1488833746898263, 'fraction_numerical': 0.03970223325062035, 'mean_word_length': 5.173469387755102, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 11, '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': '7519074', 'n_tokens_mistral': 548, 'n_tokens_neox': 473, 'n_words': 104}