<commit_before>'use strict';

var _ = require('lodash');

module.exports = function(config) {
  var configHash = {
    files: []
      .concat(config.client.app.testModules)
      .concat(config.client.vendors)
      .concat([config.client.app.testPattern]),
    preprocessors: {}
  };

  configHash.preprocessors[config.client.app.testPattern] = ['webpack'];
  configHash.webpack = {
    module: {
      loaders: config.client.app.loaders
    }
  };

  configHash.plugins = [
    require('karma-webpack'),
    require('karma-mocha'),
    require('karma-sinon'),
    require('karma-sinon-chai'),
    require('karma-phantomjs-launcher')
  ];

  return _.extend({}, configHash, {
    basePath: '',
    frameworks: ['mocha', 'sinon', 'sinon-chai'],
    exclude: [],
    reporters: ['progress'],
    port: 9876,
    colors: true,
    autoWatch: false,
    browsers: ['PhantomJS'],
    singleRun: true
  });

};
<commit_msg>feat(karma): add webpackMiddleware.noInfo configuration to disable unnecessary output of webpack<commit_after>'use strict';

var _ = require('lodash');

module.exports = function(config) {
  var configHash = {
    files: []
      .concat(config.client.app.testModules)
      .concat(config.client.vendors)
      .concat([config.client.app.testPattern]),
    preprocessors: {}
  };

  configHash.preprocessors[config.client.app.testPattern] = ['webpack'];
  configHash.webpack = {
    module: {
      loaders: config.client.app.loaders
    }
  };
  configHash.webpackMiddleware = { noInfo: true };

  configHash.plugins = [
    require('karma-webpack'),
    require('karma-mocha'),
    require('karma-sinon'),
    require('karma-sinon-chai'),
    require('karma-phantomjs-launcher')
  ];

  return _.extend({}, configHash, {
    basePath: '',
    frameworks: ['mocha', 'sinon', 'sinon-chai'],
    exclude: [],
    reporters: ['progress'],
    port: 9876,
    colors: true,
    autoWatch: false,
    browsers: ['PhantomJS'],
    singleRun: true
  });

};

{'fraction_non_alphanumeric': 0.1663286004056795, 'fraction_numerical': 0.004056795131845842, 'mean_word_length': 3.3078602620087336, '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': '1720681', 'n_tokens_mistral': 672, 'n_tokens_neox': 655, 'n_words': 104}