<commit_before>var exec   = require('child_process').exec
  , assert = require('assert')
  , fs     = require('fs')
  , rimraf = require('rimraf')
  , path   = require('path')
  , Hogan  = require('../lib/hogan.js');


// help text
exec('node bin/hulk', function (error, stdout, stderr) {
  if (error) throw error;
  assert(typeof stdout == 'string', 'it should have help text.');
  assert(/USAGE/.test(stdout), 'has USAGE text');
  assert(/NOTE/.test(stdout), 'has NOTE text about wildcard');
})

// wrapper options: --wrapper amd
exec('node bin/hulk --wrapper amd test/templates/*', function (error, stdout, stderr) {
  if (error) throw error;
  var define = function (name, dep, template) {
    template = template();
    assert(/list$/.test(name), 'name path ends in list');
    assert(dep[0] === 'hogan.js', 'defined a templates.list object');
    assert(typeof template   == 'object', 'defined a templates.list object');
    assert(typeof template.r == 'function', 'defined a templates.list.r function');
  }
  eval(stdout);
});
<commit_msg>Updated the hulk test to pass<commit_after>var exec   = require('child_process').exec
  , assert = require('assert')
  , fs     = require('fs')
  , rimraf = require('rimraf')
  , path   = require('path')
  , Hogan  = require('../lib/hogan.js');


// help text
exec('node bin/hulk', function (error, stdout, stderr) {
  if (error) throw error;
  assert(typeof stdout == 'string', 'it should have help text.');
  assert(/USAGE/.test(stdout), 'has USAGE text');
  assert(/NOTE/.test(stdout), 'has NOTE text about wildcard');
});

// wrapper options: --wrapper amd
exec('node bin/hulk --wrapper amd test/templates/*', function (error, stdout, stderr) {
  if (error) throw error;
  var define = function (dep, template) {
    template = template(Hogan);
    assert(dep[0] === 'hogan', 'defined a templates.list object');
    assert(typeof template   == 'object', 'defined a templates.list object');
    assert(typeof template.r == 'function', 'defined a templates.list.r function');
  };
  eval(stdout);
});

{'fraction_non_alphanumeric': 0.17560975609756097, 'fraction_numerical': 0.000975609756097561, 'mean_word_length': 3.8949880668257757, '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': '2072761', 'n_tokens_mistral': 649, 'n_tokens_neox': 639, 'n_words': 188}