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

  $('.container img').each(function(index, it){

    var image_src = it.attr('lazy-src');
    it.attr('src',image_src);
    
    console.log(it,index);

  });


})<commit_msg>Adding Organic load<commit_after>Object.prototype.$$ = function(){
  return $(this);
}


function loadImage(image){


      var lazySrc = image.attr('lazy-src');
      image.attr('src', lazySrc);




}


function randomList(){
  var list = [];

  function generateList(lowEnd,highEnd){
    var glist = [];
    for (var i = lowEnd; i <= highEnd; i++) {
      glist.push(i);
    }
    return glist;
  }

  function shuffleList(_list) {
    var i = _list.length, t, j;
    _list = _list.slice();
    while (--i) t = _list[i], _list[i] = _list[j = ~~(Math.random() * (i+1))], _list[j] = t;
    return _list;
  }

  function shuffle_FisherYates(array) {
    var currentIndex = array.length, temporaryValue, randomIndex ;

    // While there remain elements to shuffle...
    while (0 !== currentIndex) {

      // Pick a remaining element...
      randomIndex = Math.floor(Math.random() * currentIndex);
      currentIndex -= 1;

      // And swap it with the current element.
      temporaryValue = array[currentIndex];
      array[currentIndex] = array[randomIndex];
      array[randomIndex] = temporaryValue;
    }

    return array;
  }

  return {

    init: function(size){
      list = generateList(0,size);
      list = shuffle_FisherYates(list);
      return list;
    },
    pull: function(){
      return list.pop();
    }

  }


}

$(document).ready(function(){
  var schedule = randomList();
  var images = $('.container img');

      schedule.init(images.length);

      images.each(function(index,it){

    setTimeout(function() {

      loadImage(it.$$());

    },  schedule.pull() +'99');

  });


});
{'fraction_non_alphanumeric': 0.1651226158038147, 'fraction_numerical': 0.0032697547683923707, 'mean_word_length': 2.7700205338809036, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 3, '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': '1726295', 'n_tokens_mistral': 622, 'n_tokens_neox': 582, 'n_words': 129}