<commit_before>var Spaz; if (!Spaz) Spaz = {};


if (!Spaz.Sys) Spaz.Sys = {};


Spaz.Sys.getVersion = function() {
		var appXML = air.NativeApplication.nativeApplication.applicationDescriptor
		var domParser = new DOMParser();
		appXML = domParser.parseFromString(appXML, "text/xml");
		var version = appXML.getElementsByTagName("version")[0].firstChild.nodeValue;
		return version;
};



Spaz.Sys.initUserAgentString = function() {
	window.htmlLoader.userAgent = 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Spaz/' + Spaz.Sys.getVersion();
	// air.URLRequestDefaults.userAgent = air.HTMLLoader.userAgent
	sch.dump(window.htmlLoader.userAgent)
	return window.htmlLoader.userAgent
};
Spaz.Sys.getUserAgent = function() {
	return window.htmlLoader.userAgent
};
Spaz.Sys.setUserAgent = function(uastring) {
	window.htmlLoader.userAgent = uastring
	// air.URLRequestDefaults.userAgent = uastring
	return window.htmlLoader.userAgent
};

Spaz.Sys.isWindows = function() {<commit_msg>updated getVersion to use "versionNumber" node in app descriptor<commit_after>var Spaz; if (!Spaz) Spaz = {};


if (!Spaz.Sys) Spaz.Sys = {};


Spaz.Sys.getVersion = function() {
		var appXML = air.NativeApplication.nativeApplication.applicationDescriptor
		var domParser = new DOMParser();
		appXML = domParser.parseFromString(appXML, "text/xml");
		var version = appXML.getElementsByTagName("versionNumber")[0].firstChild.nodeValue;
		return version;
};



Spaz.Sys.initUserAgentString = function() {
	window.htmlLoader.userAgent = 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Spaz/' + Spaz.Sys.getVersion();
	// air.URLRequestDefaults.userAgent = air.HTMLLoader.userAgent
	sch.dump(window.htmlLoader.userAgent)
	return window.htmlLoader.userAgent
};
Spaz.Sys.getUserAgent = function() {
	return window.htmlLoader.userAgent
};
Spaz.Sys.setUserAgent = function(uastring) {
	window.htmlLoader.userAgent = uastring
	// air.URLRequestDefaults.userAgent = uastring
	return window.htmlLoader.userAgent
};

Spaz.Sys.isWindows = function() {
{'fraction_non_alphanumeric': 0.13186813186813187, 'fraction_numerical': 0.005733397037744864, 'mean_word_length': 5.213649851632048, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '7207345', 'n_tokens_mistral': 726, 'n_tokens_neox': 697, 'n_words': 130}