<commit_before>var configFactory = require('./configFactory')

module.exports = configFactory(function (defaultConfig) {
  var customConfig = Object.assign({}, defaultConfig, {
    port: 9878,

    proxies: {
      '/script.js': `/base/test/script.js`,
      '/script.html': `/base/test/script.html`,
      '/script.min.html': `/base/test/script.min.html`
    },
    // list of files / patterns to load in the browser
    // all modules including in tests should be included here
    files: [
      /* targets */

      /* extension */
      { pattern: 'src/extension/private/ActionRecordStore.ts' },
      { pattern: 'src/extension/private/libs/*[!(.d)].ts' },

      /* tracker */
      { pattern: 'src/tracker/private/ActionMap.ts' },

      /* dependencies */
      { pattern: 'src/tracker/public/*[!(.d)].ts' },
      { pattern: 'src/tracker/private/*[!(.d)].ts' },

      /* static */
      { pattern: 'test/script.js', served: true, included: false },
      { pattern: 'test/script.html', served: true, included: false },
      { pattern: 'test/script.min.html', served: true, included: false },

      /* tests */
      { pattern: 'test/*.ts' },
      { pattern: 'test/extension/private/*.ts' },
      { pattern: 'test/tracker/private/*.ts' }
    ],
    // preprocess matching files before serving them to the browser
    // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
    preprocessors: {
      /* targets */

      /* extension */
      'src/extension/private/ActionRecordStore.ts': ['karma-typescript', 'coverage'],
      'src/extension/private/libs/*[!(.d)].ts': ['karma-typescript', 'coverage'],

      /* tracker */
      'src/tracker/private/ActionMap.ts': ['karma-typescript', 'coverage'],

      /* dependencies */
      'src/tracker/public/*[!(.d)].ts': ['karma-typescript'],
      'src/tracker/private/*[!(.d)].ts': ['karma-typescript'],

      /* tests */
      'test/*.ts': ['karma-typescript'],
      'test/extension/private/*.ts': ['karma-typescript'],
      'test/tracker/private/*.ts': ['karma-typescript']
    }
  })
  customConfig.karmaTypescriptConfig.reports.html = 'coverage/modules'

  return customConfig
})<commit_msg>[bug] fix dependencies in modules tests<commit_after>var configFactory = require('./configFactory')

module.exports = configFactory(function (defaultConfig) {
  var customConfig = Object.assign({}, defaultConfig, {
    port: 9878,

    proxies: {
      '/script.js': `/base/test/script.js`,
      '/script.html': `/base/test/script.html`,
      '/script.min.html': `/base/test/script.min.html`
    },
    // list of files / patterns to load in the browser
    // all modules including in tests should be included here
    files: [
      /* targets */

      /* extension */
      { pattern: 'src/extension/private/ActionRecordStore.ts' },
      { pattern: 'src/extension/private/libs/*[!(.d)].ts' },

      /* tracker */
      { pattern: 'src/tracker/private/ActionMap.ts' },

      /* dependencies */
      { pattern: 'src/extension/public/*[!(.d)].ts' },
      { pattern: 'src/tracker/public/*[!(.d)].ts' },
      { pattern: 'src/tracker/private/*[!(.d)].ts' },

      /* static */
      { pattern: 'test/script.js', served: true, included: false },
      { pattern: 'test/script.html', served: true, included: false },
      { pattern: 'test/script.min.html', served: true, included: false },

      /* tests */
      { pattern: 'test/*.ts' },
      { pattern: 'test/extension/private/*.ts' },
      { pattern: 'test/tracker/private/*.ts' }
    ],
    // preprocess matching files before serving them to the browser
    // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
    preprocessors: {
      /* targets */

      /* extension */
      'src/extension/private/ActionRecordStore.ts': ['karma-typescript', 'coverage'],
      'src/extension/private/libs/*[!(.d)].ts': ['karma-typescript', 'coverage'],

      /* tracker */
      'src/tracker/private/ActionMap.ts': ['karma-typescript', 'coverage'],

      /* dependencies */
      'src/extension/public/*[!(.d)].ts': ['karma-typescript'],
      'src/tracker/public/*[!(.d)].ts': ['karma-typescript'],
      'src/tracker/private/*[!(.d)].ts': ['karma-typescript'],

      /* tests */
      'test/*.ts': ['karma-typescript'],
      'test/extension/private/*.ts': ['karma-typescript'],
      'test/tracker/private/*.ts': ['karma-typescript']
    }
  })
  customConfig.karmaTypescriptConfig.reports.html = 'coverage/modules'

  return customConfig
})
{'fraction_non_alphanumeric': 0.1952138267228008, 'fraction_numerical': 0.0017726567693330379, 'mean_word_length': 2.7030352748154223, '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': '6048042', 'n_tokens_mistral': 1463, 'n_tokens_neox': 1403, 'n_words': 247}