<commit_before>/*
 * carapace.js: Top-level include for the haibu-carapace module.
 *
 * (C) 2011 Nodejitsu Inc.
 * MIT LICENCE
 *
 */

var fs = require('fs'),
    net = require('net'),
    path = require('path'),
    events = require('eventemitter2');

var carapace = module.exports = new events.EventEmitter2({
  delimeter: '::',
  wildcard: true
});

if (process.send) {
  carapace.send = process.send;
  delete process.send;
}

carapace.onAny(function (data) {
  //
  // Simple `EventEmitter` over `child_process.fork`.
  //
  if (carapace.send) {<commit_msg>[fix] Bind `carapace.send` to `process`<commit_after>/*
 * carapace.js: Top-level include for the haibu-carapace module.
 *
 * (C) 2011 Nodejitsu Inc.
 * MIT LICENCE
 *
 */

var fs = require('fs'),
    net = require('net'),
    path = require('path'),
    events = require('eventemitter2');

var carapace = module.exports = new events.EventEmitter2({
  delimeter: '::',
  wildcard: true
});

if (process.send) {
  carapace.send = process.send.bind(process);
  delete process.send;
}

carapace.onAny(function (data) {
  //
  // Simple `EventEmitter` over `child_process.fork`.
  //
  if (carapace.send) {
{'fraction_non_alphanumeric': 0.16638078902229847, 'fraction_numerical': 0.010291595197255575, 'mean_word_length': 3.471264367816092, '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': '4462751', 'n_tokens_mistral': 436, 'n_tokens_neox': 424, 'n_words': 94}