<commit_before>module.exports = function (config) {
  config.set({
    files        : ['test_with_browser/**/*.js'],
    frameworks   : ['mocha', 'browserify'],
    plugins      : ['karma-browserify', 'karma-mocha'],
    preprocessors: {'test_with_browser/**/*.js': ['browserify']},
  });
};<commit_msg>Configure karma to use PhantomJS and babel<commit_after>module.exports = function (config) {
  config.set({
    autoWatch: false,
    browserify: {
      debug: true,
      transform: [
        ['babelify', {
          presets: ['es2015'],
        }],
      ],
    },
    browsers: ['PhantomJS'],
    files: [
      'node_modules/babel-polyfill/dist/polyfill.js',
      'test_with_browser/**/*.js',
    ],
    frameworks: ['mocha', 'browserify'],
    preprocessors: {
      'test_with_browser/**/*.js': ['browserify'],
    },
    reporters: ['spec'],
    singleRun: true,
  });
};
{'fraction_non_alphanumeric': 0.1913929784824462, 'fraction_numerical': 0.004530011325028313, 'mean_word_length': 2.7457627118644066, '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': '3251263', 'n_tokens_mistral': 303, 'n_tokens_neox': 294, 'n_words': 49}