<commit_before><!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>Framework test</title>
</head>
<body>

    <p data-action="prom-test"></p>
    <p data-action="prom-test2"></p>
    <ul data-action="cyclearray-testpole" data-co="li-span"></ul>
    <p id="test" data-action="fce-pokusna"></p>

    <script>
        var $$= {"test": "Pokusne vypsani","test2": "Pokusne vypsani 2",
        "testpole": ["ahoj1", "ahoj2", "ahoj3"], "pokusna": function(){document.getElementById("test").innerHTML= "Ahoj";}};
        function $(selector) {return document.querySelectorAll(selector);}
        var zpracuj= $("[data-action]");
        for(el of zpracuj){
            var action= el.dataset.action.split("-");
            switch(action[0]){
                case "prom":
                    el.innerHTML= $$[action[1]];
                break;
                case "cyclearray":
                    var kam= el.innerHTML;
                    el.innerHTML= "";
                    var odkud= action[1];
                    var co= el.dataset.co.split("-");
                    for(radek of $$[odkud]){
                        el.innerHTML+= "<"+co[0]+"><"+co[1]+">"+radek+"</"+co[1]+"></"+co[0]+">";
                    }
                break;
                case "fce":
                    $$[action[1]]();
                break;
            }
        }
    </script>
</body>
</html><commit_msg>Framework? v0.0.0.2<commit_after><!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>Framework test</title>
</head>
<body>

    <p data-action="var-test"></p>
    <p data-action="var-test2"></p>
    <div data-action="arr-testpole" data-row="p-span" data-rowdata='[{"attr":1},{"text":0}]'></div>
    <ul data-action="arr-testpole" data-row="li-span" data-rowdata='[{"attr":1},{"text":0}]'></ul>
    <p id="test" data-action="fce-pokusna"></p>

    <script>
        var $$= {"test": "Pokusne vypsani",
                "test2": "Pokusne vypsani 2",
                "testpole": [
                    ["ahoj1", "neahoj1"],
                    ["ahoj2", "neahoj2"],
                    ["ahoj3", "neahoj3"]
                ],
                "pokusna": function(){
                    document.getElementById("test").innerHTML= "Ahoj";
                    }
                };
        function $(selector) {return document.querySelectorAll(selector);}
        var zpracuj= $("[data-action]");
        for(el of zpracuj){
            var action= el.dataset.action.split("-");
            switch(action[0]){
                case "var":
                    el.innerHTML= $$[action[1]];
                break;
                case "arr":
                    var kam= el.innerHTML;
                    el.innerHTML= "";
                    var odkud= action[1];
                    var cols= el.dataset.row.split("-");
                    var cols_L= cols.length;
                    var cols_data= JSON.parse(el.dataset.rowdata);

                    var i, v, t="";
                    for(row_arr of $$[odkud]){
                        i= 0;
                        v= cols[i]
                        t+= "<"+v;
                        if(typeof cols_data[i].attr !== "undefined") t+= " data-attr='"+row_arr[cols_data[i].attr]+"'";
                        t+= ">";
                        i++;
                        while(i<cols_L){
                            v= cols[i];
                            t+= "<"+v;
                            if(typeof cols_data[i].attr !== "undefined") t+= " data-attr='"+row_arr[cols_data[i].attr]+"'";
                            t+= ">";
                            if(typeof cols_data[i].text !== "undefined") t+= row_arr[cols_data[i].text];
                            t+= "</"+v+">";
                            i++;
                        }
                        t+= "</"+cols[0]+">";
                    }
                    el.innerHTML= t;
                break;
                case "fce":
                    $$[action[1]]();
                break;
            }
        }
    </script>
</body>
</html>
{'fraction_non_alphanumeric': 0.1828248031496063, 'fraction_numerical': 0.009596456692913386, 'mean_word_length': 1.2927241962774958, 'pattern_counts': {'":': 18, '<': 54, '<?xml version=': 0, '>': 53, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '1421784', 'n_tokens_mistral': 1274, 'n_tokens_neox': 1210, 'n_words': 212}