<commit_before>/* eslint-disable no-var, no-shadow, dot-notation */

module.exports = function(wallaby) {
  return {
    files: [

      {pattern: 'wwwroot/jspm_packages/system.js', instrument: false},
      {pattern: 'wwwroot/config.js', instrument: false},

      {pattern: 'src/**/*.ts', load: false},
      {pattern: 'test/unit/setup.ts', load: false}

    ],

    tests: [
      {pattern: 'test/unit/**/*.spec.ts', load: false}
    ],

    middleware: (app, express) => {
      app.use('/wwwroot/jspm_packages', express.static(require('path').join(__dirname, 'wwwroot', 'jspm_packages')));
      app.use('/jspm_packages', express.static(require('path').join(__dirname, 'wwwroot', 'jspm_packages')));
    },

    bootstrap: function(wallaby) {
      var promises = [];
      var i = 0;
      var len = wallaby.tests.length;

      wallaby.delayStart();

      System.config({
        paths: {
          '*': '*',
          'src/*': 'src/*'
        }
      });
      for (; i < len; i++) {
        promises.push(System['import'](wallaby.tests[i].replace(/\.js$/, '')));
      }

      System.import('test/unit/setup')
        .then(Promise.all(promises))
        .then(function () {
          wallaby.start();
        }).catch(function (e) {setTimeout(function () { throw e; }, 0); });
    },

    debug: false
  };
};<commit_msg>Update wallaby.js<commit_after>/* eslint-disable no-var, no-shadow, dot-notation */

module.exports = function(wallaby) {
  return {
    files: [

      {pattern: 'wwwroot/jspm_packages/system.js', instrument: false},
      {pattern: 'wwwroot/config.js', instrument: false},

      {pattern: 'src/**/*.ts', load: false},
      {pattern: 'test/unit/setup.ts', load: false}

    ],

    tests: [
      {pattern: 'test/unit/**/*.spec.ts', load: false}
    ],

    middleware: (app, express) => {
      app.use('/wwwroot/jspm_packages', express.static(require('path').join(__dirname, 'wwwroot', 'jspm_packages')));
      app.use('/jspm_packages', express.static(require('path').join(__dirname, 'wwwroot', 'jspm_packages')));
    },

    bootstrap: function(wallaby) {
      var promises = [];
      var i = 0;
      var len = wallaby.tests.length;

      wallaby.delayStart();

      System.config({
        paths: {
          '*': '*',
          'src/*': 'src/*'
        }
      });
      for (; i < len; i++) {
        promises.push(System['import'](wallaby.tests[i].replace(/\.js$/, '')));
      }

      System.import('test/unit/setup')
        .then(function () {
          return Promise.all(promises);
        })
        .then(function () {
          wallaby.start();
        }).catch(function (e) {setTimeout(function () { throw e; }, 0); });
    },

    debug: false
  };
};
{'fraction_non_alphanumeric': 0.2013274336283186, 'fraction_numerical': 0.0014749262536873156, 'mean_word_length': 2.408291457286432, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 10, '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': '3636281', 'n_tokens_mistral': 902, 'n_tokens_neox': 873, 'n_words': 149}