<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>

#ifndef ROSETTASTONE_RANDOM_TASK_HPP
#define ROSETTASTONE_RANDOM_TASK_HPP

#include <Rosetta/Tasks/Tasks.hpp>

namespace RosettaStone::SimpleTasks
{
//!
//! \brief RandomTask class.
//!
//! This class represents the task for picking entities at random.
//!
class RandomTask : public ITask
{
 public:
    //! Constructs task with given \p tasks and \p num.
    //! \param entityType The type of entity.
    //! \param num The number of entities to pick.
    RandomTask(EntityType entityType, int num);

    //! Returns task ID.
    //! \return Task ID.
    TaskID GetTaskID() const override;

 private:
    //! Processes task logic internally and returns meta data.
    //! \param player The player to run task.
    //! \return The result of task processing.
    TaskStatus Impl(Player& player) override;

    int m_num = 0;
};
}  // namespace RosettaStone::SimpleTasks
<commit_msg>fix: Correct minor typo (tasks -> entityType)<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>

#ifndef ROSETTASTONE_RANDOM_TASK_HPP
#define ROSETTASTONE_RANDOM_TASK_HPP

#include <Rosetta/Tasks/Tasks.hpp>

namespace RosettaStone::SimpleTasks
{
//!
//! \brief RandomTask class.
//!
//! This class represents the task for picking entities at random.
//!
class RandomTask : public ITask
{
 public:
    //! Constructs task with given \p entityType and \p num.
    //! \param entityType The type of entity.
    //! \param num The number of entities to pick.
    RandomTask(EntityType entityType, int num);

    //! Returns task ID.
    //! \return Task ID.
    TaskID GetTaskID() const override;

 private:
    //! Processes task logic internally and returns meta data.
    //! \param player The player to run task.
    //! \return The result of task processing.
    TaskStatus Impl(Player& player) override;

    int m_num = 0;
};
}  // namespace RosettaStone::SimpleTasks

{'fraction_non_alphanumeric': 0.10793237971391417, 'fraction_numerical': 0.013003901170351105, 'mean_word_length': 3.2899628252788102, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 12, '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': '5929437', 'n_tokens_mistral': 728, 'n_tokens_neox': 667, 'n_words': 253}