<commit_before>var dexecure = {
	"server": {
		"codecombat.com": "codecombat.dexecure.net",
		"www.codecombat.com": "codecombat.dexecure.net",
		"staging.codecombat.com": "codecombat-staging.dexecure.net",
		"coco-dex.koudashijie.com": "dexecure-test.koudashijie.com"
	},
	"firstPartyDomain": [
		"codecombat.com",
		"www.codecombat.com",
		"staging.codecombat.com",
		"coco-dex.koudashijie.com"
	],
	"optimisationsEnabled": true,
	"debugMode": false,
	"imageMatchRegex": "\\.jpe?g|\\.png|\\.js(\\?.*)?(#.*)?$|\\.css",
	"ignoreRegex": "(aether_worker|worker_world).js", // Ignore URLs that execute as a new web worker
	"pagesEnabled": [
		""
	]
};"use strict";function isFirstPartyDomain(e){for(var r=new URL(e),o=dexecure.firstPartyDomain,t=o.length-1;t>=0;t--)if(o[t].toLowerCase()==r.host.toLowerCase())return!0;return!1}function changeToDexecureURL(e){var r=new URL(e);return dexecure.debugMode&&console.log("inputURL is ",e),dexecure.debugMode&&console.log("inputURL.hostname is ",e.hostname),r.hostname=dexecure.server[r.hostname],dexecure.debugMode&&console.log("changedURL.hostname is ",r.hostname),r.pathname.startsWith("/file") ? r.searchParams.set("resize", "none") : null,dexecure.debugMode&&console.log("changedURL is ",r.href),r.href}function isPageEnabled(e){return!0}dexecure.optimisationsEnabled&&(self.addEventListener("install",function(e){dexecure.debugMode&&console.log("install triggered"),e.waitUntil(self.skipWaiting())}),self.addEventListener("activate",function(e){e.waitUntil(self.clients.claim())}),self.addEventListener("fetch",function(e){dexecure.debugMode&&console.log("fetch triggered");var r={};e.request.headers.has("Accept")&&(r.Accept=e.request.headers.get("Accept"));var o=new Headers(r),t=new RegExp(dexecure.imageMatchRegex,"i"),t1=new RegExp(dexecure.ignoreRegex,"i");if(dexecure.debugMode&&console.log("input url is ",e.request.url),isPageEnabled(e.request.referrer)&&t.test(e.request.url.toLowerCase())&&!t1.test(e.request.url.toLowerCase())&&isFirstPartyDomain(e.request.url)){var n=changeToDexecureURL(e.request.url);n=decodeURIComponent(n),dexecure.debugMode&&console.log("output url is ",n),e.respondWith(fetch(n,{mode:"cors",headers:o}).then(function(r){if(r.ok)return r;throw dexecure.debugMode&&console.log("Responding with original image as optimiser was not reachable ",e.request.url),new Error("Unable to fetch optimised image")}).catch(function(r){return dexecure.debugMode&&(console.log("Sending original image as an error occured when trying to optimise ",e.request.url),console.log("The error was ",r)),fetch(e.request)}))}}));<commit_msg>remove css js optimization from dexecure<commit_after>var dexecure = {
	"server": {
		"codecombat.com": "codecombat.dexecure.net",
		"www.codecombat.com": "codecombat.dexecure.net",
		"staging.codecombat.com": "codecombat-staging.dexecure.net",
		"coco-dex.koudashijie.com": "dexecure-test.koudashijie.com"
	},
	"firstPartyDomain": [
		"codecombat.com",
		"www.codecombat.<EMAIL>",
		"staging.codecombat.com",
		"coco-dex.koudashijie.com"
	],
	"optimisationsEnabled": true,
	"debugMode": false,
	"imageMatchRegex": "\\.jpe?g|\\.png",
	"ignoreRegex": "(aether_worker|worker_world).js", // Ignore URLs that execute as a new web worker
	"pagesEnabled": [
		""
	]
};"use strict";function isFirstPartyDomain(e){for(var r=new URL(e),o=dexecure.firstPartyDomain,t=o.length-1;t>=0;t--)if(o[t].toLowerCase()==r.host.toLowerCase())return!0;return!1}function changeToDexecureURL(e){var r=new URL(e);return dexecure.debugMode&&console.log("inputURL is ",e),dexecure.debugMode&&console.log("inputURL.hostname is ",e.hostname),r.hostname=dexecure.server[r.hostname],dexecure.debugMode&&console.log("changedURL.hostname is ",r.hostname),r.pathname.startsWith("/file") ? r.searchParams.set("resize", "none") : null,dexecure.debugMode&&console.log("changedURL is ",r.href),r.href}function isPageEnabled(e){return!0}dexecure.optimisationsEnabled&&(self.addEventListener("install",function(e){dexecure.debugMode&&console.log("install triggered"),e.waitUntil(self.skipWaiting())}),self.addEventListener("activate",function(e){e.waitUntil(self.clients.claim())}),self.addEventListener("fetch",function(e){dexecure.debugMode&&console.log("fetch triggered");var r={};e.request.headers.has("Accept")&&(r.Accept=e.request.headers.get("Accept"));var o=new Headers(r),t=new RegExp(dexecure.imageMatchRegex,"i"),t1=new RegExp(dexecure.ignoreRegex,"i");if(dexecure.debugMode&&console.log("input url is ",e.request.url),isPageEnabled(e.request.referrer)&&t.test(e.request.url.toLowerCase())&&!t1.test(e.request.url.toLowerCase())&&isFirstPartyDomain(e.request.url)){var n=changeToDexecureURL(e.request.url);n=decodeURIComponent(n),dexecure.debugMode&&console.log("output url is ",n),e.respondWith(fetch(n,{mode:"cors",headers:o}).then(function(r){if(r.ok)return r;throw dexecure.debugMode&&console.log("Responding with original image as optimiser was not reachable ",e.request.url),new Error("Unable to fetch optimised image")}).catch(function(r){return dexecure.debugMode&&(console.log("Sending original image as an error occured when trying to optimise ",e.request.url),console.log("The error was ",r)),fetch(e.request)}))}}));
{'fraction_non_alphanumeric': 0.19653512993262753, 'fraction_numerical': 0.002694898941289702, 'mean_word_length': 8.694029850746269, 'pattern_counts': {'":': 22, '<': 4, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '7536466', 'n_tokens_mistral': 1860, 'n_tokens_neox': 1854, 'n_words': 204}