<commit_before>'use strict';
var lpad = require('lpad');

module.exports = function (grunt) {
	grunt.registerMultiTask('concurrent', 'Run grunt tasks concurrently', function () {
		var cb = this.async();
		var options = this.options();
		var opts;
		var tasks;

		// Optionally log the task output
		if (options.logConcurrentOutput) {
			opts = { stdio: 'inherit' };
		}

		// Set the tasks based on the config format
		if (this.data.tasks) {
			tasks = this.data.tasks;
		} else {
			tasks = this.data;
		}

		lpad.stdout('    ');
		grunt.util.async.forEach(tasks, function (el, next) {
			grunt.util.spawn({
				grunt: true,
				args: el,
				opts: opts
			}, function (err, result, code) {
				if (err || code > 0) {
					grunt.warn(result.stderr || result.stdout);
				}
				grunt.log.writeln('\n' + result.stdout);
				next();
			});
		}, function () {
			lpad.stdout();
			cb();
		});
	});
};
<commit_msg>Minor code tweaks<commit_after>'use strict';
var lpad = require('lpad');

module.exports = function (grunt) {
	grunt.registerMultiTask('concurrent', 'Run grunt tasks concurrently', function () {
		var spawnOptions;
		var cb = this.async();
		var options = this.options();
		// Set the tasks based on the config format
		var tasks = this.data.tasks || this.data;

		// Optionally log the task output
		if (options.logConcurrentOutput) {
			spawnOptions = { stdio: 'inherit' };
		}

		lpad.stdout('    ');
		grunt.util.async.forEach(tasks, function (el, next) {
			grunt.util.spawn({
				grunt: true,
				args: el,
				opts: spawnOptions
			}, function (err, result, code) {
				if (err || code > 0) {
					grunt.warn(result.stderr || result.stdout);
				}
				grunt.log.writeln('\n' + result.stdout);
				next();
			});
		}, function () {
			lpad.stdout();
			cb();
		});
	});
};

{'fraction_non_alphanumeric': 0.1659217877094972, 'fraction_numerical': 0.0011173184357541898, 'mean_word_length': 2.936263736263736, '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': '7178925', 'n_tokens_mistral': 728, 'n_tokens_neox': 611, 'n_words': 151}