<commit_before>var XBMC = require('xbmc');
var TVDB = require('tvdb');
var Q = require('q');
var chalk = require('chalk');
var minimist = require('minimist');
var _ = require('underscore');

var config = require('./config.json');
config.options = config.options || {};

var opts = ['excludeSpecials', 'excludeOlder', 'includeUnaired', 'verbose'];
var argv = minimist(process.argv.slice(2), {
  'boolean': opts
});
opts.filter(function(opt) {
  return argv[opt];
}).forEach(function(opt) {
  config.options[opt] = true;
});

var FMT_ERROR, FMT_INFO, FMT_EMPH;
var verbose;
if (config.options.verbose) {
  FMT_ERROR = chalk.bold.red;
  FMT_INFO = chalk.cyan;
  FMT_EMPH = chalk.bold;
  verbose = function() {
    console.info.apply(console.info, arguments);
  };
} else {
  FMT_ERROR = FMT_INFO = FMT_EMPH = function(s) {
    return s;
  };
  verbose = function() {};<commit_msg>Removing crazy apply call<commit_after>var XBMC = require('xbmc');
var TVDB = require('tvdb');
var Q = require('q');
var chalk = require('chalk');
var minimist = require('minimist');
var _ = require('underscore');

var config = require('./config.json');
config.options = config.options || {};

var opts = ['excludeSpecials', 'excludeOlder', 'includeUnaired', 'verbose'];
var argv = minimist(process.argv.slice(2), {
  'boolean': opts
});
opts.filter(function(opt) {
  return argv[opt];
}).forEach(function(opt) {
  config.options[opt] = true;
});

var FMT_ERROR, FMT_INFO, FMT_EMPH;
var verbose;
if (config.options.verbose) {
  FMT_ERROR = chalk.bold.red;
  FMT_INFO = chalk.cyan;
  FMT_EMPH = chalk.bold;
  verbose = console.info;
} else {
  FMT_ERROR = FMT_INFO = FMT_EMPH = function(s) {
    return s;
  };
  verbose = function() {};
{'fraction_non_alphanumeric': 0.17746643315820199, 'fraction_numerical': 0.0011675423234092236, 'mean_word_length': 4.79054054054054, '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': '6353966', 'n_tokens_mistral': 629, 'n_tokens_neox': 608, 'n_words': 133}