<commit_before>define(['Ti/_/lang', 'Tizen/_/SystemInfo/SystemInfoProperty', 'Tizen/_/SystemInfo/SystemInfoCpu', 'Tizen/_/SystemInfo/SystemInfoStorage',
	'Tizen/_/SystemInfo/SystemInfoDeviceCapability', 'Tizen/_/SystemInfo/SystemInfoCellularNetwork', 'Tizen/_/SystemInfo/SystemInfoSIM',
	'Tizen/_/SystemInfo/SystemInfoStorageUnit', 'Tizen/_/WebAPIError', 'Ti/_/Evented'],
	function(lang, SystemInfoProperty, SystemInfoCpu, SystemInfoStorage, SystemInfoDeviceCapability, SystemInfoCellularNetwork,
			 SystemInfoSIM, SystemInfoStorageUnit, WebAPIError, Evented) {

		var SystemInfo = lang.mixProps(require.mix({}, Evented), {

			getCapabilities: function() {
				return this._wrap(tizen.systeminfo.getCapabilities());
			},

			getPropertyValue: function(property /*SystemInfoPropertyId*/, successCallback /*SystemInfoPropertySuccessCallback*/, errorCallback /*ErrorCallback*/) {
				tizen.systeminfo.getPropertyValue(property, function(object) {
					successCallback(wrap(object));
				}, errorCallback && function(error) {
					errorCallback(new WebAPIError(error));
				});
			},

			addPropertyValueChangeListener: function(property /*PropertyId*/, successCallback /*SystemInfoPropertySuccessCallback*/, options /*SystemInfoOptions*/) {
				return tizen.systeminfo.addPropertyValueChangeListener(property, function(object) {
					successCallback(new SystemInfoProperty(object))
				}, options);
			},

			removePropertyValueChangeListener: function(listenerId /*unsigned long*/) {
				return tizen.systeminfo.removePropertyValueChangeListener(listenerId);
			},

			_wrap: function(object) {
				if (object.toString() === '[object devicecapabilitiesinfo]') {
					return new SystemInfoDeviceCapability(object);
				}
			},

			constants: {
				SYSTEM_INFO_PROPERTY_ID_CPU: 'CPU',
				SYSTEM_INFO_PROPERTY_ID_STORAGE: 'STORAGE',
				SYSTEM_INFO_PROPERTY_ID_WIFI_NETWORK: 'WIFI_NETWORK',
				SYSTEM_INFO_PROPERTY_ID_CELLULAR_NETWORK: 'CELLULAR_NETWORK',
				SYSTEM_INFO_PROPERTY_ID_SIM: 'SIM'
			}

		}, true);

		function wrap(object) {
			if (object.toString() === '[object cpuinfo]') {
				return new SystemInfoCpu(object);
			}
			if (object.toString() === '[object storageinfo]') {
				return new SystemInfoStorage(object);
			}
			if (object.toString() === '[object cellularnetworkinfo]') {
				return new SystemInfoCellularNetwork(object);
			}
			if (object.toString() === '[object siminfo]') {
				return new SystemInfoSIM(object);
			}
		}

		return SystemInfo;
	});<commit_msg>Fix SystemInfo in tizen module<commit_after>define(['Ti/_/lang', 'Tizen/_/SystemInfo/SystemInfoProperty', 'Tizen/_/SystemInfo/SystemInfoCpu', 'Tizen/_/SystemInfo/SystemInfoStorage',
	'Tizen/_/SystemInfo/SystemInfoDeviceCapability', 'Tizen/_/SystemInfo/SystemInfoCellularNetwork', 'Tizen/_/SystemInfo/SystemInfoSIM',
	'Tizen/_/SystemInfo/SystemInfoStorageUnit', 'Tizen/_/WebAPIError', 'Ti/_/Evented'],
	function(lang, SystemInfoProperty, SystemInfoCpu, SystemInfoStorage, SystemInfoDeviceCapability, SystemInfoCellularNetwork,
			 SystemInfoSIM, SystemInfoStorageUnit, WebAPIError, Evented) {

		var SystemInfo = lang.mixProps(require.mix({}, Evented), {

			getCapabilities: function() {
				return wrap(tizen.systeminfo.getCapabilities());
			},

			getPropertyValue: function(property /*SystemInfoPropertyId*/, successCallback /*SystemInfoPropertySuccessCallback*/, errorCallback /*ErrorCallback*/) {
				tizen.systeminfo.getPropertyValue(property, function(object) {
					successCallback(wrap(object));
				}, errorCallback && function(error) {
					errorCallback(new WebAPIError(error));
				});
			},

			addPropertyValueChangeListener: function(property /*PropertyId*/, successCallback /*SystemInfoPropertySuccessCallback*/, options /*SystemInfoOptions*/) {
				return tizen.systeminfo.addPropertyValueChangeListener(property, function(object) {
					successCallback(new SystemInfoProperty(object))
				}, options);
			},

			removePropertyValueChangeListener: function(listenerId /*unsigned long*/) {
				return tizen.systeminfo.removePropertyValueChangeListener(listenerId);
			},

			constants: {
				SYSTEM_INFO_PROPERTY_ID_CPU: 'CPU',
				SYSTEM_INFO_PROPERTY_ID_STORAGE: 'STORAGE',
				SYSTEM_INFO_PROPERTY_ID_WIFI_NETWORK: 'WIFI_NETWORK',
				SYSTEM_INFO_PROPERTY_ID_CELLULAR_NETWORK: 'CELLULAR_NETWORK',
				SYSTEM_INFO_PROPERTY_ID_SIM: 'SIM'
			}

		}, true);

		function wrap(object) {
			if (object.toString() === '[object cpuinfo]') {
				return new SystemInfoCpu(object);
			}
			if (object.toString() === '[object storageinfo]') {
				return new SystemInfoStorage(object);
			}
			if (object.toString() === '[object cellularnetworkinfo]') {
				return new SystemInfoCellularNetwork(object);
			}
			if (object.toString() === '[object siminfo]') {
				return new SystemInfoSIM(object);
			}
			if (object.toString() === '[object devicecapabilitiesinfo]') {
				return new SystemInfoDeviceCapability(object);
			}
		}

		return SystemInfo;
	});
{'fraction_non_alphanumeric': 0.12863489499192246, 'fraction_numerical': 0.0, 'mean_word_length': 5.41580310880829, 'pattern_counts': {'":': 0, '<': 3, '<?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': '5442016', 'n_tokens_mistral': 1702, 'n_tokens_neox': 1457, 'n_words': 230}