<commit_before>// Karma configuration file, see link for more information
// https://karma-runner.github.io/0.13/config/configuration-file.html

// set the current location so can use external node_modules in tests
process.env['NODE_MODULE_DIR'] = __dirname + "/dist";

module.exports = function (config) {
  var configuration = {
    basePath: '.',
    frameworks: ['jasmine', '@angular/cli'],
    plugins: [
      require('karma-jasmine'),
      require('karma-electron'),
      require('@angular/cli/plugins/karma')
    ],
    client:{
      useIframe: false, // can't run in iframe if using Electron Webview
      clearContext: false // leave Jasmine Spec Runner output visible in browser
    },
    files: [
      { pattern: "./karma.shim.js", watched: true, included: true, served: true},
      { pattern: './src/test.ts', watched: false }
    ],
    preprocessors: {
      './src/test.ts': ['@angular/cli']<commit_msg>fix for path issue when running unit tests on windows (#34)<commit_after>// Karma configuration file, see link for more information
// https://karma-runner.github.io/0.13/config/configuration-file.html

// set the current location so can use external node_modules in tests
var path = require('path');
process.env['NODE_MODULE_DIR'] = __dirname.replace(new RegExp('\\' + path.sep, 'g'), '/') + "/dist";

module.exports = function (config) {
  var configuration = {
    basePath: '.',
    frameworks: ['jasmine', '@angular/cli'],
    plugins: [
      require('karma-jasmine'),
      require('karma-electron'),
      require('@angular/cli/plugins/karma')
    ],
    client:{
      useIframe: false, // can't run in iframe if using Electron Webview
      clearContext: false // leave Jasmine Spec Runner output visible in browser
    },
    files: [
      { pattern: "./karma.shim.js", watched: true, included: true, served: true},
      { pattern: './src/test.ts', watched: false }
    ],
    preprocessors: {
      './src/test.ts': ['@angular/cli']
{'fraction_non_alphanumeric': 0.1537290715372907, 'fraction_numerical': 0.004058853373921867, 'mean_word_length': 3.1515789473684213, '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': '5235005', 'n_tokens_mistral': 602, 'n_tokens_neox': 584, 'n_words': 163}