<commit_before>#! /usr/bin/env node
var _       = require("lodash")
  , config = require('../plugin/config')
  , Server  = require('karma').Server
  , program = require('commander');


function get_opts(wp){
  var opts = (wp) ? '../plugin/karma_options_webpack' : '../plugin/karma_options';
  return require(opts);
}

program
  .version('0.1.0')
  .option('-b, --browsers', 'test all mac browsers')
  // .option('-ie, --e', 'Test IE11 & Edge browsers')
  .option('-w, --watch', 'Watch tests')
  .option('-wp, --webpack', 'use webpack')
  .parse(process.argv);

if(program.browsers){
  options.browsers = config.get("browsers");
}

if(program.watch) {
  options.singleRun = false;
}

var options = get_opts(program.webpack);
var server = new Server(options)
server.start()<commit_msg>fix wp call<commit_after>#! /usr/bin/env node
var _       = require("lodash")
  , config = require('../plugin/config')
  , Server  = require('karma').Server
  , program = require('commander');


function get_opts(wp){
  var opts = (wp) ? '../plugin/karma_options_webpack' : '../plugin/karma_options';
  return require(opts);
}

program
  .version('0.1.0')
  .option('-b, --browsers', 'test all mac browsers')
  // .option('-ie, --e', 'Test IE11 & Edge browsers')
  .option('-w, --watch', 'Watch tests')
  .option('-p, --webpack', 'use webpack')
  .parse(process.argv);

if(program.browsers){
  options.browsers = config.get("browsers");
}

if(program.watch) {
  options.singleRun = false;
}

var options = get_opts(program.webpack);
var server = new Server(options)
server.start()
{'fraction_non_alphanumeric': 0.20089571337172105, 'fraction_numerical': 0.006397952655150352, 'mean_word_length': 3.782874617737003, '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': '3338114', 'n_tokens_mistral': 563, 'n_tokens_neox': 552, 'n_words': 115}