<commit_before>#include "element.h"
#include <stdlib.h>

//element functions 
Element *element_new() {
    Element *element = (Element*)malloc(sizeof(Element));
    if(element == NULL)
        return NULL;
    else
        return element;
}

unsigned element_index(Element *element) {
    return element->col * element->raw;
}

Element *element_seek_by_pos(Element *element, unsigned raw, unsigned col) {
    if(element->raw == raw && element->col == col)
        return element;
    else if(element->next == NULL)
        return NULL;
    else
        return element_seek_by_pos(element->next, raw, col);
}

Element *element_seek_by_val(Element *element, int value) {
    if(element->value == value)
        return element;
    else if(element->next == NULL)
        return NULL;
    else
        return element_seek_by_val(element->next, value);
}

//blucket functions <commit_msg>Update new element init value<commit_after>#include "element.h"
#include <stdlib.h>

//element functions 
Element *element_new(unsigned raw, unsigned col, int value) {
    Element *element = (Element*)malloc(sizeof(Element));
    if(element == NULL)
        return NULL;
    
    element->raw   = raw;
    element->col   = col;
    element->value = value;
    
    return element
}

unsigned element_index(Element *element) {
    return element->col * element->raw;
}

Element *element_seek_by_pos(Element *element, unsigned raw, unsigned col) {
    if(element->raw == raw && element->col == col)
        return element;
    else if(element->next == NULL)
        return NULL;
    else
        return element_seek_by_pos(element->next, raw, col);
}

Element *element_seek_by_val(Element *element, int value) {
    if(element->value == value)
        return element;
    else if(element->next == NULL)
        return NULL;
    else
        return element_seek_by_val(element->next, value);
}

//blucket functions 
{'fraction_non_alphanumeric': 0.12189973614775726, 'fraction_numerical': 0.0, 'mean_word_length': 3.148796498905908, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 26, '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': '5157631', 'n_tokens_mistral': 569, 'n_tokens_neox': 568, 'n_words': 148}