<commit_before>#include "timer.h"
#include <stdbool.h>
#include <sys/time.h>

static bool initted = 0;
static yarns_time_t initialTime = 0;

yarns_time_t yarns_time ( void )
{
	yarns_time_t t;
	struct timeval tv;
	if (!initted)
	{
		initted = 1;
		initialTime = yarns_time();
	}
	gettimeofday(&tv, NULL);
	t = (tv.tv_usec / 1000) + (tv.tv_sec * 1000);
	return t - initialTime;
}<commit_msg>Fixed timer.c on Linux.<commit_after>#include "timer.h"
#include <stdbool.h>
#include <sys/time.h>
#include <stdlib.h>

static bool initted = 0;
static yarns_time_t initialTime = 0;

yarns_time_t yarns_time ( void )
{
	yarns_time_t t;
	struct timeval tv;
	if (!initted)
	{
		initted = 1;
		initialTime = yarns_time();
	}
	gettimeofday(&tv, NULL);
	t = (tv.tv_usec / 1000) + (tv.tv_sec * 1000);
	return t - initialTime;
}
{'fraction_non_alphanumeric': 0.14320987654320988, 'fraction_numerical': 0.027160493827160494, 'mean_word_length': 4.165605095541402, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, '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': '6288005', 'n_tokens_mistral': 383, 'n_tokens_neox': 348, 'n_words': 81}