<commit_before>/*eslint-env node */
const _ = require("lodash");
const webpackConfig = require("./webpack.dev");
const webpackConfigProd = require("./webpack.prod");

webpackConfig.devtool = "cheap-module-source-map";

module.exports = function(config) {

  const configuration = {
    browsers: ["Chrome"], // ['Chrome'] run in Chrome, 'PhantomJS'
    singleRun: true,
    // available frameworks: https://npmjs.org/browse/keyword/karma-adapter
    frameworks: ["mocha", "sinon"],
    files: ["src/**/*.spec.js"],
    preprocessors: {
      "src/**/*.js": ["webpack", "sourcemap"]
    },
    reporters: ["mocha", "coverage"],
    webpack: {
      module: {
        rules: webpackConfigProd.module.rules
      },
      plugins: webpackConfig.plugins,
      externals: {
        "react/addons": true,
        "react/lib/ExecutionEnvironment": true,
        "react/lib/ReactContext": true
      },
      resolve: webpackConfig.resolve
    },
    webpackServer: {
      noInfo: true
    },
    coverageReporter: {
      reporters: [
        {
          type: "text-summary"<commit_msg>missing commit<commit_after>/*eslint-env node */
const _ = require("lodash");
const path = require("path");
const webpackConfig = require("./webpack.dev");
const webpackConfigProd = require("./webpack.prod");

webpackConfig.devtool = "cheap-module-source-map";
module.exports = function(config) {

  const configuration = {
    browsers: ["Chrome"], // ['Chrome'] run in Chrome, 'PhantomJS'
    singleRun: true,
    // available frameworks: https://npmjs.org/browse/keyword/karma-adapter
    frameworks: ["mocha", "sinon"],
    files: ["src/**/*.spec.js"],
    preprocessors: {
      "src/**/*.js": ["webpack", "sourcemap"]
    },
    reporters: ["mocha", "coverage"],
    webpack: {
      mode: "development",
      module: {
        rules: [
          {
            test: /.(gif|png|woff(2)?|eot|ttf|svg)(\?[a-z0-9=\.]+)?$/,
            use: ["url-loader"]
          },
          {
            test: /\.css$/,
            use: ["css-loader"]
          },
          {
            test: /\.(js|jsx|ts|tsx)$/,
            use: ["ts-loader"],
            include: path.join(__dirname, "src"),
            exclude: path.join(__dirname, "node_modules")
          }
        ]
      },
      plugins: webpackConfig.plugins,
      externals: {
        "react/addons": true,
        "react/lib/ExecutionEnvironment": true,
        "react/lib/ReactContext": true
      },
      resolve: webpackConfig.resolve
    },
    webpackServer: {
      noInfo: true
    },
    coverageReporter: {
      reporters: [
        {
          type: "text-summary"
{'fraction_non_alphanumeric': 0.17258495609011074, 'fraction_numerical': 0.001145475372279496, 'mean_word_length': 2.27909887359199, 'pattern_counts': {'":': 8, '<': 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': '4470796', 'n_tokens_mistral': 836, 'n_tokens_neox': 819, 'n_words': 146}