<commit_before><commit_msg>adding initial implementation file: _listobject.c<commit_after>#include "_listobject.h"

int
numba_list_new(NB_List **out, Py_ssize_t itemsize, Py_ssize_t allocated){
    Py_ssize_t alloc_size = sizeof(NB_List) + itemsize * allocated;
    NB_List *lp = malloc(aligned_size(alloc_size));
    lp->size = 0;
    lp->itemsize = itemsize;
    /* li->items will be allocated as empty */

    *out = lp;
    return 0;
}

Py_ssize_t
numba_list_length(NB_List *lp) {
    return lp->size;
}
{'fraction_non_alphanumeric': 0.11637080867850098, 'fraction_numerical': 0.0039447731755424065, 'mean_word_length': 4.347368421052631, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '5282625', 'n_tokens_mistral': 193, 'n_tokens_neox': 186, 'n_words': 40}