<commit_before>#ifndef CURSOR_H
#define CURSOR_H

#include <stddef.h>
#include <stdint.h>

/* A context for [de]serializing data from a buffer */
struct cursor
{
    uint8_t * restrict buf;
    size_t             len;
    size_t             pos;
};

enum cursor_res
{
    /* The unpack/pack operation was successful */
    cursor_res_ok,
    /* No more bytes left in the buffer */
    cursor_res_err_buf_exhausted,
};

#ifdef __cplusplus
extern "C" {
#endif
<commit_msg>move extern c to include struct def<commit_after>#ifndef CURSOR_H
#define CURSOR_H

#include <stddef.h>
#include <stdint.h>

#ifdef __cplusplus
extern "C" {
#endif

/* A context for [de]serializing data from a buffer */
struct cursor
{
    uint8_t * restrict buf;
    size_t             len;
    size_t             pos;
};

enum cursor_res
{
    /* The unpack/pack operation was successful */
    cursor_res_ok,
    /* No more bytes left in the buffer */
    cursor_res_err_buf_exhausted,
};

{'fraction_non_alphanumeric': 0.09355509355509356, 'fraction_numerical': 0.002079002079002079, 'mean_word_length': 2.8063241106719365, 'pattern_counts': {'":': 0, '<': 7, '<?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': '1817876', 'n_tokens_mistral': 341, 'n_tokens_neox': 332, 'n_words': 98}