<commit_before>#include "srv_mousecmd.h"

namespace RoseCommon {

SrvMouseCmd::SrvMouseCmd() : CRosePacket(ePacketType::PAKWC_MOUSE_CMD) {}

SrvMouseCmd::SrvMouseCmd(Entity entity) : CRosePacket(ePacketType::PAKWC_MOUSE_CMD), entity_(entity) {}

Entity SrvMouseCmd::entity() const {
  return entity_;
}


void SrvMouseCmd::pack() {
  auto basicInfo = entity_.component<BasicInfo>();
  auto destination = entity_.component<Destination>();
  auto position = entity_.component<Position>();

  *this << basicInfo->id_;
  *this << destination->target_;
  *this << destination->dist_;
  *this << destination->x_;
  *this << destination->y_;
  *this << position->z_;

}

}<commit_msg>Update srv_mousecmd.cpp<commit_after>#include "srv_mousecmd.h"

namespace RoseCommon {

SrvMouseCmd::SrvMouseCmd() : CRosePacket(ePacketType::PAKWC_MOUSE_CMD) {}

SrvMouseCmd::SrvMouseCmd(Entity entity) : CRosePacket(ePacketType::PAKWC_MOUSE_CMD), entity_(entity) {}

Entity SrvMouseCmd::entity() const {
  return entity_;
}


void SrvMouseCmd::pack() {
  auto basicInfo = entity_.component<BasicInfo>();
  auto destination = entity_.component<Destination>();
  auto position = entity_.component<Position>();

  *this << basicInfo->id_;
  *this << basicInfo->target_;
  *this << destination->dist_;
  *this << destination->x_;
  *this << destination->y_;
  *this << position->z_;

}

}
{'fraction_non_alphanumeric': 0.15345080763582966, 'fraction_numerical': 0.0, 'mean_word_length': 6.062176165803109, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 21, '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': '3215284', 'n_tokens_mistral': 453, 'n_tokens_neox': 453, 'n_words': 77}