<commit_before>use crate::zero_copy::RawObject;

use std::io::{self, Write};

/// A "zero-copy" writer used on platforms for which we have no actual zero-copy implementation (or
/// which use standard read/write operations for zero-copy I/O).  This writer just delegates to the
/// inner writer used to create it.  Using this struct avoids going through the machinery used to
/// handle the case where a given writer does not support zero-copy on a platform.
pub struct PlatformZeroCopyWriter;

impl PlatformZeroCopyWriter {
   pub unsafe fn new(_obj: RawObject) -> Result<Self, ()> {
      Err(())
   }
}

impl Write for PlatformZeroCopyWriter {
   fn write(&mut self, _bytes: &[u8]) -> io::Result<usize> {
      panic!("should never occur")
   }

   fn flush(&mut self) -> io::Result<()> {
      panic!("should never occur")
   }
}<commit_msg>uucore: remove an inaccurate comment<commit_after>use crate::zero_copy::RawObject;

use std::io::{self, Write};

pub struct PlatformZeroCopyWriter;

impl PlatformZeroCopyWriter {
   pub unsafe fn new(_obj: RawObject) -> Result<Self, ()> {
      Err(())
   }
}

impl Write for PlatformZeroCopyWriter {
   fn write(&mut self, _bytes: &[u8]) -> io::Result<usize> {
      panic!("should never occur")
   }

   fn flush(&mut self) -> io::Result<()> {
      panic!("should never occur")
   }
}
{'fraction_non_alphanumeric': 0.13363363363363365, 'fraction_numerical': 0.0015015015015015015, 'mean_word_length': 3.7777777777777777, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 15, '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': '3212150', 'n_tokens_mistral': 403, 'n_tokens_neox': 401, 'n_words': 137}