<commit_before>$(function() {
    if (localStorage.notepad != undefined) {
        var i = 0;
        var j = 0;
        var notas = JSON.parse(localStorage.getItem('notepad'));
        while (notas.length > i) {
            $('tr:last > td[info="nome"]').html(notas[i][j++]);
            $('tr:last > td[info="nota1"]').html(notas[i][j++]);
            $('tr:last > td[info="nota2"]').html(notas[i][j++]);
            $('tr:last > td[info="nota3"]').html(notas[i][j++]);
            $('tr:last > td[info="nota4"]').html(notas[i++][j++]);
            addLinha()
        }
        preencheTab();
    };

    $(document).keypress(function(e) {
        if (e.which == 13 && e.target.nodeName == 'INPUT') {
            e.target.blur();
        }
    });

    $('body').on('dblclick', 'td', function() {
        if ($(this).attr('info') == 'nome' && $(this).children().prop('tagName') != 'INPUT') {
            if ($(this).html() != '---')
                $(this).html('<input type="text" class="form-control" value="' + $(this).html() + '">');
            else
                $(this).html('<input type="text" class="form-control">');
            $(this).children().focus();
        };
    });

    $('body').on('dblclick', 'td', function() {
        if ($(this).attr('info') != 'nome' && $(this).attr('info') != 'exame' && $(this).attr('info') != 'falta' && $(this).children().prop('tagName') != 'INPUT') {
            if ($(this).html() != '---')
                $(this).html('<input type="number" class="form-control" value="' + $(this).html() + '">');
            else
                $(this).html('<input type="number" class="form-control">');
            $(this).children().focus();<commit_msg>BUG SOLVED<commit_after>$(function() {
    if (localStorage.notepad != undefined) {
        var i = 1;
        var j = 0;
        var linha = 2;
        var notas = JSON.parse(localStorage.getItem('notepad'));
        var next;

        $('tr:last > td[info="nome"]').html(notas[0][0]);
        $('tr:last > td[info="nota1"]').html(notas[0][1]);
        $('tr:last > td[info="nota2"]').html(notas[0][2]);
        $('tr:last > td[info="nota3"]').html(notas[0][3]);
        $('tr:last > td[info="nota4"]').html(notas[0][4]);
        while (notas.length > i) {
            next = $('<tr linha="' + linha + '"></tr>');
            next.append('<td info="nome">'+notas[i][j++]+'</td>');
            next.append('<td info="nota1">'+notas[i][j++]+'</td>');
            next.append('<td info="nota2">'+notas[i][j++]+'</td>');
            next.append('<td info="nota3">'+notas[i][j++]+'</td>');
            next.append('<td info="nota4">'+notas[i++][j++]+'</td>');
            next.append('<td info="falta">---</td>');
            next.append('<td info="exame">---</td>');
            $('table').append(next);
            linha++;
        };
        addLinha();
        preencheTab();
    };

    $(document).keypress(function(e) {
        if (e.which == 13 && e.target.nodeName == 'INPUT') {
            e.target.blur();
        }
    });

    $('body').on('dblclick', 'td', function() {
        if ($(this).attr('info') == 'nome' && $(this).children().prop('tagName') != 'INPUT') {
            if ($(this).html() != '---')
                $(this).html('<input type="text" class="form-control" value="' + $(this).html() + '">');
            else
                $(this).html('<input type="text" class="form-control">');
            $(this).children().focus();
        };
    });

    $('body').on('dblclick', 'td', function() {
        if ($(this).attr('info') != 'nome' && $(this).attr('info') != 'exame' && $(this).attr('info') != 'falta' && $(this).children().prop('tagName') != 'INPUT') {
            if ($(this).html() != '---')
                $(this).html('<input type="number" class="form-control" value="' + $(this).html() + '">');
            else
                $(this).html('<input type="number" class="form-control">');
            $(this).children().focus();
{'fraction_non_alphanumeric': 0.2782125725826811, 'fraction_numerical': 0.00782630648826054, 'mean_word_length': 2.3266162888329136, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 39, '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': '2160014', 'n_tokens_mistral': 1354, 'n_tokens_neox': 1313, 'n_words': 184}