<commit_before>const spawn = require('child_process').spawn;
const manager = require('./downloadManager');

module.exports = function execute(version, args, cb) {
  const versionPath = manager.getVersionPath(version);
  const composer = spawn('php', [versionPath].concat(args));

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

  if (cb) {
    composer.on('close', cb);
  }
};<commit_msg>Pipe stdin from process to child process<commit_after>const spawn = require('child_process').spawn;
const manager = require('./downloadManager');

module.exports = function execute(version, args, cb) {
  const versionPath = manager.getVersionPath(version);
  const composer = spawn('php', [versionPath].concat(args));

  composer.stdout.pipe(process.stdout);
  composer.stderr.pipe(process.stderr);
  process.stdin.pipe(composer.stdin);

  if (cb) {
    composer.on('close', cb);
  }
};
{'fraction_non_alphanumeric': 0.1543550165380375, 'fraction_numerical': 0.0, 'mean_word_length': 5.439716312056738, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5472726', 'n_tokens_mistral': 272, 'n_tokens_neox': 273, 'n_words': 55}