<commit_before>/*
 * grunt-enb
 * https://github.com/megatolya/grunt-enb
 *
 * Copyright (c) 2013 <NAME>
 * Licensed under the MIT license.
 */

'use strict';

function extend (a, b) { for (var x in b) {a[x] = b[x];  } return a; }

module.exports = function(grunt) {
    var enb = require('enb/lib/server/server-middleware');

    grunt.registerMultiTask('enb', 'enb make for project', function () {
        if (!this.data.targets)
            return grunt.log.error('no targets provided');

        var done = this.async(),
                options = this.options({
                noLog: false
            }),
            enbBuilder = enb.createBuilder({ noLog: options.noLog}),
            tasks = [],
            _this = this,
            async = require('async');

        this.data.env && extend(process.env, this.data.env);
        this.data.beforeBuild && this.data.beforeBuild();
        this.data.targets.forEach(function (target) {
            tasks.push(function (callback) {<commit_msg>Pass task options to enb.createBuilder as is<commit_after>/*
 * grunt-enb
 * https://github.com/megatolya/grunt-enb
 *
 * Copyright (c) 2013 <NAME>
 * Licensed under the MIT license.
 */

'use strict';

function extend (a, b) { for (var x in b) {a[x] = b[x];  } return a; }

module.exports = function(grunt) {
    var enb = require('enb/lib/server/server-middleware');

    grunt.registerMultiTask('enb', 'enb make for project', function () {
        if (!this.data.targets)
            return grunt.log.error('no targets provided');

        var done = this.async(),
                options = this.options({
                noLog: false
            }),
            enbBuilder = enb.createBuilder(options),
            tasks = [],
            _this = this,
            async = require('async');

        this.data.env && extend(process.env, this.data.env);
        this.data.beforeBuild && this.data.beforeBuild();
        this.data.targets.forEach(function (target) {
            tasks.push(function (callback) {
{'fraction_non_alphanumeric': 0.14569865738438587, 'fraction_numerical': 0.003978120338140228, 'mean_word_length': 2.229534510433387, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '6665398', 'n_tokens_mistral': 631, 'n_tokens_neox': 606, 'n_words': 142}