<commit_before>_arrayToStr(){
	array=($@)

	arrayString=""
	for (( i=0; i<${#array[@]}; i++ )); do
		if [[ $i == 0 ]]; then
			arrayString="\"${array[i]}\""
		else
			arrayString="${arrayString} \"${array[i]}\""
		fi
	done

	export arrayString="(${arrayString})"
}

_maxLength(){
	maxLength=0
	_strToArray "$1"
	array=($array)

	for (( i=0; i<${#array[@]}; i++ )); do
		if [[ ${#array[i]} > $maxLength ]]; then
			maxLength=${#array[i]}
		else
			maxLength=${maxLength}
		fi
	done

	export maxLength=$maxLength
}

_nullValidator(){
	local string=$1

	if [[ $string ]]; then
		echo false
	else
		echo true
	fi
}

_placeholder(){
    _strToArray "$1"
	array=($array)
    maxLength=$maxLength
    newArray=""

    for (( i=0; i<${#array[@]}; i++ )); do
		arrayElement=${array[i]}
		placeholder="."

		while [ ${#arrayElement} -lt $maxLength ]; do
			arrayElement="${arrayElement}${placeholder}"
		done

		newArray="${newArray} \"${arrayElement}\""
	done

    export newArray="(${newArray})"
}

_stringReplace(){
	str=$1
	orig=$2
	new=$3

	export newStr=${str//$orig/$new}
}

_strToArray(){
	str=$1

	array=${str//\"/}
    array=(${array//[()]/""})

	export array=${array[@]}
}

gitpr(){
	alias gitpr="source d:/git-tools/git-pull-request/git-pull-request.sh"
	source "c:/users/liferay/.bashrc"
	source "d:/git-tools/git-pull-request/git-pull-request.sh"
}

getOption(){
	if [[ $1 == -[a-zA-Z0-9]* ]]; then
		echo ${1/-/ }
	fi
}<commit_msg>Create string validation util<commit_after>_arrayToStr(){
	array=($@)

	arrayString=""
	for (( i=0; i<${#array[@]}; i++ )); do
		if [[ $i == 0 ]]; then
			arrayString="\"${array[i]}\""
		else
			arrayString="${arrayString} \"${array[i]}\""
		fi
	done

	export arrayString="(${arrayString})"
}

_maxLength(){
	maxLength=0
	_strToArray "$1"
	array=($array)

	for (( i=0; i<${#array[@]}; i++ )); do
		if [[ ${#array[i]} > $maxLength ]]; then
			maxLength=${#array[i]}
		else
			maxLength=${maxLength}
		fi
	done

	export maxLength=$maxLength
}

_nullValidator(){
	local string=$1

	if [[ $string ]]; then
		echo false
	else
		echo true
	fi
}

_placeholder(){
    _strToArray "$1"
	array=($array)
    maxLength=$maxLength
    newArray=""

    for (( i=0; i<${#array[@]}; i++ )); do
		arrayElement=${array[i]}
		placeholder="."

		while [ ${#arrayElement} -lt $maxLength ]; do
			arrayElement="${arrayElement}${placeholder}"
		done

		newArray="${newArray} \"${arrayElement}\""
	done

    export newArray="(${newArray})"
}

_stringReplace(){
	str=$1
	orig=$2
	new=$3

	export newStr=${str//$orig/$new}
}

_strToArray(){
	str=$1

	array=${str//\"/}
    array=(${array//[()]/""})

	export array=${array[@]}
}

_stringValidator(){
	local str1=$1
	local str2=$1

	if [[ $1 == $2 ]]; then
		echo true
	else
		echo false
	fi
}

gitpr(){
	alias gitpr="source d:/git-tools/git-pull-request/git-pull-request.sh"
	source "c:/users/liferay/.bashrc"
	source "d:/git-tools/git-pull-request/git-pull-request.sh"
}

getOption(){
	if [[ $1 == -[a-zA-Z0-9]* ]]; then
		echo ${1/-/ }
	fi
}
{'fraction_non_alphanumeric': 0.23484343770819455, 'fraction_numerical': 0.012658227848101266, 'mean_word_length': 3.8125, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 5, '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': '4947666', 'n_tokens_mistral': 1277, 'n_tokens_neox': 1184, 'n_words': 230}