<commit_before>use raw::Local;

extern "system" {

    #[link_name = "NeonSys_Convert_ToObject"]
    pub fn to_object(out: &mut Local, value: &Local) -> bool;

    #[link_name = "NeonSys_Convert_ToString"]
    pub fn to_string(out: &mut Local, value: Local) -> bool;

}
<commit_msg>expand neon_sys::convert mod documentation<commit_after>//! Helper functions for converting `v8::Local` values.

use raw::Local;

extern "system" {

    /// Casts the value provided to a `v8::Object` and mutates the `out` argument provided to refer
    /// to `v8::Local` handle of the converted value. Returns `false` if the conversion didn't
    /// succeed.
    #[link_name = "NeonSys_Convert_ToObject"]
    pub fn to_object(out: &mut Local, value: &Local) -> bool;

    /// Casts the value provided to a `v8::String` and mutates the `out` argument provided to refer
    /// to `v8::Local` handle of the converted value. Returns `false` if the conversion didn't
    /// succeed.
    #[link_name = "NeonSys_Convert_ToString"]
    pub fn to_string(out: &mut Local, value: Local) -> bool;

}

{'fraction_non_alphanumeric': 0.1303538175046555, 'fraction_numerical': 0.004655493482309125, 'mean_word_length': 3.6943231441048034, 'pattern_counts': {'":': 0, '<': 3, '<?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': '1338176', 'n_tokens_mistral': 349, 'n_tokens_neox': 341, 'n_words': 116}