<commit_before>// Copyright (c) 2016 zenghur

#ifndef NET_EPOLL_H_
#define NET_EPOLL_H_

#include "Poller.h"

#ifdef __linux__
#include <sys/epoll.h>

#include <vector>


class Epoll : public Poller {
 public:
  Epoll();
  virtual ~Epoll();
  
 public:
   virtual void init();
   virtual void addFd(int fd, POLLER_EVENT event, void *udata);
   virtual void deleteFd(int fd, PollerEventType mask);
   virtual void modFd(int fd, POLLER_EVENT event, void *udata);
   virtual void poll();
  
 private:
   int epollfd_;
   static const int timeout = 10;  // milliseconds
   std::vector<struct epoll_event> events_;
   static const int MAX_EVENTS = 30;
};
#endif


#endif  // NET_EPOLL_H_<commit_msg>linux complie error<commit_after>// Copyright (c) 2016 zenghur

#ifndef NET_EPOLL_H_
#define NET_EPOLL_H_

#include "Poller.h"

#include <vector>

#ifdef __linux__
#include <sys/epoll.h>

class Epoll : public vanilla::Poller {
 public:
  Epoll();
  virtual ~Epoll();
  
 public:
   virtual void init();
   virtual void addFd(int fd, POLLER_EVENT event, void *udata);
   virtual void deleteFd(int fd, PollerEventType mask);
   virtual void modFd(int fd, POLLER_EVENT event, void *udata);
   virtual void poll();
  
 private:
   int epollfd_;
   static const int timeout = 10;  // milliseconds
   std::vector<struct epoll_event> events_;
   static const int MAX_EVENTS = 30;
};
#endif


#endif  // NET_EPOLL_H_
{'fraction_non_alphanumeric': 0.10699001426533523, 'fraction_numerical': 0.011412268188302425, 'mean_word_length': 4.010714285714286, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '3247242', 'n_tokens_mistral': 535, 'n_tokens_neox': 503, 'n_words': 149}