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

"use strict";

var wrapup = require('wrapup');
var path = require('path');

module.exports = function(grunt) {

  grunt.registerMultiTask('wrapup', 'Wraps node modules into web modules', function() {

    var done = this.async();
    var wrup = wrapup(this.data.options);

    if (this.data.requires) {
      for (var name in this.data.requires) {
        var r = this.data.requires[name];
        var file = typeof r == 'string' ? r : name;
        if (typeof r == 'string') wrup.require(name, file);
        else wrup.require(file);
      }
    }

    wrup.up(done);

  });

};
<commit_msg>Add watch option to wrapup task<commit_after>/*
 * grunt-wrapup
 * https://github.com/arian/grunt-wrapup
 *
 * Copyright (c) 2013 <NAME>
 * Licensed under the MIT license.
 */

"use strict";

var wrapup = require('wrapup');
var path = require('path');

module.exports = function(grunt) {

  grunt.registerMultiTask('wrapup', 'Wraps node modules into web modules', function() {

    var done = this.async();
    var wrup = wrapup(this.data.options);

    if (this.data.requires) {
      for (var name in this.data.requires) {
        var r = this.data.requires[name];
        var file = typeof r == 'string' ? r : name;
        if (typeof r == 'string') wrup.require(name, file);
        else wrup.require(file);
      }
    }

    if (this.data.watch) wrup.watch(function(err) {
      if (err) grunt.log.error(err);
    });
    else wrup.up(done);

  });

};

{'fraction_non_alphanumeric': 0.1583229036295369, 'fraction_numerical': 0.0050062578222778474, 'mean_word_length': 2.7890995260663507, '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': '180067', 'n_tokens_mistral': 556, 'n_tokens_neox': 533, 'n_words': 136}