<commit_before>#include <zmq.hpp>
#include <msgpack.hpp>
#include <string>
#include <iostream>

#include "testTypes.hpp"

int main()
{
	//  Prepare our context and socket
	zmq::context_t context(1);
	zmq::socket_t socket(context, ZMQ_REQ);

	std::cout << "Connecting to hello world server" << std::endl;
	socket.connect("tcp://localhost:8080");

	//  Do 10 requests, waiting each time for a response
	for (int request_nbr = 0; request_nbr != 10; request_nbr++) {
		
		// create my class
		TestClass test(request_nbr, "TEST");

		// pack a message up
		msgpack::sbuffer sbuf;
		msgpack::pack(sbuf, test);

		zmq::message_t request(sbuf.size());
		std::memcpy(request.data(), sbuf.data(), sbuf.size());
		
		std::cout << "Sending Hello " << request_nbr << "" << std::endl;
		socket.send(request);

		//  Get the reply.
		zmq::message_t reply;
		socket.recv(&reply);
		std::cout << "Received World " << request_nbr << std::endl;
	}
	return 0;
}<commit_msg>use i because its better<commit_after>#include <zmq.hpp>
#include <msgpack.hpp>
#include <string>
#include <iostream>

#include "testTypes.hpp"

int main()
{
	//  Prepare our context and socket
	zmq::context_t context(1);
	zmq::socket_t socket(context, ZMQ_REQ);

	std::cout << "Connecting to hello world server" << std::endl;
	socket.connect("tcp://localhost:8080");

	//  Do 10 requests, waiting each time for a response
	for (int i = 0; i < 10; i++) {
		
		// create my class
		TestClass test(i, "TEST");

		// pack a message up
		msgpack::sbuffer sbuf;
		msgpack::pack(sbuf, test);

		zmq::message_t request(sbuf.size());
		std::memcpy(request.data(), sbuf.data(), sbuf.size());
		
		std::cout << "Sending Hello " << i << "" << std::endl;
		socket.send(request);

		//  Get the reply.
		zmq::message_t reply;
		socket.recv(&reply);
		std::cout << "Received World " << i << std::endl;
	}
	return 0;
}
{'fraction_non_alphanumeric': 0.1740301724137931, 'fraction_numerical': 0.011853448275862068, 'mean_word_length': 4.087671232876712, 'pattern_counts': {'":': 0, '<': 48, '<?xml version=': 0, '>': 11, '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': '5432531', 'n_tokens_mistral': 727, 'n_tokens_neox': 655, 'n_words': 172}