<commit_before>/*
    ModbusIP.h - Header for Modbus IP Library
    Copyright (C) 2015 <NAME>
*/
#include <Arduino.h>
#include <Modbus.h>
#include <SPI.h>
#include <Ethernet.h>

#ifndef MODBUSIP_H
#define MODBUSIP_H

#define MODBUSIP_PORT 	  502
#define MODBUSIP_MAXFRAME 200

class ModbusIP : public Modbus {
    private:
		EthernetServer _server;
		byte _MBAP[7];

    public:
        ModbusIP();
        bool config(uint8_t *mac, IPAddress ip, IPAddress dns, IPAddress gateway, IPAddress subnet);
        void proc();
};

#endif //MODBUSIP_H
<commit_msg>Change proc() to task() and put overloaded config types.<commit_after>/*
    ModbusIP.h - Header for Modbus IP Library
    Copyright (C) 2015 <NAME>
*/
#include <Arduino.h>
#include <Modbus.h>
#include <SPI.h>
#include <Ethernet.h>

#ifndef MODBUSIP_H
#define MODBUSIP_H

#define MODBUSIP_PORT 	  502
#define MODBUSIP_MAXFRAME 200

class ModbusIP : public Modbus {
    private:
		EthernetServer _server;
		byte _MBAP[7];

    public:
        ModbusIP();
        void config(uint8_t *mac);
        void config(uint8_t *mac, IPAddress ip);
        void config(uint8_t *mac, IPAddress ip, IPAddress dns);
        void config(uint8_t *mac, IPAddress ip, IPAddress dns, IPAddress gateway);
        void config(uint8_t *mac, IPAddress ip, IPAddress dns, IPAddress gateway, IPAddress subnet);
        void task();
};

#endif //MODBUSIP_H

{'fraction_non_alphanumeric': 0.10590778097982709, 'fraction_numerical': 0.020172910662824207, 'mean_word_length': 3.4806451612903224, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '7194795', 'n_tokens_mistral': 519, 'n_tokens_neox': 487, 'n_words': 142}