<commit_before>require.paths.push("lib");
require.paths.push("vendor");
require.paths.push("vendor/dustjs/lib");
require.paths.push("vendor/coffee/lib");
require.paths.push("vendor/eco/lib");


var BenchWarmer = require("./benchwarmer");
Handlebars = require("handlebars");

var dust = require("dust");
var Mustache = require("mustache");
var ecoExports = require("eco");

eco = function(str) {
  var module = {};
  var template = new Function("module", ecoExports.compile(str));
  template(module);
  return module.exports;
}

var benchDetails = {
  string: {
    context: {},
    handlebars: "Hello world",
    dust: "Hello world",
    mustache: "Hello world",
    eco: "Hello world"
  },
  variables: {
    context: {name: "Mick", count: 30},
    handlebars:  "Hello {{name}}! You have {{count}} new messages.",
    dust: "Hello {name}! You have {count} new messages.",
    mustache: "Hello {{name}}! You have {{count}} new messages.",
    eco: "Hello <%= @name %>! You have <%= @count %> new messages."
  },
  object: {
    context:  { person: { name: "Larry", age: 45 } },
    handlebars: "{{#with person}}{{name}}{{age}}{{/with}}",
    dust: "{#person}{name}{age}{/person}",
    mustache: "{{#person}}{{name}}{{age}}{{/person}}"
  },<commit_msg>Update the eco benchmark handler for the latest API<commit_after>require.paths.push("lib");
require.paths.push("vendor");
require.paths.push("vendor/dustjs/lib");
require.paths.push("vendor/coffee/lib");
require.paths.push("vendor/eco/lib");


var BenchWarmer = require("./benchwarmer");
Handlebars = require("handlebars");

var dust = require("dust");
var Mustache = require("mustache");
var ecoExports = require("eco");

eco = function(str) {
  return ecoExports(str);
}

var benchDetails = {
  string: {
    context: {},
    handlebars: "Hello world",
    dust: "Hello world",
    mustache: "Hello world",
    eco: "Hello world"
  },
  variables: {
    context: {name: "Mick", count: 30},
    handlebars:  "Hello {{name}}! You have {{count}} new messages.",
    dust: "Hello {name}! You have {count} new messages.",
    mustache: "Hello {{name}}! You have {{count}} new messages.",
    eco: "Hello <%= @name %>! You have <%= @count %> new messages."
  },
  object: {
    context:  { person: { name: "Larry", age: 45 } },
    handlebars: "{{#with person}}{{name}}{{age}}{{/with}}",
    dust: "{#person}{name}{age}{/person}",
    mustache: "{{#person}}{{name}}{{age}}{{/person}}"
  },
{'fraction_non_alphanumeric': 0.21182266009852216, 'fraction_numerical': 0.003284072249589491, 'mean_word_length': 4.274891774891775, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '6844070', 'n_tokens_mistral': 839, 'n_tokens_neox': 802, 'n_words': 198}