<commit_before>#include <stdexcept>
#include "model/Hand.hpp"

#include <iostream>

namespace model {

std::vector<Card> const & Hand::getCardsView() const 
{
	return cards;
}

void Hand::addCard(Card c) 
{
//	std::cout << "dostaje karte, a mialem " << cards.size() << std::endl;
	cards.push_back(c);
	sigModified(*this);
}

void Hand::removeCard(Card c) 
{
	for (std::vector<Card>::iterator it = cards.begin(); it != cards.end(); it++) {
		if ((*it).suit == c.suit && (*it).rank == c.rank) {
			cards.erase(it);
			sigModified(*this);
			return;
		}
	}
	throw std::invalid_argument("No such card in hand!");
}

bool Hand::hasSuit(Suit suit) {
	for (auto c: cards) {
		if (c.suit == suit) return true;
	}
	return false;
}

}<commit_msg>Removed comment from Hand.cpp<commit_after>#include <stdexcept>
#include "model/Hand.hpp"

#include <iostream>

namespace model {

std::vector<Card> const & Hand::getCardsView() const 
{
	return cards;
}

void Hand::addCard(Card c) 
{
	cards.push_back(c);
	sigModified(*this);
}

void Hand::removeCard(Card c) 
{
	for (std::vector<Card>::iterator it = cards.begin(); it != cards.end(); it++) {
		if ((*it).suit == c.suit && (*it).rank == c.rank) {
			cards.erase(it);
			sigModified(*this);
			return;
		}
	}
	throw std::invalid_argument("No such card in hand!");
}

bool Hand::hasSuit(Suit suit) {
	for (auto c: cards) {
		if (c.suit == suit) return true;
	}
	return false;
}

}
{'fraction_non_alphanumeric': 0.192226148409894, 'fraction_numerical': 0.0, 'mean_word_length': 4.2835820895522385, 'pattern_counts': {'":': 0, '<': 17, '<?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': '3904250', 'n_tokens_mistral': 560, 'n_tokens_neox': 544, 'n_words': 124}