<commit_before>(function(scope) {

scope = scope || {};

// NOTE: use attributes on the script tag for this file as directives

// export="[name]"		exports polyfill scope into window as 'name'

// NOTE: uses 'window' and 'document' globals

// directives

var thisFile = "components-polyfill.js";

var source, base = "";

(function() {
	var s$ = document.querySelectorAll('[src]');
	Array.prototype.forEach.call(s$, function(s) {
		var src = s.getAttribute('src');
		if (src.slice(-thisFile.length) == thisFile) {
			source = s;
			base = src.slice(0, -thisFile.length);
		}
	});
	source = source || {getAttribute: nop};
})();

var flags = scope.flags = {
	exportAs: source.getAttribute("export")
};

console.log(flags);

if (flags.exportAs) {
	window[flags.exportAs] = scope;
}

window.__exported_components_polyfill_scope__ = scope;


var require = function(inSrc) {
	document.write('<script src="' + base + inSrc + '"></script>');
};

[
	"CustomDOMElements.js",
	"boot.js"
].forEach(require);

})(window.__exported_components_polyfill_scope__);<commit_msg>Add ComponentDocuments dependencies to components-polyfill loader<commit_after>(function(scope) {

scope = scope || {};

// NOTE: use attributes on the script tag for this file as directives

// export="[name]"		exports polyfill scope into window as 'name'

// NOTE: uses 'window' and 'document' globals

// directives

var thisFile = "components-polyfill.js";

var source, base = "";

(function() {
	var s$ = document.querySelectorAll('[src]');
	Array.prototype.forEach.call(s$, function(s) {
		var src = s.getAttribute('src');
		if (src.slice(-thisFile.length) == thisFile) {
			source = s;
			base = src.slice(0, -thisFile.length);
		}
	});
	source = source || {getAttribute: nop};
})();

var flags = scope.flags = {
	exportAs: source.getAttribute("export")
};

console.log(flags);

if (flags.exportAs) {
	window[flags.exportAs] = scope;
}

window.__exported_components_polyfill_scope__ = scope;


var require = function(inSrc) {
	document.write('<script src="' + base + inSrc + '"></script>');
};

[
  "lib/lang.js",
  "ComponentDocuments/path.js",
  "ComponentDocuments/loader.js",
  "ComponentDocuments/parser.js",
	"CustomDOMElements.js",
	"boot.js"
].forEach(require);

})(window.__exported_components_polyfill_scope__);
{'fraction_non_alphanumeric': 0.17009182334936598, 'fraction_numerical': 0.0008745080891998251, 'mean_word_length': 4.621621621621622, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '5695281', 'n_tokens_mistral': 787, 'n_tokens_neox': 764, 'n_words': 170}