<commit_before>#pragma once

#include <Automaton.h>

#undef TINYMACHINE
#undef FACTORY
#undef STATE_TYPE
#undef MACHINE

#ifdef TINYMACHINE
#define MACHINE TinyMachine
#define FACTORY 0
#define STATE_TYPE tiny_state_t
#else
#define MACHINE Machine
#define FACTORY factory
#define STATE_TYPE state_t
#endif

class Atm_encoder: public MACHINE {

  public:
    Atm_encoder( void ) : MACHINE() {
#ifndef TINYMACHINE        
      class_label = "ENC"; 
    };
#endif
    short _pin1, _pin2;     
    const static char _enc_states[];
    uint8_t _enc_bits;
    uint8_t _enc_counter; 
    int8_t _enc_direction;
    int _divider;
    int _value, _min, _max;
    bool _wrap;
    atm_connector _onup;
    atm_connector _ondown;

    enum { IDLE, UP, DOWN }; // STATES
    enum { EVT_UP, EVT_DOWN, ELSE }; // EVENTS<commit_msg>Att fixes<commit_after>#pragma once

#include <Automaton.h>

#undef TINYMACHINE
#undef FACTORY
#undef STATE_TYPE
#undef MACHINE

#ifdef TINYMACHINE
#define MACHINE TinyMachine
#define FACTORY 0
#define STATE_TYPE tiny_state_t
#else
#define MACHINE Machine
#define FACTORY factory
#define STATE_TYPE state_t
#endif

class Atm_encoder: public MACHINE {

  public:
    Atm_encoder( void ) : MACHINE() {
#ifndef TINYMACHINE        
      class_label = "ENC"; 
#endif
    };
    short _pin1, _pin2;     
    const static char _enc_states[];
    uint8_t _enc_bits;
    uint8_t _enc_counter; 
    int8_t _enc_direction;
    int _divider;
    int _value, _min, _max;
    bool _wrap;
    atm_connector _onup;
    atm_connector _ondown;

    enum { IDLE, UP, DOWN }; // STATES
    enum { EVT_UP, EVT_DOWN, ELSE }; // EVENTS
{'fraction_non_alphanumeric': 0.08220858895705521, 'fraction_numerical': 0.007361963190184049, 'mean_word_length': 3.432065217391304, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5473414', 'n_tokens_mistral': 629, 'n_tokens_neox': 604, 'n_words': 164}