<commit_before>'use strict';

var webdriverConfig = {
  hostname: 'fe.nhnent.com',
  port: 4444,
  remoteHost: true
};

/**
 * manipulate config by server
 * @param {Object} defaultConfig - base configuration
 * @param {'ne'|null|undefined} server - ne: team selenium grid, null or undefined: local machine
 */
function setConfig(defaultConfig, server) {
  if (server === 'ne') {
    defaultConfig.customLaunchers = {
      'IE8': {
        base: 'WebDriver',
        config: webdriverConfig,
        browserName: 'internet explorer',
        version: '8'
      },
      'IE9': {
        base: 'WebDriver',
        config: webdriverConfig,
        browserName: 'internet explorer',
        version: '9'
      },
      'IE10': {
        base: 'WebDriver',
        browserName: 'internet explorer',
        config: webdriverConfig,
        version: '10'
      },
      'IE11': {
        base: 'WebDriver',
        config: webdriverConfig,
        browserName: 'internet explorer',
        version: '11',
        platformName: 'windows'
      },
      'Edge': {
        base: 'WebDriver',
        config: webdriverConfig,
        browserName: 'MicrosoftEdge'
      },
      'Chrome-WebDriver': {
        base: 'WebDriver',
        config: webdriverConfig,
        browserName: 'chrome'
      },
      'Firefox-WebDriver': {
        base: 'WebDriver',
        config: webdriverConfig,
        browserName: 'firefox'
      }
      // 'Safari-WebDriver': {
      //     base: 'WebDriver',
      //     config: webdriverConfig,
      //     browserName: 'safari'
      // }
    };
    defaultConfig.browsers = [
      'IE8',
      'IE9',
      'IE10',
      'IE11',
      'Edge',
      'Chrome-WebDriver',
      'Firefox-WebDriver'
      // 'Safari-WebDriver'
    ];
    defaultConfig.reporters.push('coverage');
    defaultConfig.reporters.push('junit');
    defaultConfig.coverageReporter = {
      dir: 'report/coverage/',
      reporters: [{
        type: 'html',
        subdir: function(browser) {
          return 'report-html/' + browser;
        }
      },
      {
        type: 'cobertura',
        subdir: function(browser) {
          return 'report-cobertura/' + browser;
        },
        file: 'cobertura.txt'
      }]
    };
    defaultConfig.junitReporter = {
      outputDir: 'report/junit',
      suite: ''
    };
  } else {
    defaultConfig.browsers = ['ChromeHeadless'];
  }
}

module.exports = function(config) {
  var defaultConfig = {
    basePath: './',
    frameworks: ['fixture', 'jasmine-ajax', 'jasmine'],
    files: [
      'test/*.spec.js'
    ],
    preprocessors: {
      './test/*.spec.js': ['webpack', 'sourcemap']
    },
    reporters: ['dots'],
    webpack: {
      mode: 'development',
      devtool: 'inline-source-map',
      module: {
        rules: [
          {
            test: /\.m?js$/,
            exclude: /node_modules/,
            loader: 'eslint-loader',
            enforce: 'pre'
          }
        ]
      }
    },

    port: 9876,
    colors: true,
    logLevel: config.LOG_INFO,
    autoWatch: true,
    singleRun: true
  };

  /* eslint-disable */
    setConfig(defaultConfig, process.env.KARMA_SERVER);
    config.set(defaultConfig);
};
<commit_msg>chore: exclude IE8 test (#51)<commit_after>'use strict';

var webdriverConfig = {
  hostname: 'fe.nhnent.com',
  port: 4444,
  remoteHost: true
};

/**
 * manipulate config by server
 * @param {Object} defaultConfig - base configuration
 * @param {'ne'|null|undefined} server - ne: team selenium grid, null or undefined: local machine
 */
function setConfig(defaultConfig, server) {
  if (server === 'ne') {
    defaultConfig.customLaunchers = {
      'IE8': {
        base: 'WebDriver',
        config: webdriverConfig,
        browserName: 'internet explorer',
        version: '8'
      },
      'IE9': {
        base: 'WebDriver',
        config: webdriverConfig,
        browserName: 'internet explorer',
        version: '9'
      },
      'IE10': {
        base: 'WebDriver',
        browserName: 'internet explorer',
        config: webdriverConfig,
        version: '10'
      },
      'IE11': {
        base: 'WebDriver',
        config: webdriverConfig,
        browserName: 'internet explorer',
        version: '11',
        platformName: 'windows'
      },
      'Edge': {
        base: 'WebDriver',
        config: webdriverConfig,
        browserName: 'MicrosoftEdge'
      },
      'Chrome-WebDriver': {
        base: 'WebDriver',
        config: webdriverConfig,
        browserName: 'chrome'
      },
      'Firefox-WebDriver': {
        base: 'WebDriver',
        config: webdriverConfig,
        browserName: 'firefox'
      }
      // 'Safari-WebDriver': {
      //     base: 'WebDriver',
      //     config: webdriverConfig,
      //     browserName: 'safari'
      // }
    };
    defaultConfig.browsers = [
      // 'IE8',
      'IE9',
      'IE10',
      'IE11',
      'Edge',
      'Chrome-WebDriver',
      'Firefox-WebDriver'
      // 'Safari-WebDriver'
    ];
    defaultConfig.reporters.push('coverage');
    defaultConfig.reporters.push('junit');
    defaultConfig.coverageReporter = {
      dir: 'report/coverage/',
      reporters: [{
        type: 'html',
        subdir: function(browser) {
          return 'report-html/' + browser;
        }
      },
      {
        type: 'cobertura',
        subdir: function(browser) {
          return 'report-cobertura/' + browser;
        },
        file: 'cobertura.txt'
      }]
    };
    defaultConfig.junitReporter = {
      outputDir: 'report/junit',
      suite: ''
    };
  } else {
    defaultConfig.browsers = ['ChromeHeadless'];
  }
}

module.exports = function(config) {
  var defaultConfig = {
    basePath: './',
    frameworks: ['fixture', 'jasmine-ajax', 'jasmine'],
    files: [
      'test/*.spec.js'
    ],
    preprocessors: {
      './test/*.spec.js': ['webpack', 'sourcemap']
    },
    reporters: ['dots'],
    webpack: {
      mode: 'development',
      devtool: 'inline-source-map',
      module: {
        rules: [
          {
            test: /\.m?js$/,
            exclude: /node_modules/,
            loader: 'eslint-loader',
            enforce: 'pre'
          }
        ]
      }
    },

    port: 9876,
    colors: true,
    logLevel: config.LOG_INFO,
    autoWatch: true,
    singleRun: true
  };

  /* eslint-disable */
    setConfig(defaultConfig, process.env.KARMA_SERVER);
    config.set(defaultConfig);
};

{'fraction_non_alphanumeric': 0.1462124747239073, 'fraction_numerical': 0.008554985223207343, 'mean_word_length': 1.9121376811594204, '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': '1144734', 'n_tokens_mistral': 2057, 'n_tokens_neox': 2005, 'n_words': 388}