<commit_before>#ifndef ECL_FIFO_H
#define ECL_FIFO_H

#ifdef ECL_THREAD_ENABLED
#include <pthread.h>
#endif

typedef struct ecl_fifo_entry_s
{
	struct ecl_fifo_entry_s * previous;
	struct ecl_fifo_entry_s * next;
	void * data;
} ecl_fifo_entry_t;

typedef struct
{
	size_t count;
	void * in;
	void * out;
#ifdef ECL_THREAD_ENABLED
	pthread_mutex_t mtx;
#endif
} ecl_fifo_t;

int ecl_fifo_init( ecl_fifo_t * fifo, size_t entry_sz );
int ecl_fifo_push( ecl_fifo_t * fifo, void * data );
int ecl_fifo_pop( ecl_fifo_t * fifo, void ** data );
size_t ecl_fifo_count( ecl_fifo_t * fifo );
void ecl_fifo_destroy( ecl_fifo_t * fifo );

#endif<commit_msg>Update fifo.h<commit_after>#ifndef ECL_FIFO_H
#define ECL_FIFO_H

#ifdef ECL_THREAD_ENABLED
#include <pthread.h>
#endif

typedef struct ecl_fifo_entry_s
{
	struct ecl_fifo_entry_s * previous;
	struct ecl_fifo_entry_s * next;
	void * data;
} ecl_fifo_entry_t;

typedef struct
{
	size_t count;
	void * in;
	void * out;
#ifdef ECL_THREAD_ENABLED
	pthread_mutex_t mtx;
#endif
} ecl_fifo_t;

int ecl_fifo_init( ecl_fifo_t * fifo );
int ecl_fifo_push( ecl_fifo_t * fifo, void * data );
int ecl_fifo_pop( ecl_fifo_t * fifo, void ** data );
size_t ecl_fifo_count( ecl_fifo_t * fifo );
void ecl_fifo_destroy( ecl_fifo_t * fifo );

#endif
{'fraction_non_alphanumeric': 0.09112333071484682, 'fraction_numerical': 0.0, 'mean_word_length': 5.670157068062827, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3580282', 'n_tokens_mistral': 600, 'n_tokens_neox': 569, 'n_words': 122}