<commit_before>var Test = require('./test.js')

var tap = new Test()
module.exports = tap

if (tap._timer && tap._timer.unref) {
  tap._timer.unref()
}

tap._name = 'TAP'

// No sense continuing after bailout!
// allow 1 tick for any other bailout handlers to run first.
tap.on('bailout', function () {
  process.nextTick(function () {
    process.exit(1)
  })
})

// need to autoend if a teardown is added.
// otherwise we may never see process.on('exit')!
tap.tearDown = function (fn) {
  var ret = Test.prototype.tearDown.apply(tap, arguments)
  tap.autoend()
  return ret
}

var didPipe = false

process.on('exit', function (code) {<commit_msg>Don't nextTick root bailout exit<commit_after>var Test = require('./test.js')

var tap = new Test()
module.exports = tap

if (tap._timer && tap._timer.unref) {
  tap._timer.unref()
}

tap._name = 'TAP'

// No sense continuing after bailout!
// allow 1 tick for any other bailout handlers to run first.
tap.bailout = function (reason) {
  Test.prototype.bailout.apply(tap, arguments)
  process.exit(1)
}

// need to autoend if a teardown is added.
// otherwise we may never see process.on('exit')!
tap.tearDown = function (fn) {
  var ret = Test.prototype.tearDown.apply(tap, arguments)
  tap.autoend()
  return ret
}

var didPipe = false

process.on('exit', function (code) {
{'fraction_non_alphanumeric': 0.14058956916099774, 'fraction_numerical': 0.0030234315948601664, 'mean_word_length': 3.6950354609929077, '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': '5027404', 'n_tokens_mistral': 471, 'n_tokens_neox': 454, 'n_words': 136}