<commit_before>var s = document.createElement('script');
s.src = "https://rawgit.com/joshisa/huemix-blopscotch/master/js/hopscotch.highlight.js";
s.onload = function() {
    this.parentNode.removeChild(this);
};
(document.head || document.documentElement).appendChild(s);

chrome.extension.sendMessage({}, function(response) {
    var readyStateCheckInterval = setInterval(function() {
      if (document.readyState === "complete") {
        clearInterval(readyStateCheckInterval);
        var prefix = "[Huemix Blopscotch]] ";
        console.log(prefix + "current page URL is: " + location.href);
        // https://api.github.com/repos/joshisa/huemix-blopscotch/git/trees/master?recursive=1
        whitelist = ["tourlets/demo.js", 
                    "tourlets/jstart.js",
                    "tourlets/jupyter.js",
                    "tourlets/spark.js"];
        console.log(prefix + "Number of Tourlets defined : " + whitelist.length);
        var i = 0;
        while (whitelist[i]) {
            // https://rawgit.com/joshisa/huemix-blopscotch/master/ + tourlets.path
            console.log(prefix + "Loading " + whitelist[i].path);
            proxyXHR.get('https://rawgit.com/joshisa/huemix-blopscotch/master/' + whitelist[i].path).onSuccess(function (data) {
                eval(data);
            }).onFailure(function (status) {
               console.log("HTTP Error " + status + " while retrieving data for the Huemix Blopscotch Tour Chrome Plugin");
            });
            i++;
        }
        console.log(prefix + "Hopscotch Dependencies successfully injected");
      }
    }, 10);
});
<commit_msg>Update inject.js<commit_after>var s = document.createElement('script');
s.src = "https://rawgit.com/joshisa/huemix-blopscotch/master/js/hopscotch.highlight.js";
s.onload = function() {
    this.parentNode.removeChild(this);
};
(document.head || document.documentElement).appendChild(s);

chrome.extension.sendMessage({}, function(response) {
    var readyStateCheckInterval = setInterval(function() {
      if (document.readyState === "complete") {
        clearInterval(readyStateCheckInterval);
        var prefix = "[Huemix Blopscotch]] ";
        console.log(prefix + "current page URL is: " + location.href);
        // https://api.github.com/repos/joshisa/huemix-blopscotch/git/trees/master?recursive=1
        whitelist = ["hoplet/demo.js", 
                    "hoplet/jstart.js",
                    "hoplet/jupyter.js",
                    "hoplet/spark.js"];
        console.log(prefix + "Number of Tourlets defined : " + whitelist.length);
        var i = 0;
        while (whitelist[i]) {
            // https://rawgit.com/joshisa/huemix-blopscotch/master/ + whitelist.path
            console.log(prefix + "Loading " + whitelist[i].path);
            proxyXHR.get('https://rawgit.com/joshisa/huemix-blopscotch/master/' + whitelist[i].path).onSuccess(function (data) {
                eval(data);
            }).onFailure(function (status) {
               console.log("HTTP Error " + status + " while retrieving data for the Huemix Blopscotch Tour Chrome Plugin");
            });
            i++;
        }
        console.log(prefix + "Hopscotch Dependencies successfully injected");
      }
    }, 10);
});

{'fraction_non_alphanumeric': 0.1460639606396064, 'fraction_numerical': 0.0024600246002460025, 'mean_word_length': 2.5091693635382954, 'pattern_counts': {'":': 0, '<': 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': '595629', 'n_tokens_mistral': 1037, 'n_tokens_neox': 989, 'n_words': 155}