<commit_before>// Karma configuration
// Generated on Tue Nov 03 2015 15:53:18 GMT+0100 (CET)

module.exports = function (config) {
  config.set({

    // base path that will be used to resolve all patterns (eg. files, exclude)
    basePath: '',

    // frameworks to use
    // available frameworks: https://npmjs.org/browse/keyword/karma-adapter
    frameworks: ['mocha', 'sinon-chai', 'jquery-2.1.0'],

    // list of files / patterns to load in the browser
    files: [
      'test/*Spec.js',
      'node_modules/materialize-css/bin/materialize.js'
    ],

    // list of files to exclude
    exclude: [
    ],

    // preprocess matching files before serving them to the browser
    // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
    preprocessors: {
      'src/*.js': ['babel', 'webpack'],
      'test/*Spec.js': ['babel', 'webpack']
    },

    babelPreprocessor: {
      options: {
        presets: ['es2015', 'react', 'stage-0'],
        sourceMap: 'inline'
      }
    },

    // reporters configuration
    reporters: ['mocha'],

    // reporter options
    mochaReporter: {
      showDiff: true
    },

    // web server port
    port: 9876,

    // enable / disable colors in the output (reporters and logs)
    colors: true,

    // level of logging
    // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
    logLevel: config.LOG_INFO,

    // enable / disable watching file and executing tests whenever any file changes<commit_msg>Fixes karma bug that made the tests run twice (#183)<commit_after>// Karma configuration
// Generated on Tue Nov 03 2015 15:53:18 GMT+0100 (CET)

module.exports = function (config) {
  config.set({

    // base path that will be used to resolve all patterns (eg. files, exclude)
    basePath: '',

    // frameworks to use
    // available frameworks: https://npmjs.org/browse/keyword/karma-adapter
    frameworks: ['mocha', 'sinon-chai', 'jquery-2.1.0'],

    // list of files / patterns to load in the browser
    files: [
      {
        pattern: 'test/*Spec.js',
        watched: false,
        included: true,
        served: true
      },
      'node_modules/materialize-css/bin/materialize.js'
    ],

    // list of files to exclude
    exclude: [
    ],

    // preprocess matching files before serving them to the browser
    // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
    preprocessors: {
      'src/*.js': ['babel', 'webpack'],
      'test/*Spec.js': ['babel', 'webpack']
    },

    babelPreprocessor: {
      options: {
        presets: ['es2015', 'react', 'stage-0'],
        sourceMap: 'inline'
      }
    },

    // reporters configuration
    reporters: ['mocha'],

    // reporter options
    // mochaReporter: {
      // showDiff: true
    // },

    // web server port
    port: 9876,

    // enable / disable colors in the output (reporters and logs)
    colors: true,

    // level of logging
    // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
    logLevel: config.LOG_INFO,

    // enable / disable watching file and executing tests whenever any file changes
{'fraction_non_alphanumeric': 0.13044822256568778, 'fraction_numerical': 0.018238021638330756, 'mean_word_length': 2.449893390191898, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '1247153', 'n_tokens_mistral': 1039, 'n_tokens_neox': 942, 'n_words': 281}