<commit_before>#include <unistd.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/time.h>
#include "timer.h"

struct wtimer_t {
    uint32_t id;
    uint64_t timeout;
    uint32_t op;
    enum wtimer_type_t type;
    enum { wt_suspend = 0, wt_running = 1 } status;
    wtimer_cb cb;
    struct timeval started;
    struct wtimer_t * next;
};
typedef struct wtimer_t wtimer_t;

struct wtimer_list_t {
    wtimer_t * head;
    uint32_t   res;
    enum { tl_pause = 0, tl_running = 1 } status;
};
typedef struct wtimer_list_t wtimer_list_t;

static uint32_t global_id = 0;

inline
static int64_t timeval_diff(
        const struct timeval * t1, const struct timeval * t2) {
    return (t1->tv_sec - t2->tv_sec) * 1000000 + (t1->tv_usec - t2->tv_usec);
}

wtimer_list_t * wtimer_list_new(const uint32_t res) {
    wtimer_list_t * tl = calloc(1, sizeof(wtimer_list_t));<commit_msg>Fix compilier warnings on typedef-redefinition<commit_after>#include <unistd.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/time.h>
#include "timer.h"

struct wtimer_t {
    uint32_t id;
    uint64_t timeout;
    uint32_t op;
    enum wtimer_type_t type;
    enum { wt_suspend = 0, wt_running = 1 } status;
    wtimer_cb cb;
    struct timeval started;
    struct wtimer_t * next;
};

struct wtimer_list_t {
    wtimer_t * head;
    uint32_t   res;
    enum { tl_pause = 0, tl_running = 1 } status;
};

static uint32_t global_id = 0;

inline
static int64_t timeval_diff(
        const struct timeval * t1, const struct timeval * t2) {
    return (t1->tv_sec - t2->tv_sec) * 1000000 + (t1->tv_usec - t2->tv_usec);
}

wtimer_list_t * wtimer_list_new(const uint32_t res) {
    wtimer_list_t * tl = calloc(1, sizeof(wtimer_list_t));
{'fraction_non_alphanumeric': 0.11234089651355839, 'fraction_numerical': 0.036524626452684006, 'mean_word_length': 3.6122448979591835, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 23, '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': '428206', 'n_tokens_mistral': 774, 'n_tokens_neox': 728, 'n_words': 173}