<commit_before>#pragma once

#include "dataconsts.h"
#include <atomic>

namespace Component {
struct ComputedValues {
    ComputedValues() = default;
    ComputedValues(ComputedValues&&) = default;
    ~ComputedValues() = default;
    ComputedValues(const ComputedValues& other) : command(other.command), isOnMap(other.isOnMap.load()), moveMode(other.moveMode),
                                                  runSpeed(other.runSpeed), atkSpeed(other.atkSpeed), weightRate(other.weightRate) {}

    ComputedValues& operator=(ComputedValues&&) = default;
    ComputedValues& operator=(const ComputedValues& other) {
        ComputedValues copy(other);
        std::swap(*this, copy);
        return *this;
    }

    RoseCommon::Command command;
    mutable std::atomic_bool isOnMap;
    RoseCommon::MoveMode moveMode;
    uint16_t runSpeed;
    uint16_t atkSpeed;
    uint8_t weightRate;<commit_msg>Solved a small bug<commit_after>#pragma once

#include "dataconsts.h"
#include <atomic>

namespace Component {
struct ComputedValues {
    ComputedValues() = default;
    ComputedValues(ComputedValues&&) = default;
    ~ComputedValues() = default;
    ComputedValues(const ComputedValues& other) : command(other.command), isOnMap(other.isOnMap.load()), moveMode(other.moveMode),
                                                  runSpeed(other.runSpeed), atkSpeed(other.atkSpeed), weightRate(other.weightRate) {}

    ComputedValues& operator=(ComputedValues&&) = default;
    ComputedValues& operator=(const ComputedValues& other) {
        command = other.command;
        isOnMap.store(other.isOnMap.load());
        moveMode = other.moveMode;
        runSpeed = other.runSpeed;
        atkSpeed = other.atkSpeed;
        weightRate = other.weightRate;
        return *this;
    }

    RoseCommon::Command command;
    mutable std::atomic_bool isOnMap;
    RoseCommon::MoveMode moveMode;
    uint16_t runSpeed;
    uint16_t atkSpeed;
    uint8_t weightRate;
{'fraction_non_alphanumeric': 0.10759816420193778, 'fraction_numerical': 0.005099439061703213, 'mean_word_length': 3.34070796460177, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '821315', 'n_tokens_mistral': 578, 'n_tokens_neox': 568, 'n_words': 111}