<commit_before>#include <engine/Core.hpp>
#include <iostream>

#include <engine/Screen.hpp>

using namespace std;

int main(int /*argc*/, char* /*argv*/[])
{
	Core::create();

	try
	{
		Screen wnd(ivec2(960, 640), "GoblinEngine Example");
	}
	catch(exception& e)
	{
		cerr << "Exception caught : " << e.what() << endl;
	}

	Core::destroy();
	return 0;
}
<commit_msg>Added a simple example Screen but the app closes unexpectedly (with exit code 0???) before running the "ex->visible(true)"<commit_after>#include <engine/Core.hpp>
#include <iostream>

#include <engine/Screen.hpp>

using namespace std;

class ExampleScreen : public Screen
{
public:
	ExampleScreen() : Screen(ivec2(960, 640), "GoblinEngine Example")
	{ }

	virtual ~ExampleScreen()
	{ }


	virtual bool keyboard_event(Key code, int, Action action, int) override
	{
		if(code == Key::Escape && action == Action::Press)
		{
			should_close(true);
			return true;
		}

		return false;
	}
};

int main(int /*argc*/, char* /*argv*/[])
{
	Core::create();

	try
	{
		Ref<ExampleScreen> ex(new ExampleScreen);
		ex->visible(true);
		Core::instance().run();
	}
	catch(exception& e)
	{
		cerr << "Exception caught : " << e.what() << endl;
	}

	Core::destroy();
	return 0;
}

{'fraction_non_alphanumeric': 0.17493897477624085, 'fraction_numerical': 0.013832384052074858, 'mean_word_length': 4.256410256410256, 'pattern_counts': {'":': 0, '<': 22, '<?xml version=': 0, '>': 12, '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': '886553', 'n_tokens_mistral': 473, 'n_tokens_neox': 437, 'n_words': 109}