<commit_before>/*
	MTDLoad.js
	Copyright (c) 2014-2020 <NAME>, et al

	Released under the MIT licence
*/

"use strict";
console.log("MTDLoad 8.0");

var isDev = true;
var storage = {};

var browser = browser || chrome;

console.log("bootstrapping moderndeck.css for extensibility");

var injStyles = document.createElement("link");
injStyles.rel = "stylesheet";
injStyles.href = browser.extension.getURL("sources/moderndeck.css");

document.head.appendChild(injStyles);

console.log("Bootstrapping Sentry");

var injectScript2 = document.createElement("script");
injectScript2.src = browser.extension.getURL("sources/libraries/moduleraid.min.js");
injectScript2.type = "text/javascript";
document.head.appendChild(injectScript2);

console.log("Bootstrapping MTDinject");

var injectScript = document.createElement("script");

function MTDURLExchange(url) {
	var injectURL = document.createElement("div");
	injectURL.setAttribute("type",url);
	injectURL.id = "MTDURLExchange";
	document.head.appendChild(injectURL);
	console.log("injected url exchange with id " + injectURL.id);
}

MTDURLExchange(browser.extension.getURL(""));
injectScript.src = browser.extension.getURL("sources/moderndeck.js");

injectScript.type = "text/javascript";
document.head.appendChild(injectScript);

browser.runtime.sendMessage("getStorage");

browser.runtime.onMessage.addListener((m) => {
	if (m.name === "sendStorage") {
		storage = m.storage;
	}
});

window.addEventListener("message", (event) => {
	if (event.source === window && event.data.type) {
		if (event.data.type === "setStorage") {
			browser.runtime.sendMessage({"name": "setStorage", "content": event.data.message});
		}
		else if (event.data.type === "getStorage") {
			window.postMessage({
				type: "sendStorage",
				message: storage
			}, "*");
		}
	}
});<commit_msg>Change the title from TweetDeck to ModernDeck<commit_after>/*
	MTDLoad.js
	Copyright (c) 2014-2020 <NAME>, et al

	Released under the MIT licence
*/

"use strict";
console.log("MTDLoad 8.0");

var isDev = true;
var storage = {};

var browser = browser || chrome;

console.log("bootstrapping moderndeck.css for extensibility");

var injStyles = document.createElement("link");
injStyles.rel = "stylesheet";
injStyles.href = browser.extension.getURL("sources/moderndeck.css");

document.head.appendChild(injStyles);

console.log("Bootstrapping Sentry");

var injectScript2 = document.createElement("script");
injectScript2.src = browser.extension.getURL("sources/libraries/moduleraid.min.js");
injectScript2.type = "text/javascript";
document.head.appendChild(injectScript2);

console.log("Bootstrapping MTDinject");

var injectScript = document.createElement("script");

function MTDURLExchange(url) {
	var injectURL = document.createElement("div");
	injectURL.setAttribute("type",url);
	injectURL.id = "MTDURLExchange";
	document.head.appendChild(injectURL);
	console.log("injected url exchange with id " + injectURL.id);
}

MTDURLExchange(browser.extension.getURL(""));
injectScript.src = browser.extension.getURL("sources/moderndeck.js");

injectScript.type = "text/javascript";
document.head.appendChild(injectScript);

browser.runtime.sendMessage("getStorage");

browser.runtime.onMessage.addListener((m) => {
	if (m.name === "sendStorage") {
		storage = m.storage;
	}
});

if (document.getElementsByTagName("title").length > 0) {
	document.getElementsByTagName("title")[0].innerHTML = "ModernDeck"
}

window.addEventListener("message", (event) => {
	if (event.source === window && event.data.type) {
		if (event.data.type === "setStorage") {
			browser.runtime.sendMessage({"name": "setStorage", "content": event.data.message});
		}
		else if (event.data.type === "getStorage") {
			window.postMessage({
				type: "sendStorage",
				message: storage
			}, "*");
		}
	}
});
{'fraction_non_alphanumeric': 0.1628887717448603, 'fraction_numerical': 0.00790722192936215, 'mean_word_length': 5.7287234042553195, 'pattern_counts': {'":': 4, '<': 5, '<?xml version=': 0, '>': 10, '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': '7629907', 'n_tokens_mistral': 1259, 'n_tokens_neox': 1190, 'n_words': 217}