<commit_before>(function(){

	// Fake WScript env
	if (typeof WScript == "undefined") {
		WScript = {
			CreateObject: function(name) {
				return new ActiveXObject(name);
			}
		};
	}

	require("lib/Scintilla.js");
	require("lib/ECMA262.js");
	require("includes/emmet/emmet.js");
	require("includes/MenuCmds.js");
	require("includes/FileStream/FileStream.js");

	var path = function(){
		var fso = new ActiveXObject("Scripting.FileSystemObject");

		return {
			join: function(base) {
				if (this.exists(base)) {
					base = this.parent(base);
				}
				var path = Array.prototype.join.call(arguments, "\\");
				return this.abs(path);
			},
			abs: function(path) {
				return fso.GetAbsolutePathName(path);
			},
			parent: function(path) {
				return fso.GetParentFolderName(path);
			},
			exists: function(path) {
				return fso.FileExists(path);
			},
			copy: function(src, dest){
				fso.CopyFile(src, dest);
			},
			ext: function(filename) {
				return fso.GetExtensionName(filename);
			},
			get: function(filename) {
				return fso.GetFile(filename);
			}
		};
	}();

	var io = function() {
		var stream = new ActiveXObject("ADODB.Stream");
		stream.Charset = "UTF-8";

		return {
			read: function(filename) {
				var result;
				stream.type = 2;
				stream.Open();
				try {
					stream.LoadFromFile(filename);
					result = stream.ReadText();
				} catch (err) {
					result = "";
				}
				stream.Close();
				return result;
			},
			write: function(filename, value) {
				stream.Open();
				stream.WriteText(value),
				stream.SaveToFile(filename),
				stream.Close();
			},
			readBin: function(filename, size) {
				var fs = new FileStream(filename),
					buff,
					result = "",
					i;

				if (size == null) {
					size = -1;
				}

				fs.open();
				fs.loadFromFile(filename);
				buff = fs.readToString(size);
				fs.close();

				for (i = 0; i < buff.length; i += 2) {
					result += String.fromCharCode(parseInt(buff.substr(i, 2), 16));
				}

				return result;
			}
		};
	}();

	var PLUGIN_DIR = (function(path){
		return path.parent(System.scriptFullName);
	})(path);

	var dialog = (function(settings, io, PLUGIN_DIR){
		var pool = {},
			htmlCache = {},
			prof = {
				prompt: {
					oncreate: function(dialog) {
						var d = dialog.handle,
							document = d.document;

						document.getElementById("form").onsubmit = function() {
							var e = document.parentWindow.event;
							dialog.result = document.getElementById("entry").value;
							d.close();
							return false;
						};

						document.getElementById("cancel").onclick = function() {
							d.close();<commit_msg>Remove unnecessary variable<commit_after>(function(){

	// Fake WScript env
	if (typeof WScript == "undefined") {
		WScript = {
			CreateObject: function(name) {
				return new ActiveXObject(name);
			}
		};
	}

	require("lib/Scintilla.js");
	require("lib/ECMA262.js");
	require("includes/emmet/emmet.js");
	require("includes/MenuCmds.js");
	require("includes/FileStream/FileStream.js");

	var path = function(){
		var fso = new ActiveXObject("Scripting.FileSystemObject");

		return {
			join: function(base) {
				if (this.exists(base)) {
					base = this.parent(base);
				}
				var path = Array.prototype.join.call(arguments, "\\");
				return this.abs(path);
			},
			abs: function(path) {
				return fso.GetAbsolutePathName(path);
			},
			parent: function(path) {
				return fso.GetParentFolderName(path);
			},
			exists: function(path) {
				return fso.FileExists(path);
			},
			copy: function(src, dest){
				fso.CopyFile(src, dest);
			},
			ext: function(filename) {
				return fso.GetExtensionName(filename);
			},
			get: function(filename) {
				return fso.GetFile(filename);
			}
		};
	}();

	var io = function() {
		var stream = new ActiveXObject("ADODB.Stream");
		stream.Charset = "UTF-8";

		return {
			read: function(filename) {
				var result;
				stream.type = 2;
				stream.Open();
				try {
					stream.LoadFromFile(filename);
					result = stream.ReadText();
				} catch (err) {
					result = "";
				}
				stream.Close();
				return result;
			},
			write: function(filename, value) {
				stream.Open();
				stream.WriteText(value),
				stream.SaveToFile(filename),
				stream.Close();
			},
			readBin: function(filename, size) {
				var fs = new FileStream(filename),
					buff,
					result = "",
					i;

				if (size == null) {
					size = -1;
				}

				fs.open();
				fs.loadFromFile(filename);
				buff = fs.readToString(size);
				fs.close();

				for (i = 0; i < buff.length; i += 2) {
					result += String.fromCharCode(parseInt(buff.substr(i, 2), 16));
				}

				return result;
			}
		};
	}();

	var PLUGIN_DIR = (function(path){
		return path.parent(System.scriptFullName);
	})(path);

	var dialog = (function(settings, io, PLUGIN_DIR){
		var pool = {},
			htmlCache = {},
			prof = {
				prompt: {
					oncreate: function(dialog) {
						var d = dialog.handle,
							document = d.document;

						document.getElementById("form").onsubmit = function() {
							dialog.result = document.getElementById("entry").value;
							d.close();
							return false;
						};

						document.getElementById("cancel").onclick = function() {
							d.close();
{'fraction_non_alphanumeric': 0.16013824884792627, 'fraction_numerical': 0.004224270353302612, 'mean_word_length': 2.8021897810218976, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '3250143', 'n_tokens_mistral': 2267, 'n_tokens_neox': 1716, 'n_words': 330}