<commit_before>#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <errno.h>

#include "essence/libevhtp/evhtp.h"

void ping_cb(evhtp_request_t* req, void* a) {
  const char* str = "pong\n";
  evbuffer_add_printf(req->buffer_out, "%s", str);
  evhtp_send_reply(req, EVHTP_RES_OK);
}

int main(int argc, char ** argv) {
  evbase_t * evbase = event_base_new();
  evhtp_t  * htp    = evhtp_new(evbase, NULL);

  evhtp_set_cb(htp, "/ping", ping_cb, NULL);
  evhtp_use_threads(htp, NULL, 4, NULL);
  evhtp_bind_socket(htp, "0.0.0.0", 8081, 32768);

  event_base_loop(evbase, 0);

  evhtp_unbind_socket(htp);
  evhtp_free(htp);
  event_base_free(evbase);

  return 0;
}<commit_msg>change thread number<commit_after>#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <errno.h>

#include "essence/libevhtp/evhtp.h"

void ping_cb(evhtp_request_t* req, void* a) {
  const char* str = "pong\n";
  evbuffer_add_printf(req->buffer_out, "%s", str);
  evhtp_send_reply(req, EVHTP_RES_OK);
}

int main(int argc, char ** argv) {
  evbase_t * evbase = event_base_new();
  evhtp_t  * htp    = evhtp_new(evbase, NULL);

  evhtp_set_cb(htp, "/ping", ping_cb, NULL);
  evhtp_use_threads(htp, NULL, 8, NULL);

  evhtp_bind_socket(htp, "0.0.0.0", 8081, 32768);

  event_base_loop(evbase, 0);

  evhtp_unbind_socket(htp);

  evhtp_free(htp);
  event_base_free(evbase);

  return 0;
}
{'fraction_non_alphanumeric': 0.15932914046121593, 'fraction_numerical': 0.02236198462613557, 'mean_word_length': 4.99163179916318, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '3159152', 'n_tokens_mistral': 685, 'n_tokens_neox': 645, 'n_words': 116}