<commit_before>module.exports = function (config) {
  config.set({
    browsers: ['PhantomJS'],
    frameworks: ['jasmine'],
    files: ['source/tests.js'],
    preprocessors: {
      'source/tests.js': ['webpack', 'sourcemap']
    },
    junitReporter: {
      outputDir: (process.env.CIRCLE_TEST_REPORTS || 'public') + '/karma',
      suite: 'karma'
    },
    singleRun: true,
    plugins: [
      require('karma-coverage'),
      require('karma-jasmine'),
      require('karma-webpack'),
      require('karma-spec-reporter'),
      require('karma-junit-reporter'),
      require('karma-sourcemap-loader'),
      require('karma-phantomjs-launcher')
    ],
    reporters: ['progress', 'coverage'],
    webpack: require('./webpack.config.dev'),
    coverageReporter: {
      dir: (process.env.CIRCLE_ARTIFACTS || '.') + '/coverage'
    }
  })
}
<commit_msg>Changed format to JSON for Codecov compatibility<commit_after>module.exports = function (config) {
  config.set({
    browsers: ['PhantomJS'],
    frameworks: ['jasmine'],
    files: ['source/tests.js'],
    preprocessors: {
      'source/tests.js': ['webpack', 'sourcemap']
    },
    junitReporter: {
      outputDir: (process.env.CIRCLE_TEST_REPORTS || 'public') + '/karma',
      suite: 'karma'
    },
    singleRun: true,
    plugins: [
      require('karma-coverage'),
      require('karma-jasmine'),
      require('karma-webpack'),
      require('karma-spec-reporter'),
      require('karma-junit-reporter'),
      require('karma-sourcemap-loader'),
      require('karma-phantomjs-launcher')
    ],
    reporters: ['progress', 'coverage'],
    webpack: require('./webpack.config.dev'),
    coverageReporter: {
      dir: (process.env.CIRCLE_ARTIFACTS || '.') + '/coverage',
      type: 'json'
    }
  })
}

{'fraction_non_alphanumeric': 0.18068887634105024, 'fraction_numerical': 0.0, 'mean_word_length': 3.054919908466819, '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': '3458822', 'n_tokens_mistral': 595, 'n_tokens_neox': 586, 'n_words': 88}