<commit_before>/**
 * Copyright (c) 2015 <NAME>
 * BluJagu, LLC - www.blujagu.com
 * MIT License (MIT) - This header must remain intact.
 **/
var temple = (function() {

    var re = /{{([^}]+)}}/mig;

    var html2Dom = function(html) {
        var container = document.createElement('div');

        container.innerHTML = html;

        return container.firstChild;
    };

    var _build = function(html, dataMap, toDom) {
        if (dataMap) {
            html = html.replace(re, function() {
                return dataMap[RegExp.$1];
            });
        }

        return toDom ? html2Dom(html) : html;
    };

    var toDom = function(html, dataMap) {<commit_msg>Update temple.js<commit_after>/**
 * Copyright (c) 2015 <NAME>
 * BluJagu, LLC - www.blujagu.com
 * MIT License (MIT) - This header must remain intact.
 **/
var temple = (function() {

    var _re = /{{([^}]+)}}/mig;

    var _html2Dom = function(html) {
        var container = document.createElement('div');

        container.innerHTML = html;

        return container.firstChild;
    };

    var _build = function(html, dataMap, toDom) {
        if (dataMap) {
            html = html.replace(_re, function() {
                return dataMap[RegExp.$1];
            });
        }

        return toDom ? _html2Dom(html) : html;
    };

    var toDom = function(html, dataMap) {
{'fraction_non_alphanumeric': 0.1466470154753132, 'fraction_numerical': 0.010316875460574797, 'mean_word_length': 2.1508120649651974, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '279944', 'n_tokens_mistral': 441, 'n_tokens_neox': 412, 'n_words': 105}