<commit_before>#ifndef EVENTS_DEF
#define EVENTS_DEF

/*
 File:          events.c
 Description:   Implementations for handling an event loop.
 Created:       May 8, 2017
 Author:        <NAME>
 */

/* System includes */
#include <stdlib.h>
#include <stdbool.h>
#include <pthread.h>

/* Application includes */
#include "main.h"
#include "config.h"
#include "log.h"
#include "list.h"
#include "event_callbacks.h"

/* Header */
#include "events.h"

static pthread_t event_thread;
static bool running;
static List *events;

/* Forward decs */
static void *event_main(void *arg);
static char *event_getname(int event_type);

void event_init()
{
    int error = pthread_create(&event_thread, NULL, event_main, NULL);
    if (error)
        app_exit("[ERROR!] Could not create event thread.", 1);
}
<commit_msg>Fixed missing include<commit_after>#ifndef EVENTS_DEF
#define EVENTS_DEF

/*
 File:          events.c
 Description:   Implementations for handling an event loop.
 Created:       May 8, 2017
 Author:        <NAME>
 */

/* System includes */
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <pthread.h>

/* Application includes */
#include "main.h"
#include "config.h"
#include "log.h"
#include "list.h"
#include "event_callbacks.h"

/* Header */
#include "events.h"

static pthread_t event_thread;
static bool running;
static List *events;

/* Forward decs */
static void *event_main(void *arg);
static char *event_getname(int event_type);

void event_init()
{
    int error = pthread_create(&event_thread, NULL, event_main, NULL);
    if (error)
        app_exit("[ERROR!] Could not create event thread.", 1);
}

{'fraction_non_alphanumeric': 0.13317043372021992, 'fraction_numerical': 0.007330482590103849, 'mean_word_length': 3.875, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 12, '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': '5951885', 'n_tokens_mistral': 562, 'n_tokens_neox': 548, 'n_words': 160}