<commit_before>/// Macro for defining Lua CFunctions

#[macro_export]
macro_rules! lua_extern {
    ($(unsafe fn $name:ident($arg:ident: $typ:ty) -> i32 $code:block)+) => (
        $(
            extern "C" fn $name($arg: *mut ::lua::raw::lua_State) -> ::std::libc::c_int {
                unsafe {
                    let mut $arg = ::lua::ExternState::from_lua_State($arg);
                    return inner(&mut $arg) as ::std::libc::c_int;
                }

                unsafe fn inner($arg: $typ) -> i32 $code
            }
        )+
    )
}<commit_msg>Tweak macro again to disallow accidental *mut lua::ExternState<commit_after>/// Macro for defining Lua CFunctions

#[macro_export]
macro_rules! lua_extern {
    ($(unsafe fn $name:ident($arg:ident: &mut $typ:ty) -> i32 $code:block)+) => (
        $(
            extern "C" fn $name($arg: *mut ::lua::raw::lua_State) -> ::std::libc::c_int {
                unsafe {
                    let mut $arg = ::lua::ExternState::from_lua_State($arg);
                    return inner(&mut $arg) as ::std::libc::c_int;
                }

                unsafe fn inner($arg: &mut $typ) -> i32 $code
            }
        )+
    )
}
{'fraction_non_alphanumeric': 0.16624472573839663, 'fraction_numerical': 0.006751054852320675, 'mean_word_length': 1.9502487562189055, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '1125947', 'n_tokens_mistral': 403, 'n_tokens_neox': 371, 'n_words': 85}