<commit_before>const webpack = require('webpack');

module.exports = config => {
  config.set({
    browsers: ['Chrome'],
    frameworks: ['jasmine'],
    reporters: ['spec', 'kjhtml'],
    files: ['tests.webpack.js'],
    preprocessors: {
      'tests.webpack.js': ['webpack', 'sourcemap']
    },
    webpack: {
      mode: 'development',
      devtool: 'inline-source-map',
      module: {
        rules: [
          { test: /\.jsx?$/, exclude: /node_modules/, loader: 'babel-loader' },
          { test: /\.tsx?$/, exclude: /node_modules/, loader: 'awesome-typescript-loader' }
        ]
      },
      resolve: {
        extensions: ['.ts', '.tsx', '.js', '.jsx']
      },
      plugins: [
        new webpack.DefinePlugin({
          'process.env.NODE_ENV': JSON.stringify('test')
        })
      ]
    },

    webpackServer: {
      noInfo: true
    }
  });

  if (process.env.TRAVIS) {
    const customLaunchers = {
      'SL_Chrome_latest': {
        base: 'SauceLabs',
        browserName: 'chrome',
        version: 'latest',
        platform: 'Linux'
      },
      'SL_Chrome_latest-1': {
        base: 'SauceLabs',
        browserName: 'chrome',
        version: 'latest-1',
        platform: 'Linux'
      },
      'SL_Chrome_latest-2': {
        base: 'SauceLabs',
        browserName: 'chrome',
        version: 'latest-2',
        platform: 'Linux'
      },
      'SL_Firefox_latest': {
        base: 'SauceLabs',
        browserName: 'firefox',
        version: 'latest',
        platform: 'Windows 10'
      },
      'SL_Firefox_latest-1': {
        base: 'SauceLabs',
        browserName: 'firefox',
        version: 'latest-1',
        platform: 'Windows 10'
      },
      'SL_Firefox_latest-2': {
        base: 'SauceLabs',
        browserName: 'firefox',
        version: 'latest-2',
        platform: 'Windows 10'
      },
      'SL_Edge_Latest': {
        base: 'SauceLabs',
        browserName: 'microsoft edge',
        version: 'latest',
        platform: 'Windows 10'
      },
      'SL_Edge_Latest-1': {
        base: 'SauceLabs',
        browserName: 'microsoft edge',
        version: 'latest-1',
        platform: 'Windows 10'
      },
      'SL_Edge_Latest-2': {
        base: 'SauceLabs',
        browserName: 'microsoft edge',
        version: 'latest-2',
        platform: 'Windows 10'
      },
      'SL_InternetExplorer': {
        base: 'SauceLabs',
        browserName: 'internet explorer',
        version: '11.0',
        platform: 'Windows 7'
      },
      'SL_Safari_10': {
        base: 'SauceLabs',
        browserName: 'safari',
        platform: 'OS X 10.11',
        version: '10.0'
      },
      'SL_iOS_latest': {
        base: 'SauceLabs',
        browserName: 'iphone',
        platform: 'iOS 11.2',
        version: 'latest',
        deviceName: 'iPad Simulator'
      },
      'SL_Android_latest': {
        base: 'SauceLabs',
        browserName: 'android',
        platform: 'Linux',
        version: 'latest',
        deviceName: 'Android Emulator'
      },
      'SL_Android_latest-1': {
        base: 'SauceLabs',
        browserName: 'android',
        platform: 'Linux',
        version: 'latest-1',
        deviceName: 'Android Emulator'
      },
      'SL_Android_latest-2': {
        base: 'SauceLabs',
        browserName: 'android',
        platform: 'Linux',
        version: 'latest-2',
        deviceName: 'Android Emulator'
      }
    };

    config.saceLabs = {
      testName: 'Cookies Unit Tests'
    };
    config.singleRun = true;
    config.customLaunchers = customLaunchers;
    config.browsers = Object.keys(customLaunchers);
    config.reporters = ['spec', 'saucelabs'];
  }
};
<commit_msg>Fix Microsoft Edge on saucelabs<commit_after>const webpack = require('webpack');

module.exports = config => {
  config.set({
    browsers: ['Chrome'],
    frameworks: ['jasmine'],
    reporters: ['spec', 'kjhtml'],
    files: ['tests.webpack.js'],
    preprocessors: {
      'tests.webpack.js': ['webpack', 'sourcemap']
    },
    webpack: {
      mode: 'development',
      devtool: 'inline-source-map',
      module: {
        rules: [
          { test: /\.jsx?$/, exclude: /node_modules/, loader: 'babel-loader' },
          { test: /\.tsx?$/, exclude: /node_modules/, loader: 'awesome-typescript-loader' }
        ]
      },
      resolve: {
        extensions: ['.ts', '.tsx', '.js', '.jsx']
      },
      plugins: [
        new webpack.DefinePlugin({
          'process.env.NODE_ENV': JSON.stringify('test')
        })
      ]
    },

    webpackServer: {
      noInfo: true
    }
  });

  if (process.env.TRAVIS) {
    const customLaunchers = {
      'SL_Chrome_latest': {
        base: 'SauceLabs',
        browserName: 'chrome',
        version: 'latest',
        platform: 'Linux'
      },
      'SL_Chrome_latest-1': {
        base: 'SauceLabs',
        browserName: 'chrome',
        version: 'latest-1',
        platform: 'Linux'
      },
      'SL_Chrome_latest-2': {
        base: 'SauceLabs',
        browserName: 'chrome',
        version: 'latest-2',
        platform: 'Linux'
      },
      'SL_Firefox_latest': {
        base: 'SauceLabs',
        browserName: 'firefox',
        version: 'latest',
        platform: 'Windows 10'
      },
      'SL_Firefox_latest-1': {
        base: 'SauceLabs',
        browserName: 'firefox',
        version: 'latest-1',
        platform: 'Windows 10'
      },
      'SL_Firefox_latest-2': {
        base: 'SauceLabs',
        browserName: 'firefox',
        version: 'latest-2',
        platform: 'Windows 10'
      },
      'SL_Edge_Latest': {
        base: 'SauceLabs',
        browserName: 'microsoftedge',
        version: 'latest',
        platform: 'Windows 10'
      },
      'SL_Edge_Latest-1': {
        base: 'SauceLabs',
        browserName: 'microsoftedge',
        version: 'latest-1',
        platform: 'Windows 10'
      },
      'SL_Edge_Latest-2': {
        base: 'SauceLabs',
        browserName: 'microsoftedge',
        version: 'latest-2',
        platform: 'Windows 10'
      },
      'SL_InternetExplorer': {
        base: 'SauceLabs',
        browserName: 'internet explorer',
        version: '11.0',
        platform: 'Windows 7'
      },
      'SL_Safari_10': {
        base: 'SauceLabs',
        browserName: 'safari',
        platform: 'OS X 10.11',
        version: '10.0'
      },
      'SL_iOS_latest': {
        base: 'SauceLabs',
        browserName: 'iphone',
        platform: 'iOS 11.2',
        version: 'latest',
        deviceName: 'iPad Simulator'
      },
      'SL_Android_latest': {
        base: 'SauceLabs',
        browserName: 'android',
        platform: 'Linux',
        version: 'latest',
        deviceName: 'Android Emulator'
      },
      'SL_Android_latest-1': {
        base: 'SauceLabs',
        browserName: 'android',
        platform: 'Linux',
        version: 'latest-1',
        deviceName: 'Android Emulator'
      },
      'SL_Android_latest-2': {
        base: 'SauceLabs',
        browserName: 'android',
        platform: 'Linux',
        version: 'latest-2',
        deviceName: 'Android Emulator'
      }
    };

    config.saceLabs = {
      testName: 'Cookies Unit Tests'
    };
    config.singleRun = true;
    config.customLaunchers = customLaunchers;
    config.browsers = Object.keys(customLaunchers);
    config.reporters = ['spec', 'saucelabs'];
  }
};

{'fraction_non_alphanumeric': 0.1520293199402742, 'fraction_numerical': 0.011945160852450116, 'mean_word_length': 1.9007874015748032, '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': '564849', 'n_tokens_mistral': 2485, 'n_tokens_neox': 2399, 'n_words': 463}