<commit_before>var path = require('path');

module.exports = function(karma) {
  'use strict';

  karma.set({
    basePath: __dirname,

    frameworks: ['jasmine'],

    files: [
      { pattern: 'tests.bundle.ts', watched: false }
    ],

    exclude: [],

    preprocessors: {
      'tests.bundle.ts': ['coverage', 'webpack', 'sourcemap']
    },

    reporters: ['mocha', 'coverage'],

    coverageReporter: {
      dir: 'coverage/',
      reporters: [
        { type: 'text-summary' },
        { type: 'json' },
        { type: 'html' }
      ]
    },

    browsers: ['Chrome'],

    port: 9018,
    runnerPort: 9101,
    colors: true,
    logLevel: karma.LOG_INFO,
    autoWatch: true,
    singleRun: false,
    webpackServer: { noInfo: true },
    webpack: {
      devtool: 'inline-source-map',
      resolve: {
        root: __dirname,
        extensions: ['', '.ts', '.js']
      },
      module: {
        preLoaders: [
          {
            test: /\.ts$/,
            loader: 'tslint-loader',
            exclude: [
              /node_modules/
            ]
          }
        ],
        loaders: [
          {
            test: /\.ts?$/,
            exclude: /(node_modules)/,
            loader: 'ts'
          }
        ],
        postLoaders: [
          {
            test: /\.(js|ts)$/, loader: 'istanbul-instrumenter',
            include: path.resolve(__dirname, 'src'),
            exclude: [
              /\.(e2e|spec|bundle)\.ts$/,
              /node_modules/
            ]
          }
        ]
      },
      tslint: {
        emitErrors: false,
        failOnHint: false,
        resourcePath: 'src'
      }
    }<commit_msg>chore(build): Fix breaking changes in latest Webpack betas<commit_after>var path = require('path');
var webpack = require('webpack');

module.exports = function(karma) {
  'use strict';

  karma.set({
    basePath: __dirname,

    frameworks: ['jasmine'],

    files: [
      { pattern: 'tests.bundle.ts', watched: false }
    ],

    exclude: [],

    preprocessors: {
      'tests.bundle.ts': ['coverage', 'webpack', 'sourcemap']
    },

    reporters: ['mocha', 'coverage'],

    coverageReporter: {
      dir: 'coverage/',
      reporters: [
        { type: 'text-summary' },
        { type: 'json' },
        { type: 'html' }
      ]
    },

    browsers: ['Chrome'],

    port: 9018,
    runnerPort: 9101,
    colors: true,
    logLevel: karma.LOG_INFO,
    autoWatch: true,
    singleRun: false,
    webpackServer: { noInfo: true },
    webpack: {
      devtool: 'inline-source-map',
      resolve: {
        extensions: ['.ts', '.js']
      },
      module: {
        rules: [
          {
            test: /\.ts$/,
            loader: 'tslint-loader',
            enforce: 'pre',
            exclude: [
              /node_modules/
            ]
          },
          {
            test: /\.ts?$/,
            exclude: /(node_modules)/,
            loader: 'ts'
          },
          {
            test: /\.(js|ts)$/, loader: 'istanbul-instrumenter',
            include: path.resolve(__dirname, 'src'),
            enforce: 'post',
            exclude: [
              /\.(e2e|spec|bundle)\.ts$/,
              /node_modules/
            ]
          }
        ]
      },
      plugins: [
        new webpack.LoaderOptionsPlugin({
          tslint: {
            emitErrors: false,
            failOnHint: false,
            resourcePath: 'src'
          }
        })
      ]      
    }
{'fraction_non_alphanumeric': 0.15469293163383546, 'fraction_numerical': 0.005214368482039398, 'mean_word_length': 1.4012517385257302, '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': '1299083', 'n_tokens_mistral': 1102, 'n_tokens_neox': 1062, 'n_words': 203}