<commit_before>var stream = require('readable-stream')
var util = require('util')

var SIGNAL_END = new Buffer(0)

module.exports = MultiWrite

function MultiWrite (streams, opts) {
  if (!(this instanceof MultiWrite)) return new MultiWrite(streams, opts)
  if (!opts) opts = {}
  stream.Writable.call(this, opts)

  this.streams = streams
  this.destroyed = false
  this._drains = 0
  this._ondrain = noop

  var self = this
  streams.forEach(function (s) {
    s.on('close', function () {
      self.destroy()
    })<commit_msg>use none-empty buffer for signalling<commit_after>var stream = require('readable-stream')
var util = require('util')

var SIGNAL_END = new Buffer([0])

module.exports = MultiWrite

function MultiWrite (streams, opts) {
  if (!(this instanceof MultiWrite)) return new MultiWrite(streams, opts)
  if (!opts) opts = {}
  stream.Writable.call(this, opts)

  this.streams = streams
  this.destroyed = false
  this._drains = 0
  this._ondrain = noop

  var self = this
  streams.forEach(function (s) {
    s.on('close', function () {
      self.destroy()
    })
{'fraction_non_alphanumeric': 0.12995391705069123, 'fraction_numerical': 0.003686635944700461, 'mean_word_length': 3.891891891891892, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1473396', 'n_tokens_mistral': 358, 'n_tokens_neox': 346, 'n_words': 94}