<commit_before>$(document).ready(function () {

    $("tr").hide();
    $("#listcurrentauctions").click(function () {
        $("tbody").empty();
        $.getJSON("http://nackademiska.azurewebsites.net/2/getongoingauctions", function (data) {
            $.each(data, function (i, auction) {
                $("tbody").append(
                    "<tr><td>" + auction.Name + " </td>" + "<td>" + auction.Description + "</td>" +
                    "<td>" + auction.EndTime + "</td>" + "<td>" + auction.CategoryId + "</td>" +
                    "<td>" + auction.AcceptPrice +
                    "</td></tr>"
                )
            });
        });
        $("tr").show();
    });
    $("#clearlist").click(function () {
        $("tbody").empty();
        $("tr").hide();
    });
});














/*
$(function() {
    var availableTags = [
      "ActionScript",<commit_msg>Pågående auktioner wip<commit_after>$(document).ready(function () {

    $("tr").hide();
    $("#listcurrentauctions").click(function () {
        $("tbody").empty();
        $.getJSON("http://nackademiska.azurewebsites.net/2/getongoingauctions", function (data) {
            $.each(data, function (i, auction) {
                $("#table2 tbody").append(
                    "<tr><td>" + auction.Name + " </td>" + "<td>" + auction.Description + "</td>" +
                    "<td>" + auction.EndTime + "</td>" + "<td>" + auction.CategoryId + "</td>" +
                    "<td>" + auction.AcceptPrice +
                    "</td></tr>"
                )
            });
        });
        $("tr").show();
    });
    $("#clearlist").click(function () {
        $("tbody").empty();
        $("tr").hide();
    });


        $(".tbody").delegate('tr', 'click', function() {
            alert("You clicked me!");


    });

});














/*
$(function() {
    var availableTags = [
      "ActionScript",
{'fraction_non_alphanumeric': 0.2323980942297512, 'fraction_numerical': 0.0015881418740074113, 'mean_word_length': 1.7272727272727273, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, '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': '2292940', 'n_tokens_mistral': 550, 'n_tokens_neox': 542, 'n_words': 78}