<commit_before>if(module.hot) {
	var lastData;
	function check() {
		module.hot.check(function(err, updatedModules) {
			if(err) {
				if(module.hot.status() in {abort:1,fail:1}) {
					console.warn("[HMR] Cannot apply update. Need to do a full reload!");
					window.location.reload();
				} else {
					console.warn("[HMR] Update failed: " + err);
				}
				return;
			}

			if(!updatedModules)
				return console.log("[HMR] No Update found.");

			var upToDate = lastData.indexOf(__webpack_hash__) >= 0;
			if(!upToDate) {
				check();
			}

			if(!updatedModules || updatedModules.length === 0) {
				console.log("[HMR] Update is empty.");
			} else {
				console.log("[HMR] Updated modules:");
				updatedModules.forEach(function(moduleId) {
					console.log("[HMR]  - " + moduleId);
				});
			}
			if(upToDate) {
				console.log("[HMR] App is up to date.");
			}

		});
	}
	window.onmessage = function(event) {
		if(module.hot.status() === "idle" && typeof event.data === "string" && event.data.indexOf("webpackHotUpdate") === 0) {
			lastData = event.data;
			console.log("[HMR] Checking for updates on the server...");
			check();
		}
	};
}<commit_msg>fixed HMR bug<commit_after>if(module.hot) {
	var lastData;
	function check() {
		module.hot.check(function(err, updatedModules) {
			if(err) {
				if(module.hot.status() in {abort:1,fail:1}) {
					console.warn("[HMR] Cannot apply update. Need to do a full reload!");
					window.location.reload();
				} else {
					console.warn("[HMR] Update failed: " + err);
				}
				return;
			}

			if(!updatedModules)
				return console.log("[HMR] No Update found.");

			var upToDate = lastData.indexOf(__webpack_hash__) >= 0;
			if(!upToDate) {
				check();
			}

			if(!updatedModules || updatedModules.length === 0) {
				console.log("[HMR] Update is empty.");
			} else {
				console.log("[HMR] Updated modules:");
				updatedModules.forEach(function(moduleId) {
					console.log("[HMR]  - " + moduleId);
				});
			}
			if(upToDate) {
				console.log("[HMR] App is up to date.");
			}

		});
	}
	window.onmessage = function(event) {
		if(typeof event.data === "string" && event.data.indexOf("webpackHotUpdate") === 0) {
			lastData = event.data;
			if(module.hot.status() === "idle") {
				console.log("[HMR] Checking for updates on the server...");
				check();
			}
		}
	};
}
{'fraction_non_alphanumeric': 0.18329764453961456, 'fraction_numerical': 0.004282655246252677, 'mean_word_length': 3.112676056338028, 'pattern_counts': {'":': 0, '<': 3, '<?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': '7084020', 'n_tokens_mistral': 975, 'n_tokens_neox': 817, 'n_words': 164}