<commit_before>#include <iostream>
#include <cstdlib>
#include <signal.h>
#include "server.hpp"
#include "parser.hpp"
#include "config.hpp"
#include "requestHandler.hpp"

void handler(int sig)
{
	RequestHandler::stop();
}

int main()
{
	std::ios_base::sync_with_stdio(false);
	signal(SIGINT, handler);
	signal(SIGTERM, handler);

	try {
		//Config::load("liquid.conf");
		Server server(Config::getInt("port"));
		Parser::init();
		if (Config::get("type") == "private")
			RequestHandler::init();
		server.run();
	}
	catch (const std::exception& e) {
		std::cerr << e.what() << std::endl;
	}

	return 0;
}<commit_msg>exit at the end of handler()<commit_after>#include <iostream>
#include <cstdlib>
#include <signal.h>
#include "server.hpp"
#include "parser.hpp"
#include "config.hpp"
#include "requestHandler.hpp"

void handler(int sig)
{
	RequestHandler::stop();
	exit(0);
}

int main()
{
	std::ios_base::sync_with_stdio(false);
	signal(SIGINT, handler);
	signal(SIGTERM, handler);

	try {
		//Config::load("liquid.conf");
		Server server(Config::getInt("port"));
		Parser::init();
		if (Config::get("type") == "private")
			RequestHandler::init();
		server.run();
	}
	catch (const std::exception& e) {
		std::cerr << e.what() << std::endl;
	}

	return 0;
}
{'fraction_non_alphanumeric': 0.2012728719172633, 'fraction_numerical': 0.002386634844868735, 'mean_word_length': 5.552083333333333, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 9, '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': '5779256', 'n_tokens_mistral': 489, 'n_tokens_neox': 459, 'n_words': 94}