<commit_before>var spawn = require('child_process').exec,
    args = require('yargs').argv,
    through = require('through'),
    WrapperScript = require('libs/wrapperscript.js');

function usage() {
  console.log('usage: cliwrapper [--start startscript.js] [--signal #,signalscript.js] command arguments...');
  process.exit(1);
}

if(args._.length == 0) {
  usage();
}

console.log('X');

var proc = spawn(args._.join(' '));

if(args.start) {
  var startScript = new WrapperScript(args.start, proc);

  startScript.run();
}

proc.on('close', function(code, sig) {
  console.log('process closed with code ' + code + ' and signal ' + sig);
});
<commit_msg>Using local path for require<commit_after>var spawn = require('child_process').exec,
    args = require('yargs').argv,
    through = require('through'),
    WrapperScript = require('./libs/wrapperscript.js');

function usage() {
  console.log('usage: cliwrapper [--start startscript.js] [--signal #,signalscript.js] command arguments...');
  process.exit(1);
}

if(args._.length == 0) {
  usage();
}

console.log('X');

var proc = spawn(args._.join(' '));

if(args.start) {
  var startScript = new WrapperScript(args.start, proc);

  startScript.run();
}

proc.on('close', function(code, sig) {
  console.log('process closed with code ' + code + ' and signal ' + sig);
});

{'fraction_non_alphanumeric': 0.1911211437170805, 'fraction_numerical': 0.0030097817908201654, 'mean_word_length': 4.256916996047431, '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': '2153040', 'n_tokens_mistral': 445, 'n_tokens_neox': 440, 'n_words': 94}