<commit_before>"use strict";

var program = require('commander')
  , fs = require('fs');

var defaultValues = {
  cli: false,
  dir: './',
  filter: [
    {type: 'exclude', pattern: '.{git,svn}/'},
    {type: 'include', pattern: '*/'},
    {type: 'include', pattern: '*.{html,shtml,tmpl,xml,css,js,json,jpeg,jpg,gif,png,ico,cgi,php,py,pl,pm,rb}'},
    {type: 'exclude', pattern: '*'}
  ],
  static: false,
  port: 35729,
  preferLocal: false,
  proxy: '',
  verbose: false,
  liveCSS: true,
  liveImg: true
};

program
  .version(JSON.parse(fs.readFileSync(__dirname + '/../package.json', 'utf8')).version)
  .usage('[options] [dir]')
  .option('--exclude <pattern>', 'exclude file matching pattern')
  .option('--include <pattern>', 'don\'t exclude file matching pattern')
  .option('-p, --port <port>', 'change wait port', function(val){ return parseInt(val) })
  .option('-l, --prefer-local', 'return a local file if it exists (proxy mode only)')<commit_msg>fix jshint warning<commit_after>"use strict";

var program = require('commander')
  , fs = require('fs');

var defaultValues = {
  cli: false,
  dir: './',
  filter: [
    {type: 'exclude', pattern: '.{git,svn}/'},
    {type: 'include', pattern: '*/'},
    {type: 'include', pattern: '*.{html,shtml,tmpl,xml,css,js,json,jpeg,jpg,gif,png,ico,cgi,php,py,pl,pm,rb}'},
    {type: 'exclude', pattern: '*'}
  ],
  static: false,
  port: 35729,
  preferLocal: false,
  proxy: '',
  verbose: false,
  liveCSS: true,
  liveImg: true
};

program
  .version(JSON.parse(fs.readFileSync(__dirname + '/../package.json', 'utf8')).version)
  .usage('[options] [dir]')
  .option('--exclude <pattern>', 'exclude file matching pattern')
  .option('--include <pattern>', 'don\'t exclude file matching pattern')
  .option('-p, --port <port>', 'change wait port', function(val){ return parseInt(val, 10); })
  .option('-l, --prefer-local', 'return a local file if it exists (proxy mode only)')
{'fraction_non_alphanumeric': 0.21739130434782608, 'fraction_numerical': 0.007246376811594203, 'mean_word_length': 4.31043956043956, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '599331', 'n_tokens_mistral': 701, 'n_tokens_neox': 684, 'n_words': 162}