<commit_before>#include <stdlib.h>
#include <time.h>
#include <cstdlib>
#include <ctime>

#include "MyBot.hpp"

MyBot::MyBot()
{
	srand(time(NULL));
	std::cout.sync_with_stdio(0);

	getInit(my_tag, present_map);
	sendInitResponse("CppBot" + std::to_string(my_tag));

	// FOR DEBUGGING PURPOSES. Clears the test file
	std::ofstream ofs;
	ofs.open(std::to_string(my_tag) +".log", std::ofstream::out | std::ofstream::trunc);
	ofs.close();
}

void MyBot::run()
{
	while(true)
	{
		moves.clear();
		messagesFromMe.clear();
		
		hlt::Message exampleMessage;
		exampleMessage.type = hlt::MessageType::ATTACK;
		exampleMessage.senderID = my_tag;
		exampleMessage.recipientID = my_tag != 1 ? 1 : 2;
		exampleMessage.targetID = my_tag;
		messagesFromMe.push_back(exampleMessage);

		getFrame(present_map, messagesToMe);

		for(unsigned short a = 0; a < present_map.map_height; a++)
		{<commit_msg>Weird merge #4<commit_after>#include <stdlib.h>
#include <time.h>
#include <cstdlib>
#include <ctime>

#include "MyBot.hpp"

MyBot::MyBot()
{
	srand(time(NULL));
	std::cout.sync_with_stdio(0);

	getInit(my_tag, present_map);
	sendInitResponse("CppBot" + std::to_string(my_tag));

	// FOR DEBUGGING PURPOSES. Clears the test file
	std::ofstream ofs;
	ofs.open(std::to_string(my_tag) +".log", std::ofstream::out | std::ofstream::trunc);
	ofs.close();
}

void MyBot::run()
{
	while(true)
	{
		moves.clear();
		messagesFromMe.clear();
		
		hlt::Message exampleMessage;
		exampleMessage.type = hlt::MessageType::ATTACK;
		exampleMessage.senderID = my_tag;
		exampleMessage.recipientID = my_tag != 1 ? 1 : 2;
		exampleMessage.targetID = my_tag;
		messagesFromMe.push_back(exampleMessage);
	
		getFrame(present_map, messagesToMe);

		for(unsigned short a = 0; a < present_map.map_height; a++)
		{
{'fraction_non_alphanumeric': 0.15934684684684686, 'fraction_numerical': 0.006193693693693694, 'mean_word_length': 5.485401459854015, 'pattern_counts': {'":': 0, '<': 13, '<?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': '4088165', 'n_tokens_mistral': 724, 'n_tokens_neox': 675, 'n_words': 120}