<commit_before>
module.exports = function(flow, startFn, doneFn){
  var packages = flow.js.packages;
  var queue = flow.files.queue;
  var fconsole = flow.console;

  if (flow.options.jsPack)
  {
    for (var i = 0, file; file = queue[i]; i++)
      if (file.type == 'script' && file.outputContent)
      {
        fconsole.log('Init compression for ' + file.relOutputFilename);
        runProcess(file, fconsole, startFn, doneFn);
      }
  }
  else
  {
    fconsole.log('Skiped.')
    fconsole.log('Use --js-pack or --pack to allow javascript file compess.');
  }
}

module.exports.handlerName = '[js] Compress';

function runProcess(file, fconsole, startFn, doneFn){
  var packStartTime = new Date;<commit_msg>pack scripts with html node reference only<commit_after>
module.exports = function(flow, startFn, doneFn){
  var packages = flow.js.packages;
  var queue = flow.files.queue;
  var fconsole = flow.console;

  if (flow.options.jsPack)
  {
    for (var i = 0, file; file = queue[i]; i++)
      if (file.type == 'script' && file.htmlNode && file.outputContent)
      {
        fconsole.log('Init compression for ' + file.relOutputFilename);
        runProcess(file, fconsole, startFn, doneFn);
      }
  }
  else
  {
    fconsole.log('Skiped.')
    fconsole.log('Use --js-pack or --pack to allow javascript file compess.');
  }
}

module.exports.handlerName = '[js] Compress';

function runProcess(file, fconsole, startFn, doneFn){
  var packStartTime = new Date;
{'fraction_non_alphanumeric': 0.13926630434782608, 'fraction_numerical': 0.001358695652173913, 'mean_word_length': 3.2327586206896552, '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': '6396799', 'n_tokens_mistral': 488, 'n_tokens_neox': 480, 'n_words': 124}