<commit_before>/*
 * Item Loader
 * Quickly Load Scripts & Styles Required
 *
 * Author: <NAME> <<EMAIL>>
 * Copyright: Unreal Designs 2015
 */

//Declare Version
var LoaderVersion = "1.20";

var urlscript = document.currentScript || (function() {
    var scripts = document.getElementsByTagName("script");
    return scripts[scripts.length - 1];
})();

function loader(items, loadedCallback) {

	var elmscript = document.currentScript || (function() {
	    var scripts = document.getElementsByTagName("script");
	    return scripts[scripts.length - 1];
	})();

	var itemURLS = {
		"colorConsole": Array("script", "//rawgit.com/MattCowley/MagicBootTabs/master/src/colorConsole.js"),
		"MagicBootTabs": Array("script", "//rawgit.com/MattCowley/MagicBootTabs/master/src/jquery.magicBootTabs.js"),
		"jQuery": Array("script", "//ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js"),
		"bootStrapJS": Array("script", "//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"),
		"bootStrapCSS": Array("style", "//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"),
		"bootSwatchSuperhero": Array("style", "//bootswatch.com/superhero/bootstrap.css"),
	}

	var itemCount = items.length;

	function loadItem(url, type, callback) {
	    var head = document.getElementsByTagName('head')[0];

	    if (type == "script") {
		    var item = document.createElement('script');
		    item.type = 'text/javascript';
		    item.src = url;
		    item.onreadystatechange = callback;
		    item.onload = callback;
		    head.appendChild(item);
		}
		if (type == "style") {
		    var item = document.createElement('link');
		    item.rel = 'stylesheet';
		    item.href = url;
		    item.onreadystatechange = callback;
		    item.onload = callback;
		    head.appendChild(item);
		}
	}
	function loadNext(index) {
		if (index < itemCount) {
			loadItem(
				itemURLS[items[index]][1],
				itemURLS[items[index]][0],
				function(){ loadNext(index+1); }
			);
		} else {
			loadedCallback();
			urlscript.remove();
			elmscript.remove();
		}
	}
	loadNext(0);

}<commit_msg>Loader (More bootSwatch Options)<commit_after>/*
 * Item Loader
 * Quickly Load Scripts & Styles Required
 *
 * Author: Unreal Designs <<EMAIL>>
 * Copyright: Unreal Designs 2015
 */

//Declare Version
var LoaderVersion = "1.21";

var urlscript = document.currentScript || (function() {
    var scripts = document.getElementsByTagName("script");
    return scripts[scripts.length - 1];
})();

function loader(items, loadedCallback) {

	var elmscript = document.currentScript || (function() {
	    var scripts = document.getElementsByTagName("script");
	    return scripts[scripts.length - 1];
	})();

	var itemURLS = {
		"colorConsole": Array("script", "//rawgit.com/MattCowley/MagicBootTabs/master/src/colorConsole.js"),
		"MagicBootTabs": Array("script", "//rawgit.com/MattCowley/MagicBootTabs/master/src/jquery.magicBootTabs.js"),
		"jQuery": Array("script", "//ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js"),
		"bootStrapJS": Array("script", "//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"),
		"bootStrapCSS": Array("style", "//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"),
		"bootSwatchSuperhero": Array("style", "//bootswatch.com/superhero/bootstrap.css"),
		"bootSwatchDarkly": Array("style", "//bootswatch.com/darkly/bootstrap.css"),
		"bootSwatchJournal": Array("style", "//bootswatch.com/journal/bootstrap.css"),
	}

	var itemCount = items.length;

	function loadItem(url, type, callback) {
	    var head = document.getElementsByTagName('head')[0];

	    if (type == "script") {
		    var item = document.createElement('script');
		    item.type = 'text/javascript';
		    item.src = url;
		    item.onreadystatechange = callback;
		    item.onload = callback;
		    head.appendChild(item);
		}
		if (type == "style") {
		    var item = document.createElement('link');
		    item.rel = 'stylesheet';
		    item.href = url;
		    item.onreadystatechange = callback;
		    item.onload = callback;
		    head.appendChild(item);
		}
	}
	function loadNext(index) {
		if (index < itemCount) {
			loadItem(
				itemURLS[items[index]][1],
				itemURLS[items[index]][0],
				function(){ loadNext(index+1); }
			);
		} else {
			loadedCallback();
			urlscript.remove();
			elmscript.remove();
		}
	}
	loadNext(0);

}
{'fraction_non_alphanumeric': 0.16870246600599217, 'fraction_numerical': 0.010601521087808251, 'mean_word_length': 3.7955801104972378, 'pattern_counts': {'":': 14, '<': 10, '<?xml version=': 0, '>': 8, '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': '1622093', 'n_tokens_mistral': 1603, 'n_tokens_neox': 1430, 'n_words': 246}