<commit_before>
mi2JS.comp.add('base/Tpl', 'Base', '',

// component initializer function that defines constructor and adds methods to the prototype 
function(proto, superProto, comp, superComp){

    var mi2 = mi2JS;

    proto.isTransitive = function(){ this.getCompName() == 'base/Tpl' };

    proto.construct = function(el, tpl, parent){
        superProto.construct.call(this, el, tpl, parent);
        this.initTemplate();
    };

    proto.initTemplate = function(){
        this.template = mi2.loadTemplate(this.el);
        this.templateFwd = [];
        if(!this.children) return;
        var count = this.children.length;
        for(var i=0; i<count; i++){
            if(this.children[i].hasAttr('fwd-tpl-data')){
                if(this.children[i].setValue)
                    this.templateFwd.push(this.children[i]);
            }
        }        
    };

    proto.setValue = function(data){
        this.template.setValue(data);
        var count = this.templateFwd.length;
        for(var i=0; i<count; i++){<commit_msg>typo fix<commit_after>
mi2JS.comp.add('base/Tpl', 'Base', '',

// component initializer function that defines constructor and adds methods to the prototype 
function(proto, superProto, comp, superComp){

    var mi2 = mi2JS;

    proto.isTransitive = function(){ return this.getCompName() == 'base/Tpl' };

    proto.construct = function(el, tpl, parent){
        superProto.construct.call(this, el, tpl, parent);
        this.initTemplate();
    };

    proto.initTemplate = function(){
        this.template = mi2.loadTemplate(this.el);
        this.templateFwd = [];
        if(!this.children) return;
        var count = this.children.length;
        for(var i=0; i<count; i++){
            if(this.children[i].hasAttr('fwd-tpl-data')){
                if(this.children[i].setValue)
                    this.templateFwd.push(this.children[i]);
            }
        }        
    };

    proto.setValue = function(data){
        this.template.setValue(data);
        var count = this.templateFwd.length;
        for(var i=0; i<count; i++){
{'fraction_non_alphanumeric': 0.14491362763915547, 'fraction_numerical': 0.005758157389635317, 'mean_word_length': 2.4124386252045826, 'pattern_counts': {'":': 0, '<': 7, '<?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': '298103', 'n_tokens_mistral': 638, 'n_tokens_neox': 631, 'n_words': 125}