<commit_before>#ifndef protocol_h
#define protocol_h
#include "Arduino.h"

const size_t PROTOCOL_BUF_SIZE 65;
typedef int32_t address_t;

class Protocol{
  public:
    enum STATE{
      IDLE,
      FOUND_VERB,
      FOUND_ADDR,
      FOUND_ADDR_DELIM,
      FOUND_DATA,
      FOUND_DATA_DELIM
    };
    enum VERB:char{
      QUERY='?',
      SET='=',
      ANNC='!',
      SYS='$'
    };
    Protocol(address_t addr);
    void inputData(size_t len, char* data);
    void setAddress(address_t addr);
    void processData(void);
  private:
    address_t  _address;
    char*     _buf;
    int       _buf_pointer;
    uint8_t   _state;
};
#endif<commit_msg>Update protocol.h<commit_after>#ifndef protocol_h
#define protocol_h
#include "Arduino.h"

const size_t PROTOCOL_BUF_SIZE 65;
typedef int32_t address_t;

class Protocol{
  public:
    enum STATE{
      IDLE,
      FOUND_VERB,
      FOUND_ADDR,
      FOUND_ADDR_DELIM,
      FOUND_DATA,
      FOUND_DATA_DELIM
    };
    enum VERB:char{
      QUERY='?',
      SET='=',
      ANNC='!',
      SYS='$'
    };
    Protocol(address_t addr);
    void inputData(size_t len, char* data);
    void setAddress(address_t addr);
    void processData(void);
  private:
    address_t  _address;
    char*     _buf;
    char      _prev_char;
    int       _buf_pointer;
    uint8_t   _state;
};
#endif
{'fraction_non_alphanumeric': 0.10149253731343283, 'fraction_numerical': 0.007462686567164179, 'mean_word_length': 2.5476190476190474, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3184072', 'n_tokens_mistral': 517, 'n_tokens_neox': 496, 'n_words': 106}