<commit_before>#![allow(non_camel_case_types)]
// FIXME ^ should be removed

use pyffi::*;
use super::types::*;
use super::array::*;

#[repr(u32)]
#[derive(Copy, Clone, PartialEq, Eq, Hash)]
pub enum NPY_CASTING {
    NPY_NO_CASTING = 0,
    NPY_EQUIV_CASTING = 1,
    NPY_SAFE_CASTING = 2,
    NPY_SAME_KIND_CASTING = 3,
    NPY_UNSAFE_CASTING = 4,
}

#[repr(C)]
#[derive(Clone, Copy)]
pub struct PyUFuncObject {
    pub ob_base: PyObject,
    pub nin: ::std::os::raw::c_int,
    pub nout: ::std::os::raw::c_int,
    pub nargs: ::std::os::raw::c_int,
    pub identity: ::std::os::raw::c_int,
    pub functions: *mut PyUFuncGenericFunction,
    pub data: *mut *mut ::std::os::raw::c_void,
    pub ntypes: ::std::os::raw::c_int,
    pub reserved1: ::std::os::raw::c_int,
    pub name: *const ::std::os::raw::c_char,
    pub types: *mut ::std::os::raw::c_char,
    pub doc: *const ::std::os::raw::c_char,
    pub ptr: *mut ::std::os::raw::c_void,
    pub obj: *mut PyObject,
    pub userloops: *mut PyObject,
    pub core_enabled: ::std::os::raw::c_int,
    pub core_num_dim_ix: ::std::os::raw::c_int,
    pub core_num_dims: *mut ::std::os::raw::c_int,
    pub core_dim_ixs: *mut ::std::os::raw::c_int,
    pub core_offsets: *mut ::std::os::raw::c_int,
    pub core_signature: *mut ::std::os::raw::c_char,
    pub type_resolver: PyUFunc_TypeResolutionFunc,
    pub legacy_inner_loop_selector: PyUFunc_LegacyInnerLoopSelectionFunc,
    pub reserved2: *mut ::std::os::raw::c_void,
    pub masked_inner_loop_selector: PyUFunc_MaskedInnerLoopSelectionFunc,
    pub op_flags: *mut npy_uint32,
    pub iter_flags: npy_uint32,<commit_msg>Remove duplicated NPY_CASTING<commit_after>#![allow(non_camel_case_types)]
// FIXME ^ should be removed

use pyffi::*;
use super::types::*;
use super::array::*;

#[repr(C)]
#[derive(Clone, Copy)]
pub struct PyUFuncObject {
    pub ob_base: PyObject,
    pub nin: ::std::os::raw::c_int,
    pub nout: ::std::os::raw::c_int,
    pub nargs: ::std::os::raw::c_int,
    pub identity: ::std::os::raw::c_int,
    pub functions: *mut PyUFuncGenericFunction,
    pub data: *mut *mut ::std::os::raw::c_void,
    pub ntypes: ::std::os::raw::c_int,
    pub reserved1: ::std::os::raw::c_int,
    pub name: *const ::std::os::raw::c_char,
    pub types: *mut ::std::os::raw::c_char,
    pub doc: *const ::std::os::raw::c_char,
    pub ptr: *mut ::std::os::raw::c_void,
    pub obj: *mut PyObject,
    pub userloops: *mut PyObject,
    pub core_enabled: ::std::os::raw::c_int,
    pub core_num_dim_ix: ::std::os::raw::c_int,
    pub core_num_dims: *mut ::std::os::raw::c_int,
    pub core_dim_ixs: *mut ::std::os::raw::c_int,
    pub core_offsets: *mut ::std::os::raw::c_int,
    pub core_signature: *mut ::std::os::raw::c_char,
    pub type_resolver: PyUFunc_TypeResolutionFunc,
    pub legacy_inner_loop_selector: PyUFunc_LegacyInnerLoopSelectionFunc,
    pub reserved2: *mut ::std::os::raw::c_void,
    pub masked_inner_loop_selector: PyUFunc_MaskedInnerLoopSelectionFunc,
    pub op_flags: *mut npy_uint32,
    pub iter_flags: npy_uint32,
{'fraction_non_alphanumeric': 0.17414075286415712, 'fraction_numerical': 0.006219312602291326, 'mean_word_length': 5.063492063492063, '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': '1422255', 'n_tokens_mistral': 1209, 'n_tokens_neox': 1218, 'n_words': 246}