<commit_before>var argv = require('minimist')(process.argv.slice(2));

var processArgs = function() {
  var fileArg = argv._;

  var noFile = function() {
    return (fileArg.length === 0);
  };

  var tooManyFiles = function() {
    return (fileArg.length > 1);
  };

  if (noFile() || tooManyFiles()) {
    console.log("\nUsage: angelo <file>\n");
    process.exit(1);
  }
  
  var filePath = fileArg[0];
  
  var verbose = false;
  if (argv.hasOwnProperty('verbose')) {
    verbose = true;
  }

  var args = {
    filePath: filePath,
    verbose: verbose
  }

  return args;
};

module.exports = processArgs;<commit_msg>Use the same node binary to run the workflow tests.<commit_after>var argv = require('minimist')(process.argv.slice(2));

var processArgs = function() {
  var fileArg = argv._;

  var noFile = function() {
    return (fileArg.length === 0);
  };

  var tooManyFiles = function() {
    return (fileArg.length > 1);
  };

  if (noFile() || tooManyFiles()) {
    console.log("\nUsage: angelo <file>\n");
    process.exit(1);
  }
  
  var filePath = fileArg[0];
  
  var verbose = false;
  if (argv.hasOwnProperty('verbose')) {
    verbose = true;
  }
  
  var args = {
    filePath: filePath,
    verbose: verbose,
    nodeBinary: process.execPath
  }

  return args;
};

module.exports = processArgs;
{'fraction_non_alphanumeric': 0.15454545454545454, 'fraction_numerical': 0.007575757575757576, 'mean_word_length': 3.0771604938271606, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '2452663', 'n_tokens_mistral': 468, 'n_tokens_neox': 446, 'n_words': 106}