<commit_before>#include "ARPTableReader.h"

ARPTableReader::ARPTableReader(string iface, string p) {
    path = p;

    string line;
    ifstream arp_table(path);
    getline(arp_table, line); // ignore first line
    if (arp_table.is_open()) {
        while (getline(arp_table, line)) {
            istringstream ss(line);
            string ip, dummy, interface;
            ss >> ip >> dummy >> dummy >> dummy >> dummy >> interface;
            if (iface.compare(interface) == 0) {
                ips.push_back(ip);
            }
        }
        arp_table.close();
    }
}<commit_msg>ifstream accepts only char* in OpenWrt<commit_after>#include "ARPTableReader.h"

ARPTableReader::ARPTableReader(string iface, string p) {
    path = p;

    string line;
    ifstream arp_table(path.c_str());
    getline(arp_table, line); // ignore first line
    if (arp_table.is_open()) {
        while (getline(arp_table, line)) {
            istringstream ss(line);
            string ip, dummy, interface;
            ss >> ip >> dummy >> dummy >> dummy >> dummy >> interface;
            if (iface.compare(interface) == 0) {
                ips.push_back(ip);
            }
        }
        arp_table.close();
    }
}
{'fraction_non_alphanumeric': 0.12860676009892827, 'fraction_numerical': 0.0016488046166529267, 'mean_word_length': 2.153246753246753, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 27, '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': '6237318', 'n_tokens_mistral': 378, 'n_tokens_neox': 366, 'n_words': 85}