<commit_before>/*
  Estudar tabelísticas por:
  https://github.com/tableless/exemplos/tree/gh-pages/melhorando-exibicao-tabelas-jquery

  Assim, realizar os casos de testes finais.
*/

//metadata = []

var tbody = document.querySelector('tbody');
console.log(tbody);

function readTextFile(file, callback) {
    var rawFile = new XMLHttpRequest();
    rawFile.overrideMimeType("application/json");
    rawFile.open("GET", file, true);
    rawFile.onreadystatechange = function() {
        if (rawFile.readyState === 4 && rawFile.status == "200") {
            callback(rawFile.responseText);
        }
    }
    rawFile.send(null);
}

readTextFile("/static/dumbster.json", function(text){
    var data = JSON.parse(text);
    // metadata = data;
    // console.log(data);
    
    for (var i = 0; i < data.length; i++) {
        var tr = document.createElement('tr');

        var td = document.createElement('td');
        tr.appendChild(td);
        td.innerText = data[i].date;

        var td = document.createElement('td');
        tr.appendChild(td);
        td.innerText = data[i].umid;

        var td = document.createElement('td');
        tr.appendChild(td);
        td.innerText = data[i].temp;

        tbody.appendChild(tr);
    }

});
<commit_msg>agora foi o dataCatcher<commit_after>/*
  Estudar tabelísticas por:
  https://github.com/tableless/exemplos/tree/gh-pages/melhorando-exibicao-tabelas-jquery

  Assim, realizar os casos de testes finais.
*/

//metadata = []
(function() {
    var tbody = document.querySelector('tbody');
    console.log(tbody);

    function readTextFile(file, callback) {
        var rawFile = new XMLHttpRequest();
        rawFile.overrideMimeType("application/json");
        rawFile.open("GET", file, true);
        rawFile.onreadystatechange = function() {
            if (rawFile.readyState === 4 && rawFile.status == "200") {
                callback(rawFile.responseText);
            }
        }
        rawFile.send(null);
    }

    readTextFile("/static/dumbster.json", function(text){
        var data = JSON.parse(text);
        // metadata = data;
        // console.log(data);
        
        for (var i = 0; i < data.length; i++) {
            var tr = document.createElement('tr');

            var td = document.createElement('td');
            tr.appendChild(td);
            td.innerText = data[i].date;

            var td = document.createElement('td');
            tr.appendChild(td);
            td.innerText = data[i].umid;

            var td = document.createElement('td');
            tr.appendChild(td);
            td.innerText = data[i].temp;

            tbody.appendChild(tr);
        }

    });
}());

{'fraction_non_alphanumeric': 0.14733308466989928, 'fraction_numerical': 0.003729951510630362, 'mean_word_length': 2.3193069306930694, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '4878718', 'n_tokens_mistral': 838, 'n_tokens_neox': 814, 'n_words': 152}