<commit_before>var controller = require("../_controller")

function WScriptShell() {
	this.environment = x => `(Environment variable ${x})`;
	this.expandenvironmentstrings = function(arg) {
		arg = arg.toLowerCase();
		switch (arg) {
			case "%temp%":
				return "(path)";
			case "%temp%/":
				return "(path)/";
			default:
				controller.kill(`Unknown argument ${arg}`);
		}
	}
	this.exec = this.run = function() {
		const command = Object.keys(arguments).map(key => arguments[key]).join(" ");
		const filename = controller.getUUID()
		console.log("======================================");
		console.log("    Executing", filename, "in the WScript shell")
		console.log("======================================");
		controller.logSnippet(filename, {as: "WScript code"}, command)
		if (process.argv.indexOf("--no-shell-error") == -1)
			throw new Error("If you can read this, re-run box.js with the --no-shell-error flag.");
	}
}

module.exports = function(name) {
	return new Proxy(new WScriptShell(name), {
		get: function(target, name) {
			name = name.toLowerCase()
			switch (name) {
				default:<commit_msg>Added a few things in wscript shell<commit_after>var controller = require("../_controller")

function WScriptShell() {
	this.environment = x => `(Environment variable ${x})`;
	this.specialfolders = x => "(some folder)";
	this.createshortcut = () => ({});
	this.expandenvironmentstrings = function(arg) {
		arg = arg.toLowerCase();
		switch (arg) {
			case "%temp%":
				return "(path)";
			case "%temp%/":
				return "(path)/";
			default:
				controller.kill(`Unknown argument ${arg}`);
		}
	}
	this.exec = this.run = function() {
		const command = Object.keys(arguments).map(key => arguments[key]).join(" ");
		const filename = controller.getUUID()
		console.log("======================================");
		console.log("    Executing", filename, "in the WScript shell")
		console.log("======================================");
		controller.logSnippet(filename, {as: "WScript code"}, command)
		if (process.argv.indexOf("--no-shell-error") == -1)
			throw new Error("If you can read this, re-run box.js with the --no-shell-error flag.");
	}
}

module.exports = function(name) {
	return new Proxy(new WScriptShell(name), {
		get: function(target, name) {
			name = name.toLowerCase()
			switch (name) {
				default:
{'fraction_non_alphanumeric': 0.23261802575107296, 'fraction_numerical': 0.0008583690987124463, 'mean_word_length': 4.297727272727273, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 9, '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': '1041729', 'n_tokens_mistral': 780, 'n_tokens_neox': 713, 'n_words': 174}