<commit_before>StringValidator(){
	isAlpha(){
		local str=${@}

		if [[ ${str//[a-zA-Z ]/} == "" ]]; then
			echo true
		else
			echo false
		fi
	}

	isAlphaNum(){
		local str=${@}

		if [[ ${str//[0-9a-zA-Z\ ]} == "" ]]; then
			echo true
		else
			echo false
		fi
	}

	isEqual(){
		local str1=${1}
		local str2=${2}

		if [[ ${str1} == ${str2} ]]; then
			echo true
		else
			echo false
		fi
	}

	isSubstring(){
		local str1=${1}
		local str2=${2}

		if [[ ${str1} == *${str2}* ]]; then
			echo true
		else
			echo false
		fi
	}

	isNull(){
		if [[ $@ == "" ]]; then
			echo true
		else
			echo false<commit_msg>Simplify substring check<commit_after>StringValidator(){
	isAlpha(){
		local str=${@}

		if [[ ${str//[a-zA-Z ]/} == "" ]]; then
			echo true
		else
			echo false
		fi
	}

	isAlphaNum(){
		local str=${@}

		if [[ ${str//[0-9a-zA-Z\ ]} == "" ]]; then
			echo true
		else
			echo false
		fi
	}

	isEqual(){
		local str1=${1}
		local str2=${2}

		if [[ ${str1} == ${str2} ]]; then
			echo true
		else
			echo false
		fi
	}

	isSubstring(){
		local str1=${1}
		local str2=${2}

		if [[ ${str1} =~ ${str2} ]]; then
			echo true
		else
			echo false
		fi
	}

	isNull(){
		if [[ $@ == "" ]]; then
			echo true
		else
			echo false
{'fraction_non_alphanumeric': 0.20695230396119643, 'fraction_numerical': 0.02263540824575586, 'mean_word_length': 2.319034852546917, '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': '2868988', 'n_tokens_mistral': 611, 'n_tokens_neox': 506, 'n_words': 127}