<commit_before>var webpack = require('webpack');


module.exports = function (config) {
  config.set({
    browsers: ['Chrome','Firefox','Safari','PhantomJS'],
    singleRun: true,
    basePath: '..',
    frameworks: ['mocha'],
    files: [
      '../node_modules/phantomjs-polyfill/bind-polyfill.js',
      './tests.webpack.js'
  ],
    preprocessors: {
      './tests.webpack.js' : ['webpack','coverage']
    },
    reporters: ['dots','coverage'], // available reporters: https://npmjs.org/browse/keyword/karma-reporter
    port: 9876,
    colors: true,
    logLevel: config.LOG_WARN, // possible values: config.LOG_DISABLE ||
                              // config.LOG_ERROR || config.LOG_WARN
                              //|| config.LOG_INFO || config.LOG_DEBUG
    webpack: {
      module: {
        loaders: [<commit_msg>modify karma config to use only supported virtual browsers<commit_after>var webpack = require('webpack');
//travis-ci default env
var CI = process.env.CONTINUOUS_INTEGRATION;


module.exports = function (config) {
  config.set({
    browsers: CI ? ['Firefox','PhantomJS'] : ['Chrome','Firefox','Safari'],
    singleRun: true,
    basePath: '..',
    frameworks: ['mocha'],
    files: [
      //bind method is missing in Phantomjs
      '../node_modules/phantomjs-polyfill/bind-polyfill.js',
      './tests.webpack.js'
  ],
    preprocessors: {
      './tests.webpack.js' : ['webpack','coverage']
    },
    reporters: ['dots','coverage'],
    port: 9876,
    colors: true,
    logLevel: config.LOG_WARN, // possible values: config.LOG_DISABLE ||
                              // config.LOG_ERROR || config.LOG_WARN
                              //|| config.LOG_INFO || config.LOG_DEBUG
    webpack: {
      module: {
        loaders: [
{'fraction_non_alphanumeric': 0.15864022662889518, 'fraction_numerical': 0.004532577903682719, 'mean_word_length': 2.4092664092664093, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '89452', 'n_tokens_mistral': 560, 'n_tokens_neox': 548, 'n_words': 101}