<commit_before>#!/usr/bin/env node

'use strict';

var execFile = require('child_process').execFile;

var child = execFile(
  process.execPath, [
    require.resolve('./test-execFile-child.js'), 'argvx', 'argvy'
  ]
);

child.stdout.pipe(process.stdout);
child.stderr.pipe(process.stderr);

child.on('exit', function (code) {
  console.log('Child exited with code', code);
});<commit_msg>fix for child.stdout race #2<commit_after>#!/usr/bin/env node

'use strict';

var execFile = require('child_process').execFile;

var child = execFile(
  process.execPath, [
    require.resolve('./test-execFile-child.js'), 'argvx', 'argvy'
  ]
);

child.stdout.pipe(process.stdout);
child.stderr.pipe(process.stderr);

child.on('exit', function (code) {
  setTimeout(function () {
    console.log('Child exited with code', code);
  }, 100);
});
{'fraction_non_alphanumeric': 0.18531889290012032, 'fraction_numerical': 0.0048134777376654635, 'mean_word_length': 4.7379310344827585, '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': '4210791', 'n_tokens_mistral': 291, 'n_tokens_neox': 284, 'n_words': 54}