<commit_before>//function to insert the script async to prevent the page block
function inserMainScript(url, callback, sID) {
    "use strict";
    var script = document.createElement("script");
    script.async = true;
    script.type = "text/javascript";
    if (sID) {
        script.id = sID;
    }
    if (script.readyState) {
        script.onreadystatechange = function () {
            if (script.readyState === "loaded" || script.readyState === "complete") {
                script.onreadystatechange = null;
                callback();
            }
        };
    } else {
        script.onload = function () {
            callback();
        };
    }
    script.src = url;
    document.getElementsByTagName("head")[0].appendChild(script);
    script = null;
}

(function () {
    "use strict";
    //Insert the plusone button
    window.___gcfg = {
        lang: 'it',
        parsetags: 'explicit'
    };
    inserMainScript("https://apis.google.com/js/plusone.js", function () {
        gapi.plusone.render("pOne-16", {"href": "https://plus.google.com/112281711139690699166", "size": "medium", "rel":"publisher"});
        gapi.follow.render("follwOne-16",{"class":"g-follow", "href":"https://plus.google.com/112281711139690699166", "height": "20", "rel":"publisher"});
    });

    //insert the facebook like button
    var fbInit = function () {
        FB.init({
            appId   : '1404574083193147',
            xfbml   : true,
            version : 'v2.3'
        });
    };
    inserMainScript("http://connect.facebook.net/it_IT/sdk.js", fbInit, "facebook-jssdk");
    
    //Insert the twitter share button
    inserMainScript("https://platform.twitter.com/widgets.js", function () {return; }, "twitter-wjs");
    inserMainScript("main.js", function(){return;});

}());<commit_msg>Change from pluson.js to platform.js<commit_after>//function to insert the script async to prevent the page block
function inserMainScript(url, callback, sID) {
    "use strict";
    var script = document.createElement("script");
    script.async = true;
    script.type = "text/javascript";
    if (sID) {
        script.id = sID;
    }
    if (script.readyState) {
        script.onreadystatechange = function () {
            if (script.readyState === "loaded" || script.readyState === "complete") {
                script.onreadystatechange = null;
                callback();
            }
        };
    } else {
        script.onload = function () {
            callback();
        };
    }
    script.src = url;
    document.getElementsByTagName("head")[0].appendChild(script);
    script = null;
}

(function () {
    "use strict";
    //Insert the plusone button
    window.___gcfg = {
        lang: 'it',
        parsetags: 'explicit'
    };
    inserMainScript("https://apis.google.com/js/platform.js", function () {
        gapi.plusone.render("pOne-16", {"href": "https://plus.google.com/112281711139690699166", "size": "medium", "rel":"publisher"});
        gapi.follow.render("follwOne-16",{"class":"g-follow", "href":"https://plus.google.com/112281711139690699166", "height": "20", "rel":"publisher"});
    });

    //insert the facebook like button
    var fbInit = function () {
        FB.init({
            appId   : '1404574083193147',
            xfbml   : true,
            version : 'v2.3'
        });
    };
    inserMainScript("http://connect.facebook.net/it_IT/sdk.js", fbInit, "facebook-jssdk");
    
    //Insert the twitter share button
    inserMainScript("https://platform.twitter.com/widgets.js", function () {return; }, "twitter-wjs");
    inserMainScript("main.js", function(){return;});

}());
{'fraction_non_alphanumeric': 0.16446644664466448, 'fraction_numerical': 0.03685368536853685, 'mean_word_length': 2.48705656759348, 'pattern_counts': {'":': 14, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, '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': '1984992', 'n_tokens_mistral': 1217, 'n_tokens_neox': 1116, 'n_words': 210}