<commit_before>'use strict';

var nopt = require('nopt');
var chalk = require('chalk');
var RSVP = require('rsvp');
var Promise = RSVP.Promise;
var Insight = require('./utilities/insight');
var merge = require('lodash-node/modern/objects/merge');
var path = require('path');
var pkg = require('../package.json');
var ui = require('./ui');
var fs = require('fs');
var denodeify = RSVP.denodeify;
var readFile = denodeify(fs.readFile);
var sequence = require('./utilities/sequence');

RSVP.on('error', function(error) {
  ui.write(chalk.red(String(error)) + '\n');
  // throw error;
});

var types = {
  help: Boolean,
  version: Boolean
};

var shorthands = {
  h: '--help',
  v: '--version',
};

var commandAliases = {
  g: 'generate',
  s: 'server',
  i: 'init'
};

require('../lib/ext/promise');

function Cli(argv, commands, ui, insight) {
  this.argv = argv;
  this.opts = nopt(types, shorthands, argv);
  this.cmd = this.opts.argv.remain[0];
  this.commands = commands;<commit_msg>Deletes an obsolete line<commit_after>'use strict';

var nopt = require('nopt');
var chalk = require('chalk');
var RSVP = require('rsvp');
var Promise = RSVP.Promise;
var Insight = require('./utilities/insight');
var merge = require('lodash-node/modern/objects/merge');
var path = require('path');
var pkg = require('../package.json');
var ui = require('./ui');
var fs = require('fs');
var denodeify = RSVP.denodeify;
var readFile = denodeify(fs.readFile);
var sequence = require('./utilities/sequence');

RSVP.on('error', function(error) {
  ui.write(chalk.red(String(error)) + '\n');
});

var types = {
  help: Boolean,
  version: Boolean
};

var shorthands = {
  h: '--help',
  v: '--version',
};

var commandAliases = {
  g: 'generate',
  s: 'server',
  i: 'init'
};

require('../lib/ext/promise');

function Cli(argv, commands, ui, insight) {
  this.argv = argv;
  this.opts = nopt(types, shorthands, argv);
  this.cmd = this.opts.argv.remain[0];
  this.commands = commands;
{'fraction_non_alphanumeric': 0.1969465648854962, 'fraction_numerical': 0.0010178117048346056, 'mean_word_length': 4.2991913746630726, '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': '1003480', 'n_tokens_mistral': 709, 'n_tokens_neox': 685, 'n_words': 166}