<commit_before>module.exports = function(config) {
  config.set({
    autoWatch: true,
    basePath: '../',
    frameworks: ['mocha'],
    files: [
      'test/src/**/*.spec.js', {
        pattern: 'test/src/fixtures/**/*.json',
        watched: true,
        served: true,
        included: false
      }
    ],

    preprocessors: {
      'test/src/**/*.js': ['webpack', 'sourcemap']
    },

    reporters: ['progress', 'coverage'],

    coverageReporter: {
      type: 'html',
      dir: 'test/coverage/'
    },

    webpack: {
      plugins: [],
      devtool: 'inline-source-map',
      resolve: {
        alias: {},
        modulesDirectories: [
          'src',
          'bower_modules',
          'node_modules',
          'test'
        ],
        extensions: ['', '.js']
      },
      externals: {},
      module: {
        preLoaders: [{
          test: /(\.jsx)|(\.js)$/,
          exclude: /(node_modules|bower_components|test)/,
          loader: 'isparta-instrumenter'
        }],
        loaders: [{
          test: /\.json/,
          loader: 'json-loader'
        }, {
          test: /\.js$/,
          exclude: /node_modules/,
          loader: 'babel-loader?optional[]=runtime'
        }, {
          test: /\.css/,
          loader: 'style-loader!css-loader'
        }]
      }
    },

    webpackMiddleware: {
      noInfo: true,
      quiet: true
    },

    exclude: [],
    port: 9876,

    browserStack: {
      project: 'browser-dactylographsy',
      username: process.env.BS_USERNAME,
      accessKey: process.env.BS_ACCESSKEY
    },

    customLaunchers: {
      bs_win81_ie_11: {
        base: 'BrowserStack',
        browser: 'ie',
        browser_version: '11.0',
        os: 'Windows',
        os_version: '8.1'
      },
      bs_win8_ie_10: {
        base: 'BrowserStack',
        browser: 'ie',
        browser_version: '10.0',
        os: 'Windows',
        os_version: '8'
      },
      bs_mavericks_chrome_44: {
        base: 'BrowserStack',
        device: null,
        os: 'OS X',
        browser_version: '44.0',
        browser: 'chrome',
        os_version: 'Mavericks'
      },
      bs_yosemite_firefox_40: {
        base: 'BrowserStack',
        device: null,
        os: 'OS X',
        browser_version: '40.0',
        browser: 'firefox',
        os_version: 'Yosemite'
      },
      bs_ipad_mini: {
        base: 'BrowserStack',
        device: 'iPad mini Retina',
        os: 'ios',
        os_version: '7.0',
        browser_version: null,
        browser: 'Mobile Safari'
      }
    },

    browsers: [
      'Chrome'
    ],

    plugins: [
      'karma-webpack',
      'karma-sourcemap-loader',
      'karma-coverage',
      'karma-chrome-launcher',
      'karma-browserstack-launcher',
      'karma-firefox-launcher',
      'karma-mocha-reporter',
      'karma-mocha',
    ],

    singleRun: true,
    colors: true,
    logLevel: config.LOG_INFO
  });
};
<commit_msg>chore(karma): update webpack config for karma tests.<commit_after>module.exports = function(config) {
  config.set({
    autoWatch: true,
    basePath: '../',
    frameworks: ['mocha'],
    files: [
      'test/src/**/*.spec.js', {
        pattern: 'test/src/fixtures/**/*.json',
        watched: true,
        served: true,
        included: false
      }
    ],

    preprocessors: {
      'test/src/**/*.js': ['webpack', 'sourcemap']
    },

    reporters: ['progress', 'coverage'],

    coverageReporter: {
      type: 'html',
      dir: 'test/coverage/'
    },

    webpack: {
      plugins: [],
      devtool: 'inline-source-map',
      resolve: {
        alias: {},
        modulesDirectories: [
          'src',
          'bower_modules',
          'node_modules',
          'test'
        ],
        extensions: ['', '.js']
      },
      externals: {},
      module: {
        preLoaders: [{
          test: /(\.jsx)|(\.js)$/,
          exclude: /(node_modules|bower_components|test)/,
          loader: 'isparta-instrumenter'
        }],
        loaders: [{
          test: /\.json/,
          loader: 'json-loader'
        }, {
          test: /\.js$/,
          exclude: /node_modules/,
          loader: 'babel-loader',
          query: {
            presets: ['es2015']
          }
        }, {
          test: /\.css/,
          loader: 'style-loader!css-loader'
        }]
      }
    },

    webpackMiddleware: {
      noInfo: true,
      quiet: true
    },

    exclude: [],
    port: 9876,

    browserStack: {
      project: 'browser-dactylographsy',
      username: process.env.BS_USERNAME,
      accessKey: process.env.BS_ACCESSKEY
    },

    customLaunchers: {
      bs_win81_ie_11: {
        base: 'BrowserStack',
        browser: 'ie',
        browser_version: '11.0',
        os: 'Windows',
        os_version: '8.1'
      },
      bs_win8_ie_10: {
        base: 'BrowserStack',
        browser: 'ie',
        browser_version: '10.0',
        os: 'Windows',
        os_version: '8'
      },
      bs_mavericks_chrome_44: {
        base: 'BrowserStack',
        device: null,
        os: 'OS X',
        browser_version: '44.0',
        browser: 'chrome',
        os_version: 'Mavericks'
      },
      bs_yosemite_firefox_40: {
        base: 'BrowserStack',
        device: null,
        os: 'OS X',
        browser_version: '40.0',
        browser: 'firefox',
        os_version: 'Yosemite'
      },
      bs_ipad_mini: {
        base: 'BrowserStack',
        device: 'iPad mini Retina',
        os: 'ios',
        os_version: '7.0',
        browser_version: null,
        browser: 'Mobile Safari'
      }
    },

    browsers: [
      'Chrome'
    ],

    plugins: [
      'karma-webpack',
      'karma-sourcemap-loader',
      'karma-coverage',
      'karma-chrome-launcher',
      'karma-browserstack-launcher',
      'karma-firefox-launcher',
      'karma-mocha-reporter',
      'karma-mocha'
    ],

    singleRun: true,
    colors: true,
    logLevel: config.LOG_INFO
  });
};

{'fraction_non_alphanumeric': 0.15519272849688603, 'fraction_numerical': 0.0114458845312237, 'mean_word_length': 1.6210851345390385, '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': '7086469', 'n_tokens_mistral': 2031, 'n_tokens_neox': 1953, 'n_words': 341}