<commit_before>'use strict';
const webpackConfig = require('./webpack.config'),
   generateJsonPlugin = require('generate-json-webpack-plugin');
webpackConfig.devtool = 'source-map';
webpackConfig.plugins = webpackConfig.plugins.filter(plugin => !(plugin instanceof generateJsonPlugin));

module.exports = (config) => {
   const configuration = {
      basePath: '',
      frameworks: ['jasmine'],
      files: [
         'node_modules/jquery/dist/jquery.min.js',
         'node_modules/angular/angular.min.js',
         'node_modules/angular-mocks/angular-mocks.js',
         { pattern: 'test/index.js', watched: false }],
      plugins: [
         'karma-jasmine',
         'karma-phantomjs-launcher',
         'karma-mocha',
         'karma-mocha-reporter',
         require("karma-coverage"),
         require("karma-webpack")
      ],
      preprocessors: {
         'test/index.js': ['webpack', 'coverage']
      },
      webpack: webpackConfig,
      webpackMiddleware: {
         stats: "errors-only"
      },
      coverageReporter: {
         type: 'lcov',
         dir: 'coverage/'
      },
      reporters: ['mocha', 'coverage'],
      mochaReporter: {
         output: 'full'<commit_msg>chore(coveralls): Missing plugin<commit_after>'use strict';
const webpackConfig = require('./webpack.config'),
   generateJsonPlugin = require('generate-json-webpack-plugin');
webpackConfig.devtool = 'source-map';
webpackConfig.plugins = webpackConfig.plugins.filter(plugin => !(plugin instanceof generateJsonPlugin));

module.exports = (config) => {
   const configuration = {
      basePath: '',
      frameworks: ['jasmine'],
      files: [
         'node_modules/jquery/dist/jquery.min.js',
         'node_modules/angular/angular.min.js',
         'node_modules/angular-mocks/angular-mocks.js',
         { pattern: 'test/index.js', watched: false }],
      plugins: [
         'karma-jasmine',
         'karma-phantomjs-launcher',
         'karma-mocha',
         'karma-mocha-reporter',
         require("karma-coverage"),
         require("karma-coveralls"),
         require("karma-webpack")
      ],
      preprocessors: {
         'test/index.js': ['webpack', 'coverage']
      },
      webpack: webpackConfig,
      webpackMiddleware: {
         stats: "errors-only"
      },
      coverageReporter: {
         type: 'lcov',
         dir: 'coverage/'
      },
      reporters: ['mocha', 'coverage'],
      mochaReporter: {
         output: 'full'
{'fraction_non_alphanumeric': 0.15187296416938112, 'fraction_numerical': 0.0, 'mean_word_length': 2.5, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '6108476', 'n_tokens_mistral': 743, 'n_tokens_neox': 731, 'n_words': 114}