<commit_before>#include <network.h>
#include <server.h>
#include <stdexcept>
#include <stdlib.h>

int main(int argc, char *argv[]) {
	if(argc != 3) {
		fprintf(stderr, "Usage: %s host port\n", argv[0]);
		return 10;
	}

	uint16_t port = strtoul(argv[2], NULL, 10);

	try {
		NetworkConfig *config = new NetworkConfig("test", "test", "n1CKn4M3", "us3RN4m3", "fuLLn4m3", "p4sSW0rd");
		if(!config) return 2;

		ServerConfig *server = new ServerConfig(argv[1], config, port);
		if(!server) return 3;
		config->servers.push_back(server);

		Network *n = new Network(config);
		if(!n) return 4;

		n->connectToNetwork(false);
		// run until disconnect
		n->run();

		delete n;
		delete server;<commit_msg>Add missing inclusion<commit_after>#include <network.h>
#include <server.h>
#include <stdexcept>
#include <stdlib.h>
#include <stdio.h>

int main(int argc, char *argv[]) {
	if(argc != 3) {
		fprintf(stderr, "Usage: %s host port\n", argv[0]);
		return 10;
	}

	uint16_t port = strtoul(argv[2], NULL, 10);

	try {
		NetworkConfig *config = new NetworkConfig("test", "test", "n1CKn4M3", "us3RN4m3", "fuLLn4m3", "p4sSW0rd");
		if(!config) return 2;

		ServerConfig *server = new ServerConfig(argv[1], config, port);
		if(!server) return 3;
		config->servers.push_back(server);

		Network *n = new Network(config);
		if(!n) return 4;

		n->connectToNetwork(false);
		// run until disconnect
		n->run();

		delete n;
		delete server;
{'fraction_non_alphanumeric': 0.1723896285914506, 'fraction_numerical': 0.0322354590049054, 'mean_word_length': 4.578125, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 18, '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': '1022762', 'n_tokens_mistral': 602, 'n_tokens_neox': 541, 'n_words': 137}