<commit_before>// proper column size
$('.item').css('max-width', ($(document).width()/3)-8 + 'px');
$('.item img').css('width', ($(document).width()/3)-8 + 'px');

var $container = $('.items');
$(window).smartresize(function(){
    $('.item').css('max-width', ($(document).width()/3)-8 + 'px');
    $('.item img').css('width', ($(document).width()/3)-8 + 'px');
    $container.isotope({
        itemSelector: '.item',
        resizable: false, // disable normal resizing
        animationEngine: 'css' // We want css, or no animation at all
    });
});


var currentimage = 0;

$.fn.preload = function() {
    this.each(function(){
        // Check if url starts with /
        if (this[0] == '/') {
            //console.log(String(this));
            $('<img>')[0].src = this;
        }
    });
}

$(function(){
    
    $container.imagesLoaded(function( $images, $proper, $broken ) {
        $container.isotope({
            itemSelector: '.item',
            resizable: false, // disable normal resizing
            animationEngine: 'css' // We want css, or no animation at all
        });<commit_msg>Show spinner on gallery loading<commit_after>// Show spinner until imagesloaded
$('#spinner').removeClass('hidden');

// proper column size
$('.item').css('max-width', ($(document).width()/3)-8 + 'px');
$('.item img').css('width', ($(document).width()/3)-8 + 'px');

var $container = $('.items');
$(window).smartresize(function(){
    $('.item').css('max-width', ($(document).width()/3)-8 + 'px');
    $('.item img').css('width', ($(document).width()/3)-8 + 'px');
    $container.isotope({
        itemSelector: '.item',
        resizable: false, // disable normal resizing
        animationEngine: 'css' // We want css, or no animation at all
    });
});


var currentimage = 0;

$.fn.preload = function() {
    this.each(function(){
        // Check if url starts with /
        if (this[0] == '/') {
            //console.log(String(this));
            $('<img>')[0].src = this;
        }
    });
}

$(function(){
    
    $container.imagesLoaded(function( $images, $proper, $broken ) {
        $container.isotope({
            itemSelector: '.item',
            resizable: false, // disable normal resizing
            animationEngine: 'css' // We want css, or no animation at all
        });

        // We are loaded, so hide the spinner
        $('.spinner').addClass('hidden');
{'fraction_non_alphanumeric': 0.21548117154811716, 'fraction_numerical': 0.009205020920502092, 'mean_word_length': 2.5317577548005907, 'pattern_counts': {'":': 0, '<': 5, '<?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': '5130594', 'n_tokens_mistral': 738, 'n_tokens_neox': 716, 'n_words': 175}