<commit_before>#include "getethernetportinfo.h"
#include "retsetethernetportinfo.h"

GetEthernetPortInfo::GetEthernetPortInfo(Device *device)
    : SysExMessage(SysExMessage::GET_ETHERNET_PORT_INFO, SysExMessage::QUERY,
                   device) {}

BYTE_VECTOR *GetEthernetPortInfo::getMessageData() {
  BYTE_VECTOR *messageData = new BYTE_VECTOR();
  messageData->push_back(0x00);
  messageData->push_back(0x01);
  return messageData;
}

void GetEthernetPortInfo::createAnswer(SysExMessage::Command cmd,
                                       BYTE_VECTOR *message, Device *device) {
  answer = new RetSetEthernetPortInfo(cmd, message, device);
  answer->parseAnswerData();
}<commit_msg>enable debug when answer is created and the sysexmessage is already in debug mode<commit_after>#include "getethernetportinfo.h"
#include "retsetethernetportinfo.h"

GetEthernetPortInfo::GetEthernetPortInfo(Device *device)
    : SysExMessage(SysExMessage::GET_ETHERNET_PORT_INFO, SysExMessage::QUERY,
                   device) {}

BYTE_VECTOR *GetEthernetPortInfo::getMessageData() {
  BYTE_VECTOR *messageData = new BYTE_VECTOR();
  messageData->push_back(0x00);
  messageData->push_back(0x01);
  return messageData;
}

void GetEthernetPortInfo::createAnswer(SysExMessage::Command cmd,
                                       BYTE_VECTOR *message, Device *device) {
  answer = new RetSetEthernetPortInfo(cmd, message, device);
  if (debug)
    answer->setDebug(true);
  answer->parseAnswerData();
}
{'fraction_non_alphanumeric': 0.10289172831203766, 'fraction_numerical': 0.008069939475453935, 'mean_word_length': 4.593984962406015, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 10, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5304628', 'n_tokens_mistral': 487, 'n_tokens_neox': 475, 'n_words': 80}