<commit_before>var browserify = require('browserify');
var _ = {
  each: require('amp-each')
};

var Runner = function(grunt){
  this.grunt = grunt;
};

module.exports = Runner;

Runner.prototype.runBundler = function (brand, options, next){
  
  var self = this;
  
  this.grunt.verbose.writeln('Writing bundle for ' + brand + ':');

  var b = browserify(options.src, options.browserifyOpts);

  this.__applyTransforms(b, options.transforms);
  this.__applyRequires(b, options.requires);
  this.__applyExternals(b, options.externals);
  this.__applyIgnores(b, options.ignores);
  this.__applyExcludes(b, options.excludes);
  
  b.bundle(function(err, buf){
      if(err || !buf){
        next(err);
      } else {
        self.grunt.verbose.oklns('Bundling complete for ' + brand);
        self.grunt.verbose.writeln('Writing to file ' + options.dest);<commit_msg>removing unnecessary output<commit_after>var browserify = require('browserify');
var _ = {
  each: require('amp-each')
};

var Runner = function(grunt){
  this.grunt = grunt;
};

module.exports = Runner;

Runner.prototype.runBundler = function (brand, options, next){
  
  var self = this;
  
  this.grunt.verbose.writeln('Writing bundle for ' + brand + ':');

  var b = browserify(options.src, options.browserifyOpts);

  this.__applyTransforms(b, options.transforms);
  this.__applyRequires(b, options.requires);
  this.__applyExternals(b, options.externals);
  this.__applyIgnores(b, options.ignores);
  this.__applyExcludes(b, options.excludes);
  
  b.bundle(function(err, buf){
      if(err || !buf){
        next(err);
      } else {
        self.grunt.verbose.oklns('Bundling complete for ' + brand);
{'fraction_non_alphanumeric': 0.14584578601315004, 'fraction_numerical': 0.0, 'mean_word_length': 3.997014925373134, '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': '4174021', 'n_tokens_mistral': 578, 'n_tokens_neox': 558, 'n_words': 103}