<commit_before>//! Definition of types, traits, ... for I/O functionality<commit_msg>io: Add traits Read and Write<commit_after>//! Definition of types, traits, ... for I/O functionality

use core::result;

pub type Result<T> = result::Result<T, ()>;

pub trait Read {
    fn read(&mut self, buf: &mut [u8]) -> Result<usize>;
}

pub trait Write {
    fn write(&mut self, buf: &[u8]) -> Result<usize>;
    fn flush(&mut self) -> Result<()>;
}
{'fraction_non_alphanumeric': 0.17913832199546487, 'fraction_numerical': 0.0045351473922902496, 'mean_word_length': 3.857142857142857, 'pattern_counts': {'":': 0, '<': 8, '<?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': '6148499', 'n_tokens_mistral': 147, 'n_tokens_neox': 144, 'n_words': 49}