<commit_before>'use strict';
var childProcess = require('child_process');
var BIN = require.resolve('ava/cli.js');

module.exports = function (grunt) {
	grunt.registerMultiTask('ava', 'Run AVA tests', function () {
		var cb = this.async();
		var args = this.filesSrc.concat('--color');

		childProcess.execFile(BIN, args, function (err, stdout, stderr) {
			if (err) {
				grunt.warn(stderr);
				cb();
				return;
			}

			grunt.log.write(stderr);
			cb();
		});
	});
};<commit_msg>Add Windows support.<commit_after>'use strict';
var childProcess = require('child_process');
var BIN = require.resolve('ava/cli.js');

module.exports = function (grunt) {
	grunt.registerMultiTask('ava', 'Run AVA tests', function () {
		var cb = this.async();
		var args = this.filesSrc.concat('--color');

		args.unshift(BIN);

		childProcess.execFile('node', args, function (err, stdout, stderr) {
			if (err) {
				grunt.warn(stderr);
				cb();
				return;
			}

			grunt.log.write(stderr);
			cb();
		});
	});
};
{'fraction_non_alphanumeric': 0.18537074148296592, 'fraction_numerical': 0.0, 'mean_word_length': 3.8260869565217392, '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': '708071', 'n_tokens_mistral': 392, 'n_tokens_neox': 343, 'n_words': 73}