<commit_before>
#include "CWindow.h"

#include <GL/glew.h>
#include <GLFW/glfw3.h>


void CWindow::MakeContextCurrent()
{
	glfwMakeContextCurrent(WindowHandle);
}

CWindow::CWindow(GLFWwindow * windowHandle)
	: WindowHandle(windowHandle),
	IsKeyDown(KeyStates), MouseLocation(MousePositionState), IsMouseDown(MouseStates)
{
	for (unsigned int i = 0; i < (int) EKey::Count; ++ i)
        KeyStates[i] = false;

    for (unsigned int i = 0; i < (int) SMouseEvent::EButton::Count; ++ i)
        MouseStates[i] = false;
}
<commit_msg>+ Wired up window to events<commit_after>
#include "CWindow.h"

#include <GL/glew.h>
#include <GLFW/glfw3.h>


void CWindow::MakeContextCurrent()
{
	glfwMakeContextCurrent(WindowHandle);
}

CWindow::CWindow(GLFWwindow * windowHandle)
	: WindowHandle(windowHandle),
	IsKeyDown(KeyStates), MouseLocation(MousePositionState), IsMouseDown(MouseStates)
{
	for (unsigned int i = 0; i < (int) EKey::Count; ++ i)
        KeyStates[i] = false;

    for (unsigned int i = 0; i < (int) SMouseEvent::EButton::Count; ++ i)
        MouseStates[i] = false;
	
	KeyboardEvent.AddTrigger(SEvent<SKeyboardEvent>::ITrigger::shared_from_this());
	MouseEvent.AddTrigger(SEvent<SMouseEvent>::ITrigger::shared_from_this());
	WindowResizedEvent.AddTrigger(SEvent<SWindowResizedEvent>::ITrigger::shared_from_this());
}

{'fraction_non_alphanumeric': 0.1422319474835886, 'fraction_numerical': 0.00437636761487965, 'mean_word_length': 4.789029535864979, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 10, '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': '4187826', 'n_tokens_mistral': 485, 'n_tokens_neox': 479, 'n_words': 84}