<commit_before>/*
Copyright (c) 2017 InversePalindrome
VariadicPoker - HoleCards.cpp
InversePalindrome.com
*/


#include "HoleCards.hpp"


HoleCards::HoleCards() :
	holeCards()
{
}

HoleCards::HoleCards(const std::vector<Card>& holeCards) :
	holeCards(holeCards)
{
}

std::vector<Card> HoleCards::getCards() const
{
	return this->holeCards;
}

void HoleCards::setCards(const std::vector<Card>& holeCards)
{
	this->holeCards = holeCards;
}

void HoleCards::addCard(const Card& card)
{
	this->holeCards.push_back(card);
}

void HoleCards::removeCard(const Card& card)
{
	this->holeCards.erase(std::remove(this->holeCards.begin(), this->holeCards.end(), card), this->holeCards.end());
}

void HoleCards::removeCards()
{
	this->holeCards.clear();
}

bool HoleCards::hasCards() const
{
	return this->holeCards.empty();
}

std::string HoleCards::toString() const
{
	std::string holeCardRepresentation = "| ";
	for (const Card& card: this->holeCards)
	{
		holeCardRepresentation += card.toString() + " | ";
	}

	return holeCardRepresentation;
}<commit_msg>Update HoleCards.cpp<commit_after>/*
Copyright (c) 2017 InversePalindrome
VariadicPoker - HoleCards.cpp
InversePalindrome.com
*/


#include "HoleCards.hpp"


HoleCards::HoleCards() :
	holeCards()
{
}

HoleCards::HoleCards(const std::vector<Card>& holeCards) :
	holeCards(holeCards)
{
}

std::vector<Card> HoleCards::getCards() const
{
	return this->holeCards;
}

void HoleCards::setCards(const std::vector<Card>& holeCards)
{
	this->holeCards = holeCards;
}

void HoleCards::addCard(const Card& card)
{
	this->holeCards.push_back(card);
}

void HoleCards::removeCard(const Card& card)
{
	this->holeCards.erase(std::remove(this->holeCards.begin(), this->holeCards.end(), card), this->holeCards.end());
}

void HoleCards::removeCards()
{
	this->holeCards.clear();
}

bool HoleCards::hasCards() const
{
	return !this->holeCards.empty();
}

std::string HoleCards::toString() const
{
	std::string holeCardRepresentation = "| ";
	for (const auto& card : this->holeCards)
	{
		holeCardRepresentation += card.toString() + " | ";
	}

	return holeCardRepresentation;
}

{'fraction_non_alphanumeric': 0.1650853889943074, 'fraction_numerical': 0.003795066413662239, 'mean_word_length': 6.101010101010101, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 29, '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': '6298054', 'n_tokens_mistral': 839, 'n_tokens_neox': 806, 'n_words': 125}