<commit_before>// Copyright (c) 2019 <NAME>, <NAME>, <NAME>

// We are making my contributions/submissions to this project solely in our
// personal capacity and are not conveying any rights to any intellectual
// property of any third parties.

#include <Rosetta/Enchants/Enchant.hpp>

namespace RosettaStone
{
Enchant::Enchant(Effect& effect)
{
    effects.emplace_back(effect);
}

Enchant::Enchant(std::vector<Effect>& effects)
{
    effects = effects;
}

void Enchant::ActivateTo(Character* character)
{
    for (auto& effect : effects)
    {
        effect.Apply(character);
    }
}
}  // namespace RosettaStone
<commit_msg>fix: Correct argument name of constructor (effects -> _effects)<commit_after>// Copyright (c) 2019 <NAME>, <NAME>, <NAME>

// We are making my contributions/submissions to this project solely in our
// personal capacity and are not conveying any rights to any intellectual
// property of any third parties.

#include <Rosetta/Enchants/Enchant.hpp>

namespace RosettaStone
{
Enchant::Enchant(Effect& effect)
{
    effects.emplace_back(effect);
}

Enchant::Enchant(std::vector<Effect>& _effects)
{
    effects = _effects;
}

void Enchant::ActivateTo(Character* character)
{
    for (auto& effect : effects)
    {
        effect.Apply(character);
    }
}
}  // namespace RosettaStone

{'fraction_non_alphanumeric': 0.116793893129771, 'fraction_numerical': 0.0061068702290076335, 'mean_word_length': 4.161417322834645, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 14, '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': '231095', 'n_tokens_mistral': 416, 'n_tokens_neox': 391, 'n_words': 117}