<commit_before><commit_msg>Create script.txt<commit_after><script>
	<name>Production Family Integrity Check</name>
	<description></description>
	<category>Production Functionality</category>
	<input orientation="horizontal">
		<search id="search" name="Saved Search" />
	</input>
	<display type="itemlist" />
	<action returns="table"><![CDATA[

/*  
this script assumes the familyid field name is docfamilyid, and doc identifier field name is docid; 
so update the field name before using it in your Relativity workspace
*/  

select c.* from (select distinct A.docfamilyid from document A join (SELECT [DOCUMENT]. * #search#) temp on A.artifactid = temp.artifactid) c WHERE  NOT EXISTS 
(
SELECT 1 FROM (SELECT [DOCUMENT]. * #search#) as b
   WHERE b.docid = c.docfamilyid
)

	

	]]></action>
</script>
{'fraction_non_alphanumeric': 0.12453300124533001, 'fraction_numerical': 0.0012453300124533001, 'mean_word_length': 4.868613138686132, 'pattern_counts': {'":': 0, '<': 18, '<?xml version=': 0, '>': 18, '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': '7553554', 'n_tokens_mistral': 252, 'n_tokens_neox': 238, 'n_words': 82}