<commit_before>var mochaPhantom = require('./mocha-phantomjs');
var spawn = require('child_process').spawn;
var getStaticServer = require('./static-server');
var path = require('path');

var utils = require('./utils');
var lookup = utils.lookup;
var promiseSequence = utils.promiseSequence;

function mochaRun() {
  return new Promise((resolve, reject) => {
    try {
      const proc = spawn(lookup('.bin/nyc', true), [
        '--require', '@babel/register',
        '--exclude',
        'tests/**',
        '--silent',
        '--no-clean',
        lookup('.bin/mocha', true),
        '-R', 'spec',
        '-r', 'tests/setup',
        '-r', '@babel/register',
        'tests'
      ], {
        cwd: path.join(__dirname, '../..'),
        env: process.env<commit_msg>appveyor: use require.resolve for mocha bin in runtests<commit_after>var mochaPhantom = require('./mocha-phantomjs');
var spawn = require('child_process').spawn;
var getStaticServer = require('./static-server');
var path = require('path');

var utils = require('./utils');
var lookup = utils.lookup;
var promiseSequence = utils.promiseSequence;

function mochaRun() {
  return new Promise((resolve, reject) => {
    try {
      const proc = spawn(lookup('.bin/nyc', true), [
        '--require', '@babel/register',
        '--exclude',
        'tests/**',
        '--silent',
        '--no-clean',
        require.resolve('mocha/bin/mocha'),
        '-R', 'spec',
        '-r', 'tests/setup',
        '-r', '@babel/register',
        'tests'
      ], {
        cwd: path.join(__dirname, '../..'),
        env: process.env
{'fraction_non_alphanumeric': 0.19472361809045227, 'fraction_numerical': 0.0, 'mean_word_length': 2.5478841870824054, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '4703960', 'n_tokens_mistral': 495, 'n_tokens_neox': 485, 'n_words': 107}