<commit_before>
var concat = require("concat-stream");
var browserify = require("browserify");
var assert = require("assert");
var vm = require("vm");

var b = browserify(__dirname + "/browsercode.js");
b.transform(require("hbsfy"));

// Browser mock
var context = {
    document: {
        body: {}
    }
};

b.bundle().pipe(concat(function(data) {
    console.log("Bundle size", data.length);
    assert(data.length < 15000, "Bundle is too big! Maybe full Handlebars got compiled in?");
    vm.runInNewContext(data.toString(), context);
}));

setTimeout(function() {
    assert.equal(context.document.body.innerHTML.trim(), "<h1>HELLO</h1>");
}, 400);
<commit_msg>Runtime has gotten bigger in hbs 1.3<commit_after>
var concat = require("concat-stream");
var browserify = require("browserify");
var assert = require("assert");
var vm = require("vm");

var b = browserify(__dirname + "/browsercode.js");
b.transform(require("hbsfy"));

// Browser mock
var context = {
    document: {
        body: {}
    }
};

b.bundle().pipe(concat(function(data) {
    console.log("Bundle size", data.length);
    assert(data.length < 20000, "Bundle is too big! Maybe full Handlebars got compiled in?");
    vm.runInNewContext(data.toString(), context);
}));

setTimeout(function() {
    assert.equal(context.document.body.innerHTML.trim(), "<h1>HELLO</h1>");
}, 400);

{'fraction_non_alphanumeric': 0.18081180811808117, 'fraction_numerical': 0.016236162361623615, 'mean_word_length': 4.512195121951219, 'pattern_counts': {'":': 0, '<': 9, '<?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': '3676156', 'n_tokens_mistral': 447, 'n_tokens_neox': 429, 'n_words': 98}