{"size": 838, "ext": "js", "max_stars_repo_path": "fapp/js/update_funcs.js", "max_stars_repo_name": "keiv-fly/smart_chess_db", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "fapp/js/update_funcs.js", "max_issues_repo_name": "keiv-fly/smart_chess_db", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "fapp/js/update_funcs.js", "max_forks_repo_name": "keiv-fly/smart_chess_db", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 36.4347826087, "max_line_length": 74, "alphanum_fraction": 0.4558472554}
var update_eval_table = function (fen, move, fen_prev){
    $.ajax({
        url: "/rest/eval/read-table",
        type: "POST",
        data: JSON.stringify({fen : fen, move: move, fen_prev: fen_prev}),
        contentType: 'application/json',
        dataType: "json",
        success: function(response){
          //$("#eval-tbl > tr").slice(1).remove();
          $("#eval-tbl").find("tr:gt(0)").remove();
          //response = $.parseJSON(data);
          $.each(response, function(i, item) {
            var $tr = $('<tr>').append(
                $('<td>').text(item.score),
                $('<td>').text(item.moves),
                $('<td>').text(item.depth),
                $('<td>').text(item.engine)
            ).appendTo('#eval-tbl');
            //console.log($tr.wrap('<p>').html());
        });
        }
      });
};