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

#include "include/list.h"
#include "include/uar.h"

static struct node *head = NULL;

int
list_insert(struct header info)
{
	struct node *new;

	if ((new = calloc(1, sizeof(new))) == NULL)
		return 0;

	new->header = info;
	new->next = NULL;

	if (head == NULL) {
		head = new;
		head->seq = 1;
	}
	else {
		struct node *aux = head;
		while (aux->next)
			aux = aux->next;
		aux->next = new;
		aux->next->seq++;
	}

	return 1;
}

struct node*
list_next(struct node *start)
{
	if (!start)
		return head;
	return start->next;
}

int 
list_free(void)
{<commit_msg>uar: fix stupid sizeof mistake<commit_after>#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#include "include/list.h"
#include "include/uar.h"

static struct node *head = NULL;

int
list_insert(struct header info)
{
	struct node *new;

	if ((new = calloc(1, sizeof(struct node))) == NULL)
		return 0;

	new->header = info;
	new->next = NULL;

	if (head == NULL) {
		head = new;
		head->seq = 1;
	}
	else {
		struct node *aux = head;
		while (aux->next)
			aux = aux->next;
		aux->next = new;
		aux->next->seq++;
	}

	return 1;
}

struct node*
list_next(struct node *start)
{
	if (!start)
		return head;
	return start->next;
}

int 
list_free(void)
{
{'fraction_non_alphanumeric': 0.16730917501927525, 'fraction_numerical': 0.006168080185042405, 'mean_word_length': 3.475862068965517, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 27, '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': '2295242', 'n_tokens_mistral': 551, 'n_tokens_neox': 512, 'n_words': 139}