<commit_before>/* by <EMAIL> at Wed Apr 28 21:38:19 CEST 2010 */

static struct event_base *coio_default_base = NULL;

#ifdef COIO_USE_LIBEVENT2
#include <event2/event.h>
#include <event2/event_struct.h>
#include <event2/event_compat.h>
/* We don't include these because of conflicting types for
 * evdns_err_to_string.
#include <event2/dns.h>
#include <event2/dns_compat.h>
*/
#define FEATURE_MAY_EVENT_LOOP_RETURN_1    1
#define FEATURE_MULTIPLE_EVENTS_ON_SAME_FD 1
#define coio_event_reinit_low() event_reinit(coio_default_base)
#define coio_event_init_low() event_init()
#endif

#ifdef COIO_USE_LIBEVENT1
/* We use a local copy because stock event.h might be from libev */
#include "./coio_event1_event.h"
#define FEATURE_MAY_EVENT_LOOP_RETURN_1    1
#define FEATURE_MULTIPLE_EVENTS_ON_SAME_FD 0
#define coio_event_reinit_low() event_reinit(coio_default_base)
#define coio_event_init_low() event_init()
#endif

#ifdef COIO_USE_MINIEVENT
/* We use a local copy because stock event.h might be from libev */
#include "./coio_minievent.h"
#define FEATURE_MAY_EVENT_LOOP_RETURN_1    1<commit_msg>fixed coio.has_feature_may_loop_return_1() value for libevent2<commit_after>/* by <EMAIL> at Wed Apr 28 21:38:19 CEST 2010 */

static struct event_base *coio_default_base = NULL;

#ifdef COIO_USE_LIBEVENT2
#include <event2/event.h>
#include <event2/event_struct.h>
#include <event2/event_compat.h>
/* We don't include these because of conflicting types for
 * evdns_err_to_string.
#include <event2/dns.h>
#include <event2/dns_compat.h>
*/
/* We set FEATURE_MAY_EVENT_LOOP_RETURN_1 to 0 here because of our
 * always-registered SIGINT handler, see also in coio_c_set_evlist_internal.
 */
#define FEATURE_MAY_EVENT_LOOP_RETURN_1    0
#define FEATURE_MULTIPLE_EVENTS_ON_SAME_FD 1
#define coio_event_reinit_low() event_reinit(coio_default_base)
#define coio_event_init_low() event_init()
#endif

#ifdef COIO_USE_LIBEVENT1
/* We use a local copy because stock event.h might be from libev */
#include "./coio_event1_event.h"
#define FEATURE_MAY_EVENT_LOOP_RETURN_1    1
#define FEATURE_MULTIPLE_EVENTS_ON_SAME_FD 0
#define coio_event_reinit_low() event_reinit(coio_default_base)
#define coio_event_init_low() event_init()
#endif

#ifdef COIO_USE_MINIEVENT
/* We use a local copy because stock event.h might be from libev */
#include "./coio_minievent.h"
#define FEATURE_MAY_EVENT_LOOP_RETURN_1    1
{'fraction_non_alphanumeric': 0.08671973188102221, 'fraction_numerical': 0.025136154168412233, 'mean_word_length': 6.3476923076923075, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '1988993', 'n_tokens_mistral': 939, 'n_tokens_neox': 904, 'n_words': 215}