<commit_before>#![allow(non_camel_case_types)]

pub use libc::{c_char, c_double, c_int, c_void, int64_t, uint64_t, malloc, size_t};

// misc types

#[repr(C)]
#[derive(Clone, Copy)]
pub struct C_msgpack_sbuffer {
    pub size: size_t,
    pub data: *const c_char,
    pub alloc: size_t
}

#[repr(C)]
#[derive(Clone, Copy)]
pub struct C_KeyValuePair {
    pub key: C_String,
    pub value: C_Object
}

// object container types

#[repr(C)]
#[derive(Clone, Copy, Debug, PartialEq, PartialOrd)]
#[allow(dead_code)]
pub enum ObjectType {
    BufferType,
    WindowType,
    TabpageType,
    NilType,
    BooleanType,
    IntegerType,
    FloatType,
    StringType,
    ArrayType,
    DictionaryType
}

#[repr(C)]
#[derive(Clone, Copy)]
pub struct C_Object {
    pub object_type: ObjectType,
    pub data: C_Array
}
<commit_msg>Fix order of object types<commit_after>#![allow(non_camel_case_types)]

pub use libc::{c_char, c_double, c_int, c_void, int64_t, uint64_t, malloc, size_t};

// misc types

#[repr(C)]
#[derive(Clone, Copy)]
pub struct C_msgpack_sbuffer {
    pub size: size_t,
    pub data: *const c_char,
    pub alloc: size_t
}

#[repr(C)]
#[derive(Clone, Copy)]
pub struct C_KeyValuePair {
    pub key: C_String,
    pub value: C_Object
}

// object container types

#[repr(C)]
#[derive(Clone, Copy, Debug, PartialEq, PartialOrd)]
#[allow(dead_code)]
pub enum ObjectType {
    NilType,
    BooleanType,
    IntegerType,
    FloatType,
    StringType,
    ArrayType,
    DictionaryType,
    BufferType,
    WindowType,
    TabpageType
}

#[repr(C)]
#[derive(Clone, Copy)]
pub struct C_Object {
    pub object_type: ObjectType,
    pub data: C_Array
}

{'fraction_non_alphanumeric': 0.1278648974668275, 'fraction_numerical': 0.0048250904704463205, 'mean_word_length': 3.952238805970149, 'pattern_counts': {'":': 0, '<': 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': '164017', 'n_tokens_mistral': 627, 'n_tokens_neox': 650, 'n_words': 156}