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

'use strict';

var _ = require('underscore');
var fs = require('fs');
var chalk = require('chalk');
var program = require('commander');

var StyleStats = require('../lib/stylestats');
var Format = require('../lib/format');
var specs = require('../lib/specs');
var util = require('../lib/util');

program
  .version(require('../package.json').version)
  .usage('[options] <file ...>')
  .option('-c, --config [path]', 'Path and name of the incoming JSON file.')
  .option('-f, --format [format]', 'Specify the output format. <json|html|md|csv>')
  .option('-t, --template [path]', 'Specify the template path.')
  .option('-s, --specs [path]', 'Specify the specs file JSON path.')
  .option('-g, --gzip', 'Show gzipped file size.')
  .option('-n, --number', 'Show only numeral metrics.')
  .option('-u, --ua [OS]', 'Specify the user agent. <ios|android>')
  .parse(process.argv);

if (!program.args.length) {
  console.log(chalk.red('\n No input file specified.'));
  program.help();
}


// Config
var config = {
  requestOptions: {
    headers: {}
  }
};

if (program.gzip) {<commit_msg>Fix typos<commit_after>#!/usr/bin/env node

'use strict';

var _ = require('underscore');
var fs = require('fs');
var chalk = require('chalk');
var program = require('commander');

var StyleStats = require('../lib/stylestats');
var Format = require('../lib/format');
var specs = require('../lib/specs');
var util = require('../lib/util');

program
  .version(require('../package.json').version)
  .usage('[options] <file ...>')
  .option('-c, --config [path]', 'set user\'s configuration')
  .option('-f, --format [format]', 'set the output format. <json|html|md|csv>')
  .option('-t, --template [path]', 'set the template path for output formant.')
  .option('-s, --specs [path]', 'run test with your test specs file.')
  .option('-g, --gzip', 'show gzipped file size.')
  .option('-n, --number', 'show only numeral metrics.')
  .option('-u, --ua [OS]', 'set the user agent. <ios|android>')
  .parse(process.argv);

if (!program.args.length) {
  console.log(chalk.red('\n No input file specified.'));
  program.help();
}


// Config
var config = {
  requestOptions: {
    headers: {}
  }
};

if (program.gzip) {
{'fraction_non_alphanumeric': 0.2251566696508505, 'fraction_numerical': 0.0, 'mean_word_length': 3.705263157894737, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '6142760', 'n_tokens_mistral': 790, 'n_tokens_neox': 779, 'n_words': 204}