<commit_before>'use strict';

// Node.js built-ins

const childProcess = require('child_process');

// foreign modules

const parseArgs = require('minimist');

// this module

const args = process.argv.slice(2);
const cmd = process.argv[1];

const parsedArgs = parseArgs(args);

function showHelp () {
  console.log(`usage:\n  ${cmd} <command> ...\n`);
  console.log(`example:\n  ${cmd} list-commands`);
}

if (!parsedArgs._.length) {
  showHelp();
  return;
}

const command = parsedArgs._[0];

if (command === 'list-commands') {<commit_msg>just show the basename for the executable<commit_after>'use strict';

// Node.js built-ins

const childProcess = require('child_process');
const path = require('path');

// foreign modules

const parseArgs = require('minimist');

// this module

const args = process.argv.slice(2);
const cmd = path.basename(process.argv[1]);

const parsedArgs = parseArgs(args);

function showHelp () {
  console.log(`usage:\n  ${cmd} <command> ...\n`);
  console.log(`example:\n  ${cmd} list-commands`);
}

if (!parsedArgs._.length) {
  showHelp();
  return;
}

const command = parsedArgs._[0];

if (command === 'list-commands') {
{'fraction_non_alphanumeric': 0.17891097666378566, 'fraction_numerical': 0.005185825410544511, 'mean_word_length': 4.361111111111111, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3149459', 'n_tokens_mistral': 380, 'n_tokens_neox': 384, 'n_words': 93}