<commit_before>/*!
 * jQuery-Img-Preload - 16th Out 2015
 * https://github.com/miamarti/jquery-img-preload
 *
 * Licensed under the MIT license.
 * http://opensource.org/licenses/MIT
 */
$.imgPreload = function(){
    var options;
    var planned = 0;
    var loaded = 0;
    var callback = new Function();

    if(typeof arguments[1] === 'function'){
        callback = arguments[1];
        options = arguments[2];
    } else {
        options = arguments[1];
    }

    var defaults = {
        attribute: 'url'
    };
    var settings = $.extend({}, defaults, options);

    for(var key in arguments[0]){
        planned++;
    }

    for(var key in arguments[0]){
        $($("<img />").attr("src", arguments[0][key][settings.attribute])).load(function() {
           loaded++;
        });
    }

    var watchdog = function(){
        if(planned === loaded){
            callback();<commit_msg>Update img-preload.js<commit_after>/*!
 * jQuery-Img-Preload - 16th Out 2015
 * https://github.com/miamarti/jquery-img-preload
 *
 * Licensed under the MIT license.
 * http://opensource.org/licenses/MIT
 */
$.imgPreload = function(){
    var options;
    var planned = 0;
    var loaded = 0;
    var callback = new Function();

    if(typeof arguments[1] === 'function'){
        callback = arguments[1];
        options = arguments[2];
    } else {
        options = arguments[1];
    }

    var defaults = {
        attribute: 'url'
    };
    var settings = $.extend({}, defaults, options);

    for(var key in arguments[0]){
        planned++;
    }

    for(var key in arguments[0]){
        (new Image()).src = arguments[0][key][settings.attribute];
        $($("<img />").attr("src", arguments[0][key][settings.attribute])).load(function() {
           loaded++;
        });
    }

    var watchdog = function(){
        if(planned === loaded){
            callback();
{'fraction_non_alphanumeric': 0.1696, 'fraction_numerical': 0.016533333333333334, 'mean_word_length': 2.326241134751773, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '2441736', 'n_tokens_mistral': 581, 'n_tokens_neox': 552, 'n_words': 131}