<commit_before>#include "addresses.h"

#include "analog_random.h"
#include "eeprom_io.h"

namespace {
const char kName[] = "addrs";

// Pick a MAC address for the Ethernet interface. Since the Arduino
// doesn't have its own MAC address assigned at the factory, we must
// pick one. Read more about the issue here:
//
//     https://serverfault.com/a/40720
//     https://en.wikipedia.org/wiki/MAC_address#Universal_vs._local
//
// Quoting:
//
//     Universally administered and locally administered addresses are
//     distinguished by setting the second least significant bit of the
//     most significant byte of the address. If the bit is 0, the address
//     is universally administered. If it is 1, the address is locally
//     administered. In the example address 02-00-00-00-00-01 the most
//     significant byte is 02h. The binary is 00000010 and the second
//     least significant bit is 1. Therefore, it is a locally<commit_msg>Add comment explaining the name used to identify the Addresses struct stored in the EEPROM.<commit_after>#include "addresses.h"

#include "analog_random.h"
#include "eeprom_io.h"

namespace {
// This is the name used to identify the data stored in the EEPROM.
// Changing the value (e.g. between "addrs" and "Addrs") has the
// effect of invalidating the currently stored values, which can
// be useful if you want to change the space from whicn one or both
// the addresses is allocated.
const char kName[] = "addrs";

// Pick a MAC address for the Ethernet interface. Since the Arduino
// doesn't have its own MAC address assigned at the factory, we must
// pick one. Read more about the issue here:
//
//     https://serverfault.com/a/40720
//     https://en.wikipedia.org/wiki/MAC_address#Universal_vs._local
//
// Quoting:
//
//     Universally administered and locally administered addresses are
//     distinguished by setting the second least significant bit of the
//     most significant byte of the address. If the bit is 0, the address
//     is universally administered. If it is 1, the address is locally
//     administered. In the example address 02-00-00-00-00-01 the most
//     significant byte is 02h. The binary is 00000010 and the second
//     least significant bit is 1. Therefore, it is a locally
{'fraction_non_alphanumeric': 0.08734009704455227, 'fraction_numerical': 0.02646669607410675, 'mean_word_length': 3.161467889908257, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '3202495', 'n_tokens_mistral': 681, 'n_tokens_neox': 615, 'n_words': 293}