<commit_before>$( document ).ready(function() {
    var SERVER_URL = "http://hackabooth.jovanoski.net:8080";
    var currentPhotoUris = [];
    var row = $('.row');

    var generatePhotoHtml = function(photoUrl){
        var photoUrl = SERVER_URL + photoUrl;
        var gridPhotoUrl = photoUrl + '&grid=1';
        var photoHTML = [
            '<div class="col-lg-3 col-md-4 col-xs-6 thumb">',
                '<a class="thumbnail" href="', gridPhotoUrl, '" data-lightbox="image">',
                    '<img class="img-responsive" src="', gridPhotoUrl, '" alt="">',
                '</a>',
          '</div>'
        ];
        return photoHTML.join('');
    };

    function getRecentPhotos() {
        $.ajax({
            url : SERVER_URL + "/recent_images",
            type : "GET",
            crossDomain: true,
            success : processPhotos
        });
    };


    function processPhotos(responsePhotoUris) {
        var newPhotoUris = responsePhotoUris.filter(function(i) {return currentPhotoUris.indexOf(i) < 0;});
        if(newPhotoUris.length > 0) {
            $.each(newPhotoUris, function(i, photoUrl){
                if (i < 3){<commit_msg>err ajax<commit_after>$( document ).ready(function() {
    var SERVER_URL = "http://hackabooth.jovanoski.net:8080";
    var currentPhotoUris = [];
    var row = $('.row');

    var generatePhotoHtml = function(photoUrl){
        var photoUrl = SERVER_URL + photoUrl;
        var gridPhotoUrl = photoUrl + '&grid=1';
        var photoHTML = [
            '<div class="col-lg-3 col-md-4 col-xs-6 thumb">',
                '<a class="thumbnail" href="', gridPhotoUrl, '" data-lightbox="image">',
                    '<img class="img-responsive" src="', gridPhotoUrl, '" alt="">',
                '</a>',
          '</div>'
        ];
        return photoHTML.join('');
    };

    function getRecentPhotos() {
        $.ajax({
            url : SERVER_URL + "/recent_images",
            type : "GET",
            crossDomain: true,
            success : processPhotos,
            error: function(){
                var timeout = setTimeout(function(){
                    getRecentPhotos();
                    clearTimeout(timeout);
                }, 5000);
            }
        });
    };


    function processPhotos(responsePhotoUris) {
        var newPhotoUris = responsePhotoUris.filter(function(i) {return currentPhotoUris.indexOf(i) < 0;});
        if(newPhotoUris.length > 0) {
            $.each(newPhotoUris, function(i, photoUrl){
                if (i < 3){
{'fraction_non_alphanumeric': 0.15078740157480314, 'fraction_numerical': 0.010236220472440945, 'mean_word_length': 1.9240506329113924, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 15, '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': '2917988', 'n_tokens_mistral': 774, 'n_tokens_neox': 731, 'n_words': 150}