<commit_before>const path = require('path');
const merge = require('webpack-merge');
const common = require('./webpack.common.config.js');

const webpackConfig = merge(common, {
  devtool: 'inline-source-map',
  module: {
    rules: [
      {
        test: /\.tsx?$/,
        include: [
          path.resolve(__dirname, './src')
        ],
        exclude: path.resolve(__dirname, './src/test.js'),
        use: {
          loader: 'istanbul-instrumenter-loader',
          query: {
            esModules: true
          }
        }
      }
    ]
  },
});

module.exports = (config) => {
  config.set({
    basePath: '',
    frameworks: ['jasmine'],
    client:{
      clearContext: false
    },
    files: [
      { pattern: './src/test.js', watched: true }
    ],
    preprocessors: {
      './src/test.js': ['webpack', 'sourcemap']
    },
    mime: {
      'text/x-typescript': ['ts','tsx']
    },
    webpack: webpackConfig,
    webpackServer: {
      noInfo: true
    },
    webpackMiddleware: {
      stats: 'errors-only'
    },
    coverageReporter: {
      dir: 'coverage',
      type: 'html'
    },
    customLaunchers: {
      'SL_Chrome': {
        base: 'SauceLabs',
        browserName: 'chrome'
      }
    },
    sauceLabs: {
      testName: 'Maia',
      retryLimit: 3,
      startConnect: false,
      recordVideo: false,
      recordScreenshots: false,
      options: {
        'selenium-version': '2.53.0',
        'command-timeout': 600,
        'idle-timeout': 600,
        'max-duration': 5400,
      }
    },
    reporters: ['progress', 'kjhtml', 'coverage'],
    port: 9876,
    colors: true,
    logLevel: config.LOG_INFO,
    autoWatch: true,
    browsers: ['Chrome'],
    singleRun: false
  });

  if (process.env.TRAVIS) {
    var buildId =
        'TRAVIS #' + process.env.TRAVIS_BUILD_NUMBER + ' (' + process.env.TRAVIS_BUILD_ID + ')';
    config.sauceLabs.build = buildId;
    config.sauceLabs.tunnelIdentifier = process.env.TRAVIS_JOB_NUMBER;

    config.transports = ['polling'];
  }
}<commit_msg>Updated karma<commit_after>const path = require('path');
const merge = require('webpack-merge');
const common = require('./webpack.common.config.js');

const webpackConfig = merge(common, {
  devtool: 'inline-source-map',
  module: {
    rules: [
      {
        test: /\.tsx?$/,
        include: [
          path.resolve(__dirname, './src')
        ],
        exclude: path.resolve(__dirname, './src/test.js'),
        use: {
          loader: 'istanbul-instrumenter-loader',
          query: {
            esModules: true
          }
        }
      }
    ]
  },
});

module.exports = (config) => {
  config.set({
    basePath: '',
    frameworks: ['jasmine'],
    client:{
      clearContext: false
    },
    files: [
      { pattern: './src/test.js', watched: true }
    ],
    preprocessors: {
      './src/test.js': ['webpack', 'sourcemap']
    },
    mime: {
      'text/x-typescript': ['ts','tsx']
    },
    webpack: webpackConfig,
    webpackServer: {
      noInfo: true
    },
    webpackMiddleware: {
      stats: 'errors-only'
    },
    coverageReporter: {
      dir: 'coverage',
      type: 'html'
    },
    customLaunchers: {
      'SL_Chrome': {
        base: 'SauceLabs',
        browserName: 'chrome'
      }
    },
    sauceLabs: {
      testName: 'Maia',
      retryLimit: 3,
      startConnect: false,
      recordVideo: false,
      recordScreenshots: false,
      options: {
        'selenium-version': '2.53.0',
        'command-timeout': 600,
        'idle-timeout': 600,
        'max-duration': 5400,
      }
    },
    reporters: ['progress', 'kjhtml', 'coverage'],
    port: 9876,
    colors: true,
    logLevel: config.LOG_INFO,
    autoWatch: true,
    browsers: ['Chrome'],
    singleRun: false
  });

  if (process.env.TRAVIS) {
    var buildId =
        'TRAVIS #' + process.env.TRAVIS_BUILD_NUMBER + ' (' + process.env.TRAVIS_BUILD_ID + ')';
    config.sauceLabs.build = buildId;
    config.sauceLabs.tunnelIdentifier = process.env.TRAVIS_JOB_NUMBER;
    config.browsers = Object.keys(config.customLaunchers);
    config.singleRun = true;
    config.reporters = config.reporters.concat(['saucelabs']);

    config.transports = ['polling'];
  }
}
{'fraction_non_alphanumeric': 0.16021837170662237, 'fraction_numerical': 0.009019700925706147, 'mean_word_length': 2.1307578008915304, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '7005860', 'n_tokens_mistral': 1453, 'n_tokens_neox': 1420, 'n_words': 245}