<commit_before>//#include <mutex>
//#include <pthreads.h>
#include <stdint.h>

typedef struct ring_t//some padding should be taking into consideration.
{
    uint8_t *buffer_start;// number of thigs that u wanna store
    uint8_t *buffer_end;
    uint8_t *head;//inicio dos dados
    uint8_t *tail;//fim dos datos
    uint32_t size;//tamanho do buffer
    uint32_t read_calls;//for debugging
    uint32_t write_calls;//for debugging
    //mutex's 
    //pthread_mutex_t mtx;//ok   we wont have this in windows,  a byte will have to work, too kmuch overhead for 
    //std::mutex mtx;           // mutex for critical section
    char round_complete; //0- false; 1- true
}ring_t;

//buffern len is the number of pointer we want allocate, the ptr size is the maximum size of each ptr.
ring_t* rb_new(uint32_t buffer_len, uint32_t pointer_size);

uint32_t rb_full(ring_t* rb);

uint32_t rb_empty(ring_t* rb);<commit_msg>Comments to english<commit_after>//#include <mutex>
//#include <pthreads.h>
#include <stdint.h>

typedef struct ring_t//some padding should be taking into consideration.
{
    uint8_t *buffer_start;//ptr to the start address
    uint8_t *buffer_end;//ptr to the end mem address allocated 
    uint8_t *head;//ptr to the head memory address
    uint8_t *tail;//ptr to the tail memory address
    uint32_t size;//Total buffer size
    uint32_t read_calls;//for debugging
    uint32_t write_calls;//for debugging
    //pthread_mutex_t mtx;
    //std::mutex mtx;           // mutex for critical section
    char round_complete; //0- false; 1- true
}ring_t;

ring_t* rb_new(uint32_t buffer_len, uint32_t pointer_size);

uint32_t rb_full(ring_t* rb);

uint32_t rb_empty(ring_t* rb);
{'fraction_non_alphanumeric': 0.0975177304964539, 'fraction_numerical': 0.02364066193853428, 'mean_word_length': 3.455263157894737, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '2793494', 'n_tokens_mistral': 610, 'n_tokens_neox': 582, 'n_words': 188}