<commit_before>'use strict';

var modulePackage = require('gulp/package'),
    cliPackage = require('/usr/lib/node_modules/gulp/package');

var gulp = require('gulp');
var gutil = require('gulp-util');
var runtime = require('../gulp-runtime');
var Herror = require('herro').Herror;

var chalk = gutil.colors;

runtime.config({
           argv : process.argv.slice(2),
     cliPackage : cliPackage,
  modulePackage : modulePackage
});

//
// ## something could not be found
//
runtime.on('message', function(opts){

  if( !opts.error ){

    opts.message = (opts.message || '').replace(/(`|'|")(\S+)(`|'|")/g,
      function($0,$1,$2,$3){
        return $1 + chalk.cyan($2) + $3;
      }
    );

    gutil.log(
      chalk.yellow('gulp-runtime') + ': ' +
      opts.message
    );

  } else {

    var err = opts.err;

    Herror.call(err, err.message, function(error){

      error.message = new gutil.PluginError({
           plugin : 'gulp-runtime',
          message : err.message
      });

    });

    if( opts.throw ){
      throw err;
    }

    var logIsSilent = (gutil.log).toString();
        logIsSilent = logIsSilent.match(/{(.*)}/)[1].trim() === '';

    if(err.stack){

      err.stack.split('\n').forEach(function(line){
        if( logIsSilent ){
          console.log(line);<commit_msg>_init.js -> _config.js ; added argv to config<commit_after>'use strict';

var modulePackage = require('gulp/package'),
    cliPackage = require('/usr/lib/node_modules/gulp/package');

var gulp = require('gulp');
var gutil = require('gulp-util');

var util = require('runtime/lib/utils');
var runtime = require('../gulp-runtime');

var chalk = gutil.colors;

runtime.config({
           argv : util.args(process.argv.slice(2)),
     cliPackage : cliPackage,
  modulePackage : modulePackage
});

//
// ## something could not be found
//
runtime.on('message', function(opts){

  if( !opts.error ){

    opts.message = (opts.message || '').replace(/(`|'|")(\S+)(`|'|")/g,
      function($0,$1,$2,$3){
        return $1 + chalk.cyan($2) + $3;
      }
    );

    gutil.log(
      chalk.yellow('gulp-runtime') + ': ' +
      opts.message
    );

  } else {

    var err = opts.err;

    util.Error.call(err, err.message, function(error){

      error.message = new gutil.PluginError({
           plugin : 'gulp-runtime',
          message : err.message
      });

    });

    if( opts.throw ){
      throw err;
    }

    var logIsSilent = (gutil.log).toString();
        logIsSilent = logIsSilent.match(/{(.*)}/)[1].trim() === '';

    if(err.stack){

      err.stack.split('\n').forEach(function(line){
        if( logIsSilent ){
          console.log(line);
{'fraction_non_alphanumeric': 0.19481007897705904, 'fraction_numerical': 0.006769462203836028, 'mean_word_length': 2.5800807537012114, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '6503749', 'n_tokens_mistral': 923, 'n_tokens_neox': 890, 'n_words': 158}