<commit_before>window.urlParams = window.location.search.split(/[?&]/).slice(1).map(function(paramPair) {
    return paramPair.split(/=(.+)?/).slice(0, 2);
}).reduce(function (obj, pairArray) {            
    obj[pairArray[0]] = pairArray[1];
    return obj;
}, {});
<commit_msg>inject css into any screensavers. WIP<commit_after>window.urlParams = window.location.search.split(/[?&]/).slice(1).map(function(paramPair) {
    return paramPair.split(/=(.+)?/).slice(0, 2);
}).reduce(function (obj, pairArray) {            
    obj[pairArray[0]] = pairArray[1];
    return obj;
}, {});

var sheet = (function() {
	// Create the <style> tag
	var style = document.createElement("style");

	// WebKit hack :(
	style.appendChild(document.createTextNode(""));

	// Add the <style> element to the page
	document.head.appendChild(style);

	return style.sheet;
})();


sheet.insertRule("body {margin:0; padding:0; cursor:none;}"); /* remove top and left whitespace */
sheet.insertRule("canvas {display:block;}");    /* remove scrollbars */
sheet.insertRule("canvas:focus {outline:0;}"); /* remove blue outline around canvas */

{'fraction_non_alphanumeric': 0.19606087735004477, 'fraction_numerical': 0.011638316920322292, 'mean_word_length': 4.248826291079812, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '587064', 'n_tokens_mistral': 362, 'n_tokens_neox': 352, 'n_words': 72}