<commit_before>#ifndef _TOUCHEVENT_H_
#define _TOUCHEVENT_H_

#include <EventBase.h>

class TouchEvent : public EventBase {
public:
  enum Type {
    ACTION_DOWN, ACTION_MOVE, ACTION_UP
  };
  TouchEvent(Type _type, int _x, int _y, double _timestamp, int _identifier)
    : EventBase(0), type(_type), x(_x), y(_y), time(_timestamp), identifier(_identifier) { }

  void dispatch(Element & element) override;
  
  Type getType() { return type; }
  int getX() { return x; }
  int getY() { return y; }
  double getTimestamp() { return time; }
  long getIdentifier() { return identifier; }

 private:
  Type type;
  int x;
  int y;
  double time;
  int identifier;
};

#endif<commit_msg>add originating id<commit_after>#ifndef _TOUCHEVENT_H_
#define _TOUCHEVENT_H_

#include <EventBase.h>

class TouchEvent : public EventBase {
public:
  enum Type {
    ACTION_DOWN, ACTION_MOVE, ACTION_UP
  };
 TouchEvent(int _originating_id, Type _type, int _x, int _y, double _timestamp, int _identifier)
   : EventBase(_originating_id), type(_type), x(_x), y(_y), time(_timestamp), identifier(_identifier) { }

  void dispatch(Element & element) override;
  
  Type getType() { return type; }
  int getX() { return x; }
  int getY() { return y; }
  double getTimestamp() { return time; }
  long getIdentifier() { return identifier; }

 private:
  Type type;
  int x;
  int y;
  double time;
  int identifier;
};

#endif
{'fraction_non_alphanumeric': 0.11626248216833096, 'fraction_numerical': 0.0007132667617689016, 'mean_word_length': 4.254681647940075, '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': '1263934', 'n_tokens_mistral': 481, 'n_tokens_neox': 473, 'n_words': 139}