<commit_before>include base.comparator.BaseComparator

include test.executor.TestExecutor

BaseComparatorTest(){
	run(){
		TestExecutor executeTest BaseComparatorTest
	}

	testIsEqual[Number](){
		if [[ $(BaseComparator isEqual 123 123) ]]; then
			echo PASS
		else
			echo FAIL
		fi
	}

	testIsEqual[String](){
		if [[ $(BaseComparator isEqual foo foo) ]]; then
			echo PASS
		else
			echo FAIL
		fi
	}

	testIsEqualIgnoreCase(){
		if [[ $(BaseComparator isEqualIgnoreCase FOO foo) ]]; then
			echo PASS
		else
			echo FAIL
		fi
	}

	testIsLessThan[Case](){
		if [[ $(BaseComparator isLessThan foo FOO) ]]; then
			echo PASS
		else
			echo FAIL
		fi
	}

	testIsLessThan[Number](){
		if [[ $(BaseComparator isLessThan 1 2) ]]; then
			echo PASS
		else
			echo FAIL
		fi
	}

	testIsLessThan[String](){
		if [[ $(BaseComparator isLessThan bar foo) ]]; then
			echo PASS
		else
			echo FAIL
		fi
	}

	testIsGreaterThan[Case](){
		if [[ $(BaseComparator isGreaterThan FOO foo) ]]; then
			echo PASS
		else
			echo FAIL
		fi
	}

	testIsGreaterThan[Number](){
		if [[ $(BaseComparator isGreaterThan 2 1) ]]; then
			echo PASS
		else
			echo FAIL
		fi
	}

	testIsGreaterThan[String](){
		if [[ $(BaseComparator isGreaterThan foo bar) ]]; then
			echo PASS
		else
			echo FAIL
		fi
	}

	$@
}<commit_msg>Use lower-cased strings for cases<commit_after>include base.comparator.BaseComparator

include test.executor.TestExecutor

BaseComparatorTest(){
	run(){
		TestExecutor executeTest BaseComparatorTest
	}

	testIsEqual[number](){
		if [[ $(BaseComparator isEqual 123 123) ]]; then
			echo PASS
		else
			echo FAIL
		fi
	}

	testIsEqual[string](){
		if [[ $(BaseComparator isEqual foo foo) ]]; then
			echo PASS
		else
			echo FAIL
		fi
	}

	testIsEqualIgnoreCase(){
		if [[ $(BaseComparator isEqualIgnoreCase FOO foo) ]]; then
			echo PASS
		else
			echo FAIL
		fi
	}

	testIsLessThan[case](){
		if [[ $(BaseComparator isLessThan foo FOO) ]]; then
			echo PASS
		else
			echo FAIL
		fi
	}

	testIsLessThan[number](){
		if [[ $(BaseComparator isLessThan 1 2) ]]; then
			echo PASS
		else
			echo FAIL
		fi
	}

	testIsLessThan[string](){
		if [[ $(BaseComparator isLessThan bar foo) ]]; then
			echo PASS
		else
			echo FAIL
		fi
	}

	testIsGreaterThan[case](){
		if [[ $(BaseComparator isGreaterThan FOO foo) ]]; then
			echo PASS
		else
			echo FAIL
		fi
	}

	testIsGreaterThan[number](){
		if [[ $(BaseComparator isGreaterThan 2 1) ]]; then
			echo PASS
		else
			echo FAIL
		fi
	}

	testIsGreaterThan[string](){
		if [[ $(BaseComparator isGreaterThan foo bar) ]]; then
			echo PASS
		else
			echo FAIL
		fi
	}

	$@
}
{'fraction_non_alphanumeric': 0.10842911877394636, 'fraction_numerical': 0.007662835249042145, 'mean_word_length': 3.280327868852459, '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': '2982299', 'n_tokens_mistral': 1102, 'n_tokens_neox': 940, 'n_words': 256}