<commit_before>/*************************************************************************
> File Name: Interface.h
> Project Name: Hearthstone++
> Author: <NAME>
> Purpose: Interface for Hearthstone Game Agent
> Created Time: 2017/10/24
> Copyright (c) 2017, <NAME>
*************************************************************************/
#ifndef HEARTHSTONEPP_INTERFACE_H
#define HEARTHSTONEPP_INTERFACE_H

#include <Agents/GameAgent.h>

#include <functional>
#include <map>

namespace Hearthstonepp
{
	class GameInterface
	{
	public:
		const unsigned int HANDLE_CONTINUE = 0;
		const unsigned int HANDLE_STOP = 1;

		GameInterface(GameAgent& agent);

		GameResult StartGame();

	private:
		int HandleMessage();
		void LogWriter(std::string& name, std::string meesage);

		void BeginFirst();
		void BeginShuffle();
		void BeginDraw();
		void BeginMulligan();

		GameAgent& m_agent;
		std::string m_users[2];

		BYTE* m_buffer;
		int m_bufferCapacity;

		std::map<BYTE, std::function<void(GameInterface&)>> m_handler =
		{
			{ static_cast<BYTE>(Step::BEGIN_FIRST), &GameInterface::BeginFirst },
			{ static_cast<BYTE>(Step::BEGIN_SHUFFLE), &GameInterface::BeginShuffle },
			{ static_cast<BYTE>(Step::BEGIN_DRAW), &GameInterface::BeginDraw },
			{ static_cast<BYTE>(Step::BEGIN_MULLIGAN), &GameInterface::BeginMulligan }
		};
	};
}

#endif<commit_msg>Update Interface - Clean up whitespaces<commit_after>/*************************************************************************
> File Name: Interface.h
> Project Name: Hearthstone++
> Author: <NAME>
> Purpose: Interface for Hearthstone Game Agent
> Created Time: 2017/10/24
> Copyright (c) 2017, <NAME>
*************************************************************************/
#ifndef HEARTHSTONEPP_INTERFACE_H
#define HEARTHSTONEPP_INTERFACE_H

#include <Agents/GameAgent.h>

#include <functional>
#include <map>

namespace Hearthstonepp
{
	class GameInterface
	{
	public:
		const unsigned int HANDLE_CONTINUE = 0;
		const unsigned int HANDLE_STOP = 1;

		GameInterface(GameAgent& agent);

		GameResult StartGame();

	private:
		int HandleMessage();
		void LogWriter(std::string& name, std::string meesage);

		void BeginFirst();
		void BeginShuffle();
		void BeginDraw();
		void BeginMulligan();

		GameAgent& m_agent;
		std::string m_users[2];

		BYTE* m_buffer;
		int m_bufferCapacity;

		std::map<BYTE, std::function<void(GameInterface&)>> m_handler =
		{
			{ static_cast<BYTE>(Step::BEGIN_FIRST),		&GameInterface::BeginFirst },
			{ static_cast<BYTE>(Step::BEGIN_SHUFFLE),	&GameInterface::BeginShuffle },
			{ static_cast<BYTE>(Step::BEGIN_DRAW),		&GameInterface::BeginDraw },
			{ static_cast<BYTE>(Step::BEGIN_MULLIGAN),	&GameInterface::BeginMulligan }
		};
	};
}

#endif
{'fraction_non_alphanumeric': 0.22478070175438597, 'fraction_numerical': 0.010964912280701754, 'mean_word_length': 6.4577656675749315, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 37, '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': '1335738', 'n_tokens_mistral': 976, 'n_tokens_neox': 842, 'n_words': 177}