<commit_before>const minimist = require('minimist')

/**
 * Parses the command-line arguments into a normalized object.
 *
 * @return {{}} An object with our awesome keys.
 */
function normalizeParams (plugin, command, argv = []) {
  // chop it up minimist!
  const { _: array, ...options } = minimist(argv.slice(2))

  // the plugin name or command is sometimes the first/second word -- delete them<commit_msg>Removes spread operator for ugly old versions of node 😢<commit_after>const minimist = require('minimist')

/**
 * Parses the command-line arguments into a normalized object.
 *
 * @return {{}} An object with our awesome keys.
 */
function normalizeParams (plugin, command, argv = []) {
  // chop it up minimist!
  const options = minimist(argv.slice(2))
  const array = options._
  delete options._

  // the plugin name or command is sometimes the first/second word -- delete them
{'fraction_non_alphanumeric': 0.11547085201793722, 'fraction_numerical': 0.002242152466367713, 'mean_word_length': 3.7248677248677247, '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': '5821365', 'n_tokens_mistral': 249, 'n_tokens_neox': 244, 'n_words': 98}