<commit_before>#include <curlpp/cURLpp.hpp>
#include "Factory.h"
#include <memory>
#include <map>
#include <string>
#include <functional>
#include "Manager.h"
#include "ConnectionManager.h"
#include <utility>

std::unique_ptr<Factory> factory = nullptr;
bool IsRunning = true;


int main()
{

#ifdef _WIN32
	std::unique_ptr<WindowsFactory> factory std::make_unique<WindowsFactory>();
#elif defined __linux__
	std::unique_ptr<LinuxFactory> factory = std::make_unique<LinuxFactory>();
#endif

	cURLpp::Cleanup cleanupmanager; // Automatically release network resources upon exit
	Manager::instance().ReadConfig();
	std::unique_ptr<Console> display(std::move(factory->create_context()));
	display->Display();

	Manager::instance().RegisterCommand("help", [&](void*) { display->State = std::make_unique<HelpState>(); });
	Manager::instance().RegisterCommand("connect", [=](void* in) { ConnectionMaster cm( *(static_cast<std::string*>(in)) ); });
	Manager::instance().RegisterCommand("quit", [&](void*) {IsRunning = false;}); 

	while (IsRunning)
	{
		display->Input();
	}
	return 0;
}<commit_msg>Fixing small typo.<commit_after>#include <curlpp/cURLpp.hpp>
#include "Factory.h"
#include <memory>
#include <map>
#include <string>
#include <functional>
#include "Manager.h"
#include "ConnectionManager.h"
#include <utility>

bool IsRunning = true;


int main()
{

#ifdef _WIN32
	std::unique_ptr<WindowsFactory> factory = std::make_unique<WindowsFactory>();
#elif defined __linux__
	std::unique_ptr<LinuxFactory> factory = std::make_unique<LinuxFactory>();
#endif

	cURLpp::Cleanup cleanupmanager; // Automatically release network resources upon exit
	Manager::instance().ReadConfig();
	std::unique_ptr<Console> display(std::move(factory->create_context()));
	display->Display();

	Manager::instance().RegisterCommand("help", [&](void*) { display->State = std::make_unique<HelpState>(); });
	Manager::instance().RegisterCommand("connect", [=](void* in) { ConnectionMaster cm( *(static_cast<std::string*>(in)) ); });
	Manager::instance().RegisterCommand("quit", [&](void*) {IsRunning = false;}); 

	while (IsRunning)
	{
		display->Input();
	}
	return 0;
}
{'fraction_non_alphanumeric': 0.18258034466697717, 'fraction_numerical': 0.0027945971122496508, 'mean_word_length': 7.839506172839506, 'pattern_counts': {'":': 0, '<': 30, '<?xml version=': 0, '>': 38, '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': '699466', 'n_tokens_mistral': 691, 'n_tokens_neox': 663, 'n_words': 137}