<commit_before>$(document).ready(function ()
{
    $.get("php/search.php", function (data)
    {
        var posts = JSON.parse(data);
        posts.sort(function(a,b){return a.distance - b.distance});
        $.get("ajax/card.html", function (data)
        {
            tmp = $("<out>").append(data);
            $(".item-card").each(function (i, obj)
            {
                if (i < posts.length)
                {
                    name = posts[i]["title"];
                    name = name ? posts[i]["title"] : "Untitled";
                    tmp.find("#title").html(name);

                    var distance = posts[i].distance? posts[i].distance.toFixed(1) + " miles away" : "";
                    tmp.find("#distance").html(distance);
                    //todo decription and time
                }
                else
                {
                    tmp.find("#title").html("EOF");
                }
                $(obj).html(tmp.clone());<commit_msg>infinity bants<commit_after>$(document).ready(function ()
{
    $.get("php/search.php", function (data)
    {
        var posts = JSON.parse(data);
	console.log(data);
        posts.sort(function(a,b){return a.distance - b.distance});
        $.get("ajax/card.html", function (data)
        {
            tmp = $("<out>").append(data);
            $(".item-card").each(function (i, obj)
            {
                if (i < posts.length)
                {
                    name = posts[i]["title"];
                    name = name ? posts[i]["title"] : "Untitled";
                    tmp.find("#title").html(name);

                    var distance = posts[i].distance? posts[i].distance.toFixed(1) + " miles away" : "&#x221e; miles away";
                    tmp.find("#distance").html(distance);
                    //todo decription and time
                }
                else
                {
                    tmp.find("#title").html("EOF");
		    tmp.find("#distance").html("&#x221e; miles away");
                }
                $(obj).html(tmp.clone());
{'fraction_non_alphanumeric': 0.17145640526059425, 'fraction_numerical': 0.003896736483195324, 'mean_word_length': 1.382830626450116, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '1616472', 'n_tokens_mistral': 590, 'n_tokens_neox': 552, 'n_words': 91}