<commit_before>
#ifndef __EVENTRPC_DISPATCHER_H__
#define __EVENTRPC_DISPATCHER_H__

#include <map>
#include <vector>
#include <sys/epoll.h>
#include "event.h"

using std::map;
using std::vector;

#define EPOLL_MAX_EVENTS 1024

namespace eventrpc {
class Dispatcher {
 public:
  Dispatcher();

  ~Dispatcher();

  void AddEvent(Event *event);

  void DeleteEvent(Event *event);

  void ModifyEvent(Event *event);

  int Poll();

 private:
  struct EventEntry {
    Event *event;
    struct epoll_event epoll_ev;
  };

  int epoll_fd_;
  typedef vector<EventEntry*> RetiredEventVector;<commit_msg>remove map include<commit_after>
#ifndef __EVENTRPC_DISPATCHER_H__
#define __EVENTRPC_DISPATCHER_H__

#include <vector>
#include <sys/epoll.h>
#include "event.h"

using std::vector;

#define EPOLL_MAX_EVENTS 1024

namespace eventrpc {
class Dispatcher {
 public:
  Dispatcher();

  ~Dispatcher();

  void AddEvent(Event *event);

  void DeleteEvent(Event *event);

  void ModifyEvent(Event *event);

  int Poll();

 private:
  struct EventEntry {
    Event *event;
    struct epoll_event epoll_ev;
  };

  int epoll_fd_;
  typedef vector<EventEntry*> RetiredEventVector;
{'fraction_non_alphanumeric': 0.10463121783876501, 'fraction_numerical': 0.00686106346483705, 'mean_word_length': 4.984615384615385, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, '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': '1530408', 'n_tokens_mistral': 437, 'n_tokens_neox': 405, 'n_words': 99}