<commit_before>#!/usr/bin/env node
'use strict'
const commitStream = require('commit-stream')
const listStream = require('list-stream')
const program = require('commander')
const split2 = require('split2')

const spawn = require('child_process').spawn

const version = require('./package').version

program
  .version(version)
  .parse(process.argv)

spawn('bash', ['-c', 'git log'])
  .stdout
    .pipe(split2())
    .pipe(commitStream())
    .pipe(listStream.obj(onCommitList))

function onCommitList (error, commitList) {
  if (error) throw error

  commitList.forEach(function (commit) {
    console.log(commit)
  })
}
<commit_msg>Add description to command line help<commit_after>#!/usr/bin/env node
'use strict'
const commitStream = require('commit-stream')
const listStream = require('list-stream')
const program = require('commander')
const split2 = require('split2')

const spawn = require('child_process').spawn

const pkg = require('./package')

program
  .version(pkg.version)
  .description(pkg.description)
  .parse(process.argv)

spawn('bash', ['-c', 'git log'])
  .stdout
    .pipe(split2())
    .pipe(commitStream())
    .pipe(listStream.obj(onCommitList))

function onCommitList (error, commitList) {
  if (error) throw error

  commitList.forEach(function (commit) {
    console.log(commit)
  })
}

{'fraction_non_alphanumeric': 0.1548974943052392, 'fraction_numerical': 0.004555808656036446, 'mean_word_length': 4.8061674008810575, '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': '4238370', 'n_tokens_mistral': 423, 'n_tokens_neox': 419, 'n_words': 94}