<commit_before>include array.util.ArrayUtil

include base.comparator.BaseComparator

include math.util.MathUtil

ArrayValidator(){
	hasEntry(){
		local array=$(ArrayUtil import ${1})
		local entry=${2}

		for a in ${array[@]}; do
			if [[ $(BaseComparator isEqual ${a} ${2}) ]]; then
				echo true
				break
			fi
		done
	}

	hasUniqueEntry(){
		if [[ $(hasEntry ${1} ${2}) ]]; then
			local array=($(ArrayUtil import ${1}))
			local count=0

			for a in ${array[@]}; do
				if [[ $(BaseComparator isEqual ${a} ${2}) ]]; then
					local count=$(MathUtil increment ${count})
				fi
			done

			if [[ ! $(BaseComparator isGreaterThan ${count} 1) ]]; then
				echo true<commit_msg>We should import an array and not a string<commit_after>include array.util.ArrayUtil

include base.comparator.BaseComparator

include math.util.MathUtil

ArrayValidator(){
	hasEntry(){
		local array=($(ArrayUtil import ${1}))
		local entry=${2}

		for a in ${array[@]}; do
			if [[ $(BaseComparator isEqual ${a} ${2}) ]]; then
				echo true
				break
			fi
		done
	}

	hasUniqueEntry(){
		if [[ $(hasEntry ${1} ${2}) ]]; then
			local array=($(ArrayUtil import ${1}))
			local count=0

			for a in ${array[@]}; do
				if [[ $(BaseComparator isEqual ${a} ${2}) ]]; then
					local count=$(MathUtil increment ${count})
				fi
			done

			if [[ ! $(BaseComparator isGreaterThan ${count} 1) ]]; then
				echo true
{'fraction_non_alphanumeric': 0.167267483777938, 'fraction_numerical': 0.012977649603460706, 'mean_word_length': 3.5508196721311474, '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': '4990379', 'n_tokens_mistral': 533, 'n_tokens_neox': 456, 'n_words': 141}