<commit_before>#include"ics3/eeprom.hpp"

#include"ics3/eepparam.hpp"

#include<stdexcept>

ics::EepParam ics::Eeprom::get(EepParam param) const {
  param.read(data);
  return param;
}

void ics::Eeprom::set(const EepParam& param) noexcept {
  param.write(data);
}

void ics::Eeprom::copyTo(std::vector<unsigned char>& dest) const noexcept {
  dest.resize(data.size());
  std::copy(data.begin(), data.end(), dest.begin());
}

void ics::Eeprom::copyTo(std::array<unsigned char, 64>& dest) const noexcept {
  dest = data;
}

ics::Eeprom::Eeprom(const std::array<unsigned char, 64>& src)
: data {src}
{}<commit_msg>Refactor argument name of get method on eeprom<commit_after>#include"ics3/eeprom.hpp"

#include"ics3/eepparam.hpp"

#include<stdexcept>

ics::EepParam ics::Eeprom::get(EepParam place) const {
  place.read(data);
  return place;
}

void ics::Eeprom::set(const EepParam& param) noexcept {
  param.write(data);
}

void ics::Eeprom::copyTo(std::vector<unsigned char>& dest) const noexcept {
  dest.resize(data.size());
  std::copy(data.begin(), data.end(), dest.begin());
}

void ics::Eeprom::copyTo(std::array<unsigned char, 64>& dest) const noexcept {
  dest = data;
}

ics::Eeprom::Eeprom(const std::array<unsigned char, 64>& src)
: data {src}
{}
{'fraction_non_alphanumeric': 0.17979315831344472, 'fraction_numerical': 0.00954653937947494, 'mean_word_length': 6.313953488372093, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '5061778', 'n_tokens_mistral': 493, 'n_tokens_neox': 484, 'n_words': 91}