<commit_before>// Karma configuration
// Generated on Thu Nov 03 2016 06:11:50 GMT+0100 (Paris, Madrid)
'use strict';

const signaling = require('foglet-signaling-server');

module.exports = function (config) {
  config.set({
    hostname: 'localhost',
    // 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: [ 'browserify', 'mocha', 'chai', 'express-http-server' ],
    plugins: [
      'karma-browserify',
      'karma-mocha',
      'karma-chai',
      'karma-coverage',
      'karma-mocha-reporter',
      'karma-firefox-launcher',
      'karma-express-http-server'
    ],
    // list of files / patterns to load in the browser
    files: [
      'tests/*-test.js'
    ],
    preprocessors: {
      'tests/*-test.js': [ 'browserify' ]
    },
    // list of files to exclude
    exclude: [],
    // browserify with babelify
    browserify: {
      debug: true,
      transform: [
        [ 'babelify', {presets: [ 'es2015' ]} ],
        'browserify-istanbul'
      ],
    },
    extensions: [ '.js' ],
    port: 3001,
    expressHttpServer: {
      port: 4001,
      // inject foglet signaling server
      appVisitor: signaling
    },
    client: {
      mocha: {
        timeout: 3000
      }
    },
    reporters: [ 'coverage', 'mocha' ],
    coverageReporter: {
      // specify a common output directory
      dir: 'coverage',
      reporters: [
        // reporters not supporting the `file` property
        // { type: 'html', subdir: 'report-html' },
        // { type: 'lcov', subdir: 'report-lcov' },
        // reporters supporting the `file` property, use `subdir` to directly
        // output them in the `dir` directory
        // { type: 'cobertura', subdir: '.', file: 'cobertura.txt' },
        { type: 'lcovonly', subdir: '.' },
        { type: 'text', subdir: '.', file: 'text.txt' },
        { type: 'text-summary', subdir: '.'  }
      ],
      instrumenterOptions: {
        istanbul: { noCompact: true }
      }
    },
    // Continuous Integration mode
    // if true, Karma captures browsers, runs the tests and exits
    autoWatch: true,<commit_msg>increase timeout value of tests with karma<commit_after>// Karma configuration
// Generated on Thu Nov 03 2016 06:11:50 GMT+0100 (Paris, Madrid)
'use strict';

const signaling = require('foglet-signaling-server');

module.exports = function (config) {
  config.set({
    hostname: 'localhost',
    // 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: [ 'browserify', 'mocha', 'chai', 'express-http-server' ],
    plugins: [
      'karma-browserify',
      'karma-mocha',
      'karma-chai',
      'karma-coverage',
      'karma-mocha-reporter',
      'karma-firefox-launcher',
      'karma-express-http-server'
    ],
    // list of files / patterns to load in the browser
    files: [
      'tests/*-test.js'
    ],
    preprocessors: {
      'tests/*-test.js': [ 'browserify' ]
    },
    // list of files to exclude
    exclude: [],
    // browserify with babelify
    browserify: {
      debug: true,
      transform: [
        [ 'babelify', {presets: [ 'es2015' ]} ],
        'browserify-istanbul'
      ],
    },
    extensions: [ '.js' ],
    port: 3001,
    expressHttpServer: {
      port: 4001,
      // inject foglet signaling server
      appVisitor: signaling
    },
    client: {
      mocha: {
        timeout: 5000
      }
    },
    reporters: [ 'coverage', 'mocha' ],
    coverageReporter: {
      // specify a common output directory
      dir: 'coverage',
      reporters: [
        // reporters not supporting the `file` property
        // { type: 'html', subdir: 'report-html' },
        // { type: 'lcov', subdir: 'report-lcov' },
        // reporters supporting the `file` property, use `subdir` to directly
        // output them in the `dir` directory
        // { type: 'cobertura', subdir: '.', file: 'cobertura.txt' },
        { type: 'lcovonly', subdir: '.' },
        { type: 'text', subdir: '.', file: 'text.txt' },
        { type: 'text-summary', subdir: '.'  }
      ],
      instrumenterOptions: {
        istanbul: { noCompact: true }
      }
    },
    // Continuous Integration mode
    // if true, Karma captures browsers, runs the tests and exits
    autoWatch: true,
{'fraction_non_alphanumeric': 0.1491013978256046, 'fraction_numerical': 0.014200133126248059, 'mean_word_length': 2.1903750884642603, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '2589600', 'n_tokens_mistral': 1500, 'n_tokens_neox': 1406, 'n_words': 367}