<commit_before>var fs = require("fs");
var http = require("http");
var os = require("os");
var querystring = require('querystring');
var util = require("util");
var url = require("url");

function h(unsafe)
{
	if (unsafe == null)
	{
		return "";
	}

	return unsafe
		.replace(/&/g, "&amp;")
		.replace(/</g, "&lt;")
		.replace(/>/g, "&gt;")
		.replace(/"/g, "&quot;")
		.replace(/'/g, "&#039;");
}


function getStatus()
{
	var retVal = {}

	retVal["success"] = true;
	retVal["__filename"] = __filename;
	retVal["os.hostname"] = os.hostname();
	retVal["os.type"] = os.type();
	//retVal["os.platform"] = os.platform();
	/*retVal["os.arch"] = os.arch();
	retVal["os.release"] = os.release();
	retVal["os.uptime"] = os.uptime();
	retVal["os.loadavg"] = os.loadavg();
	retVal["os.totalmem"] = os.totalmem();
	retVal["os.freemem"] = os.freemem();
	retVal["os.cpus.length"] = os.cpus().length;
	retVal["os.networkInterfaces"] = os.networkInterfaces();*/
	retVal["process.arch"] = process.arch;
	retVal["process.cwd"] = process.cwd();<commit_msg>added version info to status<commit_after>var fs = require("fs");
var http = require("http");
var os = require("os");
var querystring = require('querystring');
var util = require("util");
var url = require("url");

function h(unsafe)
{
	if (unsafe == null)
	{
		return "";
	}

	return unsafe
		.replace(/&/g, "&amp;")
		.replace(/</g, "&lt;")
		.replace(/>/g, "&gt;")
		.replace(/"/g, "&quot;")
		.replace(/'/g, "&#039;");
}


function getStatus()
{
	var retVal = {}

	retVal["success"] = true;
	retVal["version"] = "node " + process.versions["node"] + " v8 " + process.versions["v8"];
	retVal["__filename"] = __filename;
	retVal["os.hostname"] = os.hostname();
	retVal["os.type"] = os.type();
	//retVal["os.platform"] = os.platform();
	/*retVal["os.arch"] = os.arch();
	retVal["os.release"] = os.release();
	retVal["os.uptime"] = os.uptime();
	retVal["os.loadavg"] = os.loadavg();
	retVal["os.totalmem"] = os.totalmem();
	retVal["os.freemem"] = os.freemem();
	retVal["os.cpus.length"] = os.cpus().length;
	retVal["os.networkInterfaces"] = os.networkInterfaces();*/
	retVal["process.arch"] = process.arch;
	retVal["process.cwd"] = process.cwd();
{'fraction_non_alphanumeric': 0.25137362637362637, 'fraction_numerical': 0.003663003663003663, 'mean_word_length': 4.660621761658031, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4746806', 'n_tokens_mistral': 872, 'n_tokens_neox': 843, 'n_words': 148}