<commit_before>'use strict';

var child_process = require('child_process');
var assert = require('assert');
var path = require('path');
var fs = require('fs');

var slr = require.resolve('../bin/sl-run');

var exp = /^supervisor (\d+) detached process (\d+), output logged to '(\S+)'$/mg;

describe('supervisor --detach', function() {
  var pids = [];

  this.timeout(10000); // CI machines are slow for process creation

  beforeEach(function() {
    // re-using exp means resetting it after each use
    exp.lastIndex = 0;
  });

  afterEach(function() {
    pids.forEach(function(pid) {
      try { process.kill(pid, 'SIGTERM'); } catch (e) { }<commit_msg>test: update test to match change in #97<commit_after>'use strict';

var child_process = require('child_process');
var assert = require('assert');
var path = require('path');
var fs = require('fs');

var slr = require.resolve('../bin/sl-run');

var exp = /^supervisor (\d+) detached process (\d+), output log in '(\S+)'$/mg;

describe('supervisor --detach', function() {
  var pids = [];

  this.timeout(10000); // CI machines are slow for process creation

  beforeEach(function() {
    // re-using exp means resetting it after each use
    exp.lastIndex = 0;
  });

  afterEach(function() {
    pids.forEach(function(pid) {
      try { process.kill(pid, 'SIGTERM'); } catch (e) { }
{'fraction_non_alphanumeric': 0.17585692995529062, 'fraction_numerical': 0.010432190760059613, 'mean_word_length': 3.8309352517985613, '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': '7526116', 'n_tokens_mistral': 449, 'n_tokens_neox': 421, 'n_words': 125}