<commit_before>use std::io::{Result, Write};

/// A type which duplicates its writes to all provided writers
pub struct BroadcastWriter<A: Write, B: Write> {
    primary: A,
    secondary: B,
}

impl<A: Write, B: Write> BroadcastWriter<A, B> {
    /// Creates a new broadcast instance which can be used as a Write
    /// All data will be written to the primary writer as well as the seconardary
    /// writer. Errors that occur during the either write operartion will be yielded.
    pub fn new(primary: A, secondary: B) -> BroadcastWriter<A, B> {
        BroadcastWriter {
            primary: primary,
            secondary: secondary,
        }
    }<commit_msg>doc typos<commit_after>use std::io::{Result, Write};

/// A type which duplicates its writes to the provided writers
pub struct BroadcastWriter<A: Write, B: Write> {
    primary: A,
    secondary: B,
}

impl<A: Write, B: Write> BroadcastWriter<A, B> {
    /// Creates a new BroadcastWriter instance which can be used as a Write.
    /// All data will be written to the primary writer as well as the secondary
    /// writer. Errors that occur during the either write operation will be yielded.
    pub fn new(primary: A, secondary: B) -> BroadcastWriter<A, B> {
        BroadcastWriter {
            primary: primary,
            secondary: secondary,
        }
    }
{'fraction_non_alphanumeric': 0.0952023988005997, 'fraction_numerical': 0.0, 'mean_word_length': 2.76056338028169, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, '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': '6757491', 'n_tokens_mistral': 375, 'n_tokens_neox': 369, 'n_words': 161}