<commit_before>#!/usr/bin/env node

/* eslint-env node */

// process .env file
var pathToEnv = process.cwd() + '/.env'
require('fs').exists(pathToEnv, (exists) => {
  if (exists) {
    require('dotenv').config({
      path: pathToEnv
    })
  }
})

// Initiate yargs scripts
var version = require('../package').version
var yargs = require('yargs')
  // List commands
  .command('init', 'Initiate structure', require('./init.js'))
  .command('dev', 'Start development server', require('./dev.js'))
  .command('build', 'Production build to dist', require('./build.js'))
  .command('lint', 'Lint files', require('./lint.js'))
  .command('unit', 'Unit testing', require('./test_unit.js'))
  .command('e2e', 'End to end testing', require('./test_e2e.js'))
  .command('test', 'test', function (yargs) {
    require('./test_unit.js')(yargs)
    require('./test_e2e.js')(yargs)
  })
  .recommendCommands() // If your close enough recommend the closest command

  // Set port
  .option('p', {
    alias: 'port',
    type: 'number',
    describe: 'dev server port to listen on'
  })

  // Set environment
  .option('e', {
    alias: 'environment',
    type: 'string',
    choices: ['development', 'testing', 'production'],
    describe: 'environment setting'
  })

  // Version
  .alias('v', 'version')<commit_msg>index - added more description to test and added help command<commit_after>#!/usr/bin/env node

/* eslint-env node */

// process .env file
var pathToEnv = process.cwd() + '/.env'
require('fs').exists(pathToEnv, (exists) => {
  if (exists) {
    require('dotenv').config({
      path: pathToEnv
    })
  }
})

// Initiate yargs scripts
var version = require('../package').version
var yargs = require('yargs')
  // List commands
  .command('init', 'Initiate structure', require('./init.js'))
  .command('dev', 'Start development server', require('./dev.js'))
  .command('build', 'Production build to dist', require('./build.js'))
  .command('lint', 'Lint files', require('./lint.js'))
  .command('unit', 'Unit testing', require('./test_unit.js'))
  .command('e2e', 'End to end testing', require('./test_e2e.js'))
  .command('test', 'Run unit and e2e tests', function (yargs) {
    require('./test_unit.js')(yargs)
    require('./test_e2e.js')(yargs)
  })
  .command('help', 'Show help', function (yargs) { yargs.showHelp() })
  .recommendCommands() // If your close enough recommend the closest command

  // Set port
  .option('p', {
    alias: 'port',
    type: 'number',
    describe: 'dev server port to listen on'
  })

  // Set environment
  .option('e', {
    alias: 'environment',
    type: 'string',
    choices: ['development', 'testing', 'production'],
    describe: 'environment setting'
  })

  // Version
  .alias('v', 'version')
{'fraction_non_alphanumeric': 0.20058245358572988, 'fraction_numerical': 0.0025482344375682563, 'mean_word_length': 3.5346534653465347, 'pattern_counts': {'":': 0, '<': 3, '<?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': '6362810', 'n_tokens_mistral': 889, 'n_tokens_neox': 878, 'n_words': 226}