<commit_before><?xml version="1.0" encoding="UTF-8"?>
<starosxml xmlns="http://www.staros.xyz/starcore/xml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" scope="application">	
	<class name="CDeviceManager">
		<private>
			<container name="deviceContainer" type="hashmap" keytype="string" valuetype="class"/>
		</private>
		
		<public>
			<function name="addDevice">
				<parameters>
					<parameter name="mfrdesc" type="string"/>
					<parameter name="swdesc" type="string"/>
					<parameter name="serialnum" type="string"/>
					<parameter name="dpdesc" type="string"/>
					<parameter name="hwdesc" type="string"/>
					<parameter name="transportid" type="string"/>
					<parameter name="datapathid" type="string"/>
					<parameter name="localipaddr" type="string"/>
					<parameter name="peeripaddr" type="string"/>
					<parameter name="masterid" type="string"/>	
					<parameter name="type" type="string"/>
					<parameter name="online" type="string"/>
					<parameter name="protocol" type="string"/>					
				</parameters>
				<variable name="deviceobject" type="class"/>
				<variable name="outtransid" type="string"/>
				<new name="deviceobject" class="CDevice">
					<parameters>
						<parameter name="mfrdesc" type="string" in="context.mfrdesc.toString()"/>
						<parameter name="swdesc" type="string" in="context.swdesc.toString()"/>
						<parameter name="serialnum" type="string" in="context.serialnum.toString()"/>
						<parameter name="dpdesc" type="string" in="context.dpdesc.toString()"/>
						<parameter name="hwdesc" type="string" in="context.hwdesc.toString()"/>
						<parameter name="transportid" type="string" in="context.transportid.toString()"/>
						<parameter name="datapathid" type="string" in="context.datapathid.toString()"/>
						<parameter name="localipaddr" type="string" in="context.localipaddr.toString()"/>
						<parameter name="peeripaddr" type="string" in="context.peeripaddr.toString()"/>
						<parameter name="masterid" type="string" in="context.masterid.toString()"/>		
						<parameter name="type" type="string" in="context.type.toString()"/>
						<parameter name="online" type="string" in="context.online.toString()"/>
						<parameter name="protocol" type="string" in="context.protocol.toString()"/>	
					</parameters>
				</new>
				<insert name="deviceContainer" key="context.datapathid.toString()" value="context.deviceobject"/>
				<variable name="onlinejson" type="string"/>
				<function name="ToOnlineJson" class="deviceobject">
					<parameters>
						<parameter name="strjson" type="string" out="onlinejson"/>
					</parameters>
				</function><commit_msg>fix some bugs<commit_after><?xml version="1.0" encoding="UTF-8"?>
<starosxml xmlns="http://www.staros.xyz/starcore/xml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" scope="application">	
	<class name="CDeviceManager">
		<private>
			<container name="deviceContainer" type="hashmap" keytype="string" valuetype="class"/>
		</private>
		
		<public>
			<function name="addDevice">
				<parameters>
					<parameter name="mfrdesc" type="string"/>
					<parameter name="swdesc" type="string"/>
					<parameter name="serialnum" type="string"/>
					<parameter name="dpdesc" type="string"/>
					<parameter name="hwdesc" type="string"/>
					<parameter name="transportid" type="string"/>
					<parameter name="datapathid" type="string"/>
					<parameter name="localipaddr" type="string"/>
					<parameter name="peeripaddr" type="string"/>
					<parameter name="masterid" type="string"/>	
					<parameter name="type" type="string"/>
					<parameter name="online" type="string"/>
					<parameter name="protocol" type="string"/>					
				</parameters>
				<variable name="deviceobject" type="class"/>
				<variable name="outtransid" type="string"/>
				<new name="deviceobject" class="CDevice">
					<parameters>
						<parameter name="mfrdesc" type="string" in="context.mfrdesc.toString()"/>
						<parameter name="swdesc" type="string" in="context.swdesc.toString()"/>
						<parameter name="serialnum" type="string" in="context.serialnum.toString()"/>
						<parameter name="dpdesc" type="string" in="context.dpdesc.toString()"/>
						<parameter name="hwdesc" type="string" in="context.hwdesc.toString()"/>
						<parameter name="transportid" type="string" in="context.transportid.toString()"/>
						<parameter name="datapathid" type="string" in="context.datapathid.toString()"/>
						<parameter name="localipaddr" type="string" in="context.localipaddr.toString()"/>
						<parameter name="peeripaddr" type="string" in="context.peeripaddr.toString()"/>
						<parameter name="masterid" type="string" in="context.masterid.toString()"/>		
						<parameter name="type" type="string" in="context.type.toString()"/>
						<parameter name="online" type="string" in="context.online.toString()"/>
						<parameter name="protocol" type="string" in="context.protocol.toString()"/>	
					</parameters>
				</new>
				<insert name="deviceContainer" key="context.datapathid.toString()" value="context.deviceobject.toString()"/>
				<variable name="onlinejson" type="string"/>
				<function name="ToOnlineJson" class="deviceobject">
					<parameters>
						<parameter name="strjson" type="string" out="onlinejson"/>
					</parameters>
				</function>
{'fraction_non_alphanumeric': 0.18739320296183787, 'fraction_numerical': 0.003037782418834251, 'mean_word_length': 4.738562091503268, 'pattern_counts': {'":': 0, '<': 101, '<?xml version=': 2, '>': 101, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 10}, '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': '1654977', 'n_tokens_mistral': 1909, 'n_tokens_neox': 1530, 'n_words': 283}