<commit_before><cfcomponent>
<!------------------------------------------------------------------------------->
<cffunction name="checkExtendedData" access="remote" returnformat="json">
	<cfargument name="collection_object_id" type="numeric" required="yes">
	<cfquery name="d" datasource="user_login" username="#session.dbuser#" password="#decrypt(session.epw,session.sessionKey)#">
		select OTHER_ID_NUM_4 idval from bulkloader where OTHER_ID_NUM_TYPE_4='UUID' and OTHER_ID_NUM_4 is not null and collection_object_id=#collection_object_id#
	</cfquery>

	<cfif d.recordcount is 0>
		<cfset r="no extras found">
	<cfelse>
		<cfquery name="cf_temp_specevent" datasource="user_login" username="#session.dbuser#" password="#decrypt(session.epw,session.sessionKey)#">
			select * from  cf_temp_specevent  where UUID='#d.idval#'
		</cfquery>
		<cfif cf_temp_specevent.recordcount gt 0>
			<cfscript>
		        var temp = {};
		        for (var row in cf_temp_specevent) {
		            structAppend(temp, row);
		        }
		    </cfscript>
			<cfset r.spec_events=temp>
		</cfif>

		<cfquery name="cf_temp_parts" datasource="user_login" username="#session.dbuser#" password="#decrypt(session.epw,session.sessionKey)#">
			select * from  cf_temp_parts  where other_id_number='#d.idval#'
		</cfquery>
		<cfif cf_temp_parts.recordcount gt 0>
			<cfscript>
		        var temp = {};
		        for (var row in cf_temp_parts) {
		            structAppend(temp, row);
		        }
		    </cfscript>
			<cfset r.spec_parts=temp>
		</cfif>

		<cfquery name="cf_temp_attributes" datasource="user_login" username="#session.dbuser#" password="#decrypt(session.epw,session.sessionKey)#">
			select * from  cf_temp_attributes  where other_id_number='#d.idval#'
		</cfquery>

		<cfdump var=#cf_temp_attributes#>
		<cfif cf_temp_attributes.recordcount gt 0>
			<cfscript>
		        var temp = {};
		        for (var row in cf_temp_attributes) {
		            structAppend(temp, row);
		        }
		    </cfscript>
			<cfset r.spec_attrs=temp>
		</cfif>

		<cfquery name="cf_temp_oids" datasource="user_login" username="#session.dbuser#" password="#decrypt(session.epw,session.sessionKey)#">
			select * from  cf_temp_oids  where EXISTING_OTHER_ID_NUMBER='#d.idval#'
		</cfquery>
		<cfif cf_temp_oids.recordcount gt 0>
			<cfscript>
		        var temp = {};
		        for (var row in cf_temp_oids) {
		            structAppend(temp, row);
		        }
		    </cfscript>
			<cfset r.other_ids=temp>
		</cfif>
<commit_msg>.<commit_after><cfcomponent>
<!------------------------------------------------------------------------------->
<cffunction name="checkExtendedData" access="remote" returnformat="json">
	<cfargument name="collection_object_id" type="numeric" required="yes">
	<cfquery name="d" datasource="user_login" username="#session.dbuser#" password="#decrypt(session.epw,session.sessionKey)#">
		select OTHER_ID_NUM_4 idval from bulkloader where OTHER_ID_NUM_TYPE_4='UUID' and OTHER_ID_NUM_4 is not null and collection_object_id=#collection_object_id#
	</cfquery>

	<cfif d.recordcount is 0>
		<cfset r="no extras found">
	<cfelse>
		<cfquery name="cf_temp_specevent" datasource="user_login" username="#session.dbuser#" password="#decrypt(session.epw,session.sessionKey)#">
			select * from  cf_temp_specevent  where UUID='#d.idval#'
		</cfquery>
		<cfif cf_temp_specevent.recordcount gt 0>
			<cfscript>
		        var temp = {};
		        for (var row in cf_temp_specevent) {
		            structAppend(temp, row);
		        }
		    </cfscript>
			<cfset r.spec_events=temp>
		</cfif>

		<cfquery name="cf_temp_parts" datasource="user_login" username="#session.dbuser#" password="#decrypt(session.epw,session.sessionKey)#">
			select * from  cf_temp_parts  where other_id_number='#d.idval#'
		</cfquery>
		<cfif cf_temp_parts.recordcount gt 0>
			<cfscript>
		        var temp = {};
		        for (var row in cf_temp_parts) {
		            structAppend(temp, row);
		        }
		    </cfscript>
			<cfset r.spec_parts=temp>
		</cfif>

		<cfquery name="cf_temp_attributes" datasource="user_login" username="#session.dbuser#" password="#decrypt(session.epw,session.sessionKey)#">
			select * from  cf_temp_attributes  where other_id_number='#d.idval#'
		</cfquery>

		<cfdump var=#cf_temp_attributes#>
		<cfif cf_temp_attributes.recordcount gt 0>
			<cfscript>
		        var temp = {};
		        for (var row in cf_temp_attributes) {
		            structAppend(temp, row);
		        }
		    </cfscript>

		    <cfdump var=#temp#>
			<cfset r.spec_attrs=temp>
		</cfif>

		<cfquery name="cf_temp_oids" datasource="user_login" username="#session.dbuser#" password="#decrypt(session.epw,session.sessionKey)#">
			select * from  cf_temp_oids  where EXISTING_OTHER_ID_NUMBER='#d.idval#'
		</cfquery>
		<cfif cf_temp_oids.recordcount gt 0>
			<cfscript>
		        var temp = {};
		        for (var row in cf_temp_oids) {
		            structAppend(temp, row);
		        }
		    </cfscript>
			<cfset r.other_ids=temp>
		</cfif>

{'fraction_non_alphanumeric': 0.16143856143856145, 'fraction_numerical': 0.003196803196803197, 'mean_word_length': 3.210260723296888, 'pattern_counts': {'":': 0, '<': 80, '<?xml version=': 0, '>': 80, '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': '319708', 'n_tokens_mistral': 1895, 'n_tokens_neox': 1673, 'n_words': 314}