<commit_before>#[allow(non_upper_case_globals)]
#[allow(non_camel_case_types)]
#[allow(non_snake_case)]
mod c;

pub use c::*;


pub fn version() -> String {
    unsafe { format!("{}.{}.{}", rocks_version_major(), rocks_version_minor(), rocks_version_patch()) }
}

#[test]
fn test_smoke() {
    assert!(version().len() > 0);
}<commit_msg>rocks-sys: fix static-link with bzip2<commit_after>#[allow(non_upper_case_globals)]
#[allow(non_camel_case_types)]
#[allow(non_snake_case)]
mod c;

pub use c::*;

pub fn version() -> String {
    unsafe {
        format!(
            "{}.{}.{}",
            rocks_version_major(),
            rocks_version_minor(),
            rocks_version_patch()
        )
    }
}

#[test]
fn test_smoke() {
    assert!(version().len() > 0);
}

#[no_mangle]
pub extern "C" fn bz_internal_error(errcode: i32) {
    assert!(errcode == 0);
}
{'fraction_non_alphanumeric': 0.18445475638051045, 'fraction_numerical': 0.0069605568445475635, 'mean_word_length': 3.7158469945355193, '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': '7180331', 'n_tokens_mistral': 321, 'n_tokens_neox': 326, 'n_words': 57}