<commit_before>#ifndef VAST_IO_IOSTREAM_H
#define VAST_IO_IOSTREAM_H

#include <iosfwd>
#include "vast/io/buffered_stream.h"

namespace vast {
namespace io {

/// An 
class istream_buffer : public input_buffer
{
public:
  istream_buffer(std::istream& is);
  virtual bool read(void* data, size_t bytes, size_t* got) override;

private:
  std::istream& in_;
};

class ostream_buffer : public output_buffer
{
public:
  ostream_buffer(std::ostream& out);
  virtual bool write(void const* data, size_t bytes, size_t* put) override;<commit_msg>Add missing documentation.<commit_after>#ifndef VAST_IO_IOSTREAM_H
#define VAST_IO_IOSTREAM_H

#include <iosfwd>
#include "vast/io/buffered_stream.h"

namespace vast {
namespace io {

/// An [input buffer](io::input_buffer) wrapping a `std::istream`.
class istream_buffer : public input_buffer
{
public:
  istream_buffer(std::istream& is);
  virtual bool read(void* data, size_t bytes, size_t* got) override;

private:
  std::istream& in_;
};

/// An [output buffer](io::output_buffer) wrapping a `std::ostream`.
class ostream_buffer : public output_buffer
{
public:
  ostream_buffer(std::ostream& out);
  virtual bool write(void const* data, size_t bytes, size_t* put) override;
{'fraction_non_alphanumeric': 0.11668036154478226, 'fraction_numerical': 0.0, 'mean_word_length': 5.920454545454546, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2189573', 'n_tokens_mistral': 426, 'n_tokens_neox': 416, 'n_words': 110}