<commit_before>/**
 * Copyright (c) 2012 <NAME>
 * MIT License
 */

(function () {
  "use strict";

  var helpers = require('../helpers.js');
  var core = helpers.core('core');
  var Process = helpers.core('process');
  var streams = helpers.core('streams');

  // get and parse the options
  var options = JSON.parse(process.env.spawnOptions);

  // get the monitor module given by options.monitor
  if (options.monitor !== null) {
    var Monitor = require(options.monitor).Monitor;
  }

  // create a new process object
  // the child will first be spawned when child.spawn is executed
  var child = new Process(options);

  // when useing development print output
  if (options.strategy === 'development') {
    child.pump(process);
  }

  // this will shutdown the immortal group
  var shutdown = {
    'daemon': function (callback) {
      callback();
    },
    'child': function (callback) {<commit_msg>[cleanup] monitor detection<commit_after>/**
 * Copyright (c) 2012 <NAME>
 * MIT License
 */

(function () {
  "use strict";

  var helpers = require('../helpers.js');
  var core = helpers.core('core');
  var Process = helpers.core('process');
  var streams = helpers.core('streams');

  // get and parse the options
  var options = JSON.parse(process.env.spawnOptions);

  // get the monitor module given by options.monitor
  var Monitor;
  if (options.monitor) {
    Monitor = require(options.monitor).Monitor;
  }

  // create a new process object
  // the child will first be spawned when child.spawn is executed
  var child = new Process(options);

  // when useing development print output
  if (options.strategy === 'development') {
    child.pump(process);
  }

  // this will shutdown the immortal group
  var shutdown = {
    'daemon': function (callback) {
      callback();
    },
    'child': function (callback) {
{'fraction_non_alphanumeric': 0.13492927094668117, 'fraction_numerical': 0.004352557127312296, 'mean_word_length': 3.1986301369863015, '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': '2451101', 'n_tokens_mistral': 563, 'n_tokens_neox': 533, 'n_words': 174}