<commit_before>#!/usr/bin/env node
const fn = require('./')

if (process.argv.length < 3 || !process.argv.every(val => val.match(/(--help|-h)/) === null)) {
  console.log('Usage: node ' + process.argv[1] + ' <<EMAIL>>')
  console.log('Or:    covgen <<EMAIL>> (if installed globally)')
  process.exit(1)
}

fn(process.argv[2])<commit_msg>fix: change argv, add destination opt to comment<commit_after>#!/usr/bin/env node
const fn = require('./')

if (process.argv.length < 3 || !process.argv.every(val => val.match(/(--help|-h)/) === null)) {
  console.log('Usage: node ' + process.argv[1] + ' <<EMAIL>> [destination]')
  console.log('Or:    covgen <<EMAIL>> [destination] (if installed globally)')
  process.exit(1)
}

if (process.argv[0] === 'covgen') {
  fn(process.argv[1], process.argv[2])
} else {
  fn(process.argv[2], process.argv[3])
}
{'fraction_non_alphanumeric': 0.2339667458432304, 'fraction_numerical': 0.014251781472684086, 'mean_word_length': 4.3354430379746836, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '2377810', 'n_tokens_mistral': 316, 'n_tokens_neox': 307, 'n_words': 61}