<commit_before># Implementation of the trackin_frame_buf minimal interface.

from libc.stdlib cimport malloc, free

# Needed until configuration overhaul. One step at a time.
cdef extern from "ptv.h":
    char seq_name[4][128]

cdef extern from "tracking_frame_buf.h":
    int c_read_targets "read_targets" (target buffer[], \
        char* file_base, int frame_num)

DEF MAX_TARGETS = 20000 # Until improvement of read_targets to auto-allocate.

cdef class Target:
    def __init__(self, **kwd):
        """
        Initialises the Target instance: either as an empy one (to be set later
        from C using set() ); or with initial values from Python. For the first
        case, do not supply arguments to inin. For the later case, supply all
        arguments listed below as keyword arguments.<commit_msg>Forgot to remove this unnecessary global<commit_after># Implementation of the trackin_frame_buf minimal interface.

from libc.stdlib cimport malloc, free

cdef extern from "tracking_frame_buf.h":
    int c_read_targets "read_targets" (target buffer[], \
        char* file_base, int frame_num)

DEF MAX_TARGETS = 20000 # Until improvement of read_targets to auto-allocate.

cdef class Target:
    def __init__(self, **kwd):
        """
        Initialises the Target instance: either as an empy one (to be set later
        from C using set() ); or with initial values from Python. For the first
        case, do not supply arguments to inin. For the later case, supply all
        arguments listed below as keyword arguments.
{'fraction_non_alphanumeric': 0.06701366297983084, 'fraction_numerical': 0.009108653220559532, 'mean_word_length': 3.445086705202312, 'pattern_counts': {'":': 3, '<': 3, '<?xml version=': 0, '>': 3, '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': '7030023', 'n_tokens_mistral': 448, 'n_tokens_neox': 418, 'n_words': 189}