<commit_before>/* eslint-disable no-var */
var dotenv = require('dotenv')

dotenv.load()

var webpackConfig = require('./webpack-base-config')

// add subject as webpack's postloader
webpackConfig.module.postLoaders = [{
  test: /\.js$/,
  exclude: /(test|node_modules|bower_components)\//,
  loader: 'istanbul-instrumenter'
}]

module.exports = function(config) {
  config.set({

    // base path that will be used to resolve all patterns (eg. files, exclude)
    basePath: '',

    // frameworks to use
    // available frameworks: https://npmjs.org/browse/keyword/karma-adapter
    frameworks: ['mocha', 'chai-sinon'],

    // list of files / patterns to load in the browser
    files: [<commit_msg>fix(karma): update config to support webpack 2.4+<commit_after>/* eslint-disable no-var */
var dotenv = require('dotenv')

dotenv.load()

var webpackConfig = require('./webpack-base-config')

// add subject as webpack's postloader
webpackConfig.module.loaders.push({
  test: /\.js$/,
  exclude: /(test|node_modules|bower_components)\//,
  loader: 'istanbul-instrumenter-loader',
  enforce: 'post'
})

module.exports = function(config) {
  config.set({

    // base path that will be used to resolve all patterns (eg. files, exclude)
    basePath: '',

    // frameworks to use
    // available frameworks: https://npmjs.org/browse/keyword/karma-adapter
    frameworks: ['mocha', 'chai-sinon'],

    // list of files / patterns to load in the browser
    files: [
{'fraction_non_alphanumeric': 0.14754098360655737, 'fraction_numerical': 0.001366120218579235, 'mean_word_length': 3.466463414634146, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '1299078', 'n_tokens_mistral': 481, 'n_tokens_neox': 457, 'n_words': 124}