<commit_before>'use strict';

var babel = require('babel-core');

module.exports = function wallabyConfig() {
  return {
    files: [
      'src/**/*.js',
      {
        pattern: 'test/fixture.js',
        instrument: false
      },
      'package.json'
    ],
    tests: [
      'test/**/*.spec.js'
    ],
    env: {
      type: 'node',
      runner: 'node'
    },
    preprocessors: {
      '**/*.js': function(file) {
        return babel.transform(file.content, {
          sourceMap: true,
          presets: 'es2015'
        });
      }
    },
    testFramework: 'mocha',
    debug: true,
    bootstrap: function bootstrap(wallaby) {
      var path = require('path');
      require(path.join(wallaby.projectCacheDir, 'test', 'fixture'));
    }
  };
};<commit_msg>use babel compiler in wallaby<commit_after>'use strict';

module.exports = function wallabyConfig(wallaby) {
  return {
    files: [
      'src/**/*.js',
      {
        pattern: 'test/fixture.js',
        instrument: false
      },
      'package.json'
    ],
    tests: [
      'test/**/*.spec.js'
    ],
    env: {
      type: 'node',
      runner: 'node'
    },
    compilers: {
      '**/*.js': wallaby.compilers.babel({
        babel: require('babel-core'),
        sourceMap: true,
        presets: ['es2015']
      })
    },
    testFramework: 'mocha',
    debug: true,
    bootstrap: function bootstrap(wallaby) {
      // set NODE_PATH here once we start forking things
      require(require('path').join(wallaby.projectCacheDir, 'test', 'fixture'));
    }
  };
};
{'fraction_non_alphanumeric': 0.16839378238341968, 'fraction_numerical': 0.0051813471502590676, 'mean_word_length': 2.0533596837944663, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '7074090', 'n_tokens_mistral': 518, 'n_tokens_neox': 503, 'n_words': 96}