<commit_before>
/**
 * Exports the current runtime environment, by processing
 * the query-params of the URL (<code>window.location.search</code>
 *
 *  currently supported settings are
 *  <ul>
 *  	<li>browser</li>
 *  	<li>cordova</li>
 *  	<li>android</li>
 *  	<li>ios</li>
 *  	<li>node</li>
 *  </ul>
 *
 * @name EnvDetect
 * @class
 * @memberOf mmir.tools
 * @static
 * @hideconstructor
 *
 * @requires mmirf/paramsParseFunc
 *
 * @exports {Object} a singleton object with information about the runtime setting:
 *  		<pre>{
 *  			isBrowserEnv: [true|false],
 *  			isCordovaEnv: [true|false],
 *  			isNodeEnv: [true|false],
 *  			platform: ["browser" | "android" | "ios" | "node" | "default"],
 *  			envSetting: ["browser" | "android" | "ios" | "node" | "default" | string],
 *  		}</pre>
 *
 */
define(['mmirf/paramsParseFunc'], function(paramsParseFunc) {

	var ctx = typeof window !== 'undefined' ? window : typeof self !== 'undefined' ? self : typeof global !== 'undefined' ? global : this;
	var paramsStr = ctx && ctx.location? ctx.location.search : '?env=node';
	var params = paramsParseFunc( paramsStr );

	var isBrowserEnv;
	var isCordovaEnv;
	var isNodeEnv;<commit_msg>updated docs w.r.t. electron environment<commit_after>
/**
 * Exports the current runtime environment, by processing
 * the query-params of the URL (<code>window.location.search</code>
 *
 *  currently supported settings are
 *  <ul>
 *  	<li>browser</li>
 *  	<li>cordova</li>
 *  	<li>android</li>
 *  	<li>ios</li>
 *  	<li>node</li>
 *  </ul>
 *
 * @name EnvDetect
 * @class
 * @memberOf mmir.tools
 * @static
 * @hideconstructor
 *
 * @requires mmirf/paramsParseFunc
 *
 * @exports {Object} a singleton object with information about the runtime setting:
 *  		<pre>{
 *  			isBrowserEnv: [true|false],
 *  			isCordovaEnv: [true|false],
 *  			isNodeEnv: [true|false],
 *  			platform: ["browser" | "android" | "ios" | "node" | "electron" | "default"],
 *  			envSetting: ["browser" | "android" | "ios" | "node" | "electron" | "default" | string],
 *  		}</pre>
 *
 */
define(['mmirf/paramsParseFunc'], function(paramsParseFunc) {

	var ctx = typeof window !== 'undefined' ? window : typeof self !== 'undefined' ? self : typeof global !== 'undefined' ? global : this;
	var paramsStr = ctx && ctx.location? ctx.location.search : '?env=node';
	var params = paramsParseFunc( paramsStr );

	var isBrowserEnv;
	var isCordovaEnv;
	var isNodeEnv;
{'fraction_non_alphanumeric': 0.16878850102669404, 'fraction_numerical': 0.0, 'mean_word_length': 3.7578125, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 35, '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': '1167068', 'n_tokens_mistral': 865, 'n_tokens_neox': 838, 'n_words': 203}