<commit_before>// Highly inspired by [gulpjs](https://github.com/gulpjs/gulp/blob/master/bin/gulp.js)
// Credit to [<NAME>](https://github.com/contra)

'use strict';

var argv = require('minimist')(process.argv.slice(2)),
    Liftoff = require('liftoff'),
    gutil = require('gulp-util');

var runner = function(cb, command) {
  var G = new Liftoff({
    name: 'gulp'
  });

  G.on('require', function (name) {
    gutil.log(gutil.colors.cyan('[-Loading:] ' + name));
  }).on('requireFail', function (name, err) {
    gutil.log(
      gutil.colors.red('[-Error:] Unable to load:'),
      gutil.colors.red(name),
      gutil.colors.red(err)
    );
  });

  // attach the gulp task name into the cb namespace
  // it will be resolved during the run time
  cb.command = command;

  G.launch({
    cwd: argv.cwd,
    configPath: argv.gulpfile,
    require: argv.require,
    completion: argv.completion
  }, cb );
};

module.exports = runner;<commit_msg>update the runner with new v8flag from liftOff<commit_after>// Highly inspired by [gulpjs](https://github.com/gulpjs/gulp/blob/master/bin/gulp.js)
// Credit to [<NAME>](https://github.com/contra)

'use strict';

var argv = require('minimist')(process.argv.slice(2)),
    Liftoff = require('liftoff'),
    gutil = require('gulp-util');

var runner = function(cb, command) {
  var G = new Liftoff({
    name: 'em',
    v8flags: ['--harmony'] // to support all flags: require('v8flags');
  })
    .on('require', function (name) {
      gutil.log(gutil.colors.cyan('[-Loading:] ' + name));
    }).on('requireFail', function (name, err) {
      gutil.log(
        gutil.colors.red('[-Error:] Unable to load:'),
        gutil.colors.red(name),
        gutil.colors.red(err)
      );
    });

  // attach the gulp task name into the cb namespace
  // it will be resolved during the run time
  cb.command = command;

  G.launch({
    cwd: argv.cwd,
    configPath: argv.gulpfile,
    require: argv.require,
    completion: argv.completion,
    verbose: argv.verbose
  }, cb );
};

module.exports = runner;
{'fraction_non_alphanumeric': 0.171875, 'fraction_numerical': 0.00244140625, 'mean_word_length': 3.1144578313253013, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 4, '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': '3995260', 'n_tokens_mistral': 728, 'n_tokens_neox': 704, 'n_words': 163}