<commit_before>// This code is based on Sabberstone project.
// Copyright (c) 2017-2019 SabberStone Team, darkfriend77 & rnilva
// RosettaStone is hearthstone simulator using C++ with reinforcement learning.
// Copyright (c) 2019 <NAME>, <NAME>, <NAME>

#include <Rosetta/Actions/Summon.hpp>
#include <Rosetta/Cards/Cards.hpp>
#include <Rosetta/Models/Battlefield.hpp>
#include <Rosetta/Tasks/SimpleTasks/SummonTask.hpp>

#include <utility>

namespace RosettaStone::SimpleTasks
{
SummonTask::SummonTask(std::string cardID, int num)
    : m_cardID(std::move(cardID)), m_num(num)
{
    // Do nothing
}

SummonTask::SummonTask(std::string cardID, SummonSide side)
    : m_cardID(std::move(cardID)), m_side(side)
{
    // Do nothing
}

TaskID SummonTask::GetTaskID() const
{
    return TaskID::SUMMON;
}

TaskStatus SummonTask::Impl(Player& player)
{
    for (int i = 0; i < m_num; ++i)
    {
        if (player.GetField().IsFull())<commit_msg>fix: Correct unused private field error<commit_after>// This code is based on Sabberstone project.
// Copyright (c) 2017-2019 SabberStone Team, darkfriend77 & rnilva
// RosettaStone is hearthstone simulator using C++ with reinforcement learning.
// Copyright (c) 2019 <NAME>, <NAME>, <NAME>

#include <Rosetta/Actions/Summon.hpp>
#include <Rosetta/Cards/Cards.hpp>
#include <Rosetta/Models/Battlefield.hpp>
#include <Rosetta/Tasks/SimpleTasks/SummonTask.hpp>

#include <utility>

namespace RosettaStone::SimpleTasks
{
SummonTask::SummonTask(std::string cardID, int num)
    : m_cardID(std::move(cardID)), m_num(num)
{
    // Do nothing
}

SummonTask::SummonTask(std::string cardID, SummonSide side)
    : m_cardID(std::move(cardID)), m_side(side)
{
    // Do nothing
}

TaskID SummonTask::GetTaskID() const
{
    return TaskID::SUMMON;
}

TaskStatus SummonTask::Impl(Player& player)
{
    (void)m_side;

    for (int i = 0; i < m_num; ++i)
    {
        if (player.GetField().IsFull())
{'fraction_non_alphanumeric': 0.14233766233766235, 'fraction_numerical': 0.015584415584415584, 'mean_word_length': 4.631578947368421, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 19, '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': '4035487', 'n_tokens_mistral': 720, 'n_tokens_neox': 673, 'n_words': 155}