<commit_before>public class EqualsComparison {
	void badEqualsComparision() {
		String s = "Hi there";
		Boolean b = Boolean.TRUE;

		System.out.println("equals() returned " + s.equals(b));
	}

	boolean literalStringEqualsDoNotReport(String s) {
		return "Uh huh".equals(s);
	}
}

// vim:ts=3<commit_msg>Add test for comparing unrelated interfaces<commit_after>public class EqualsComparison {
	public interface A {}
	public interface B {}

	void badEqualsComparision() {
		String s = "Hi there";
		Boolean b = Boolean.TRUE;

		System.out.println("equals() returned " + s.equals(b));
	}

	boolean literalStringEqualsDoNotReport(String s) {
		return "Uh huh".equals(s);
	}

	boolean unrelatedInterfaceComparison(A a, B b) {
		// This should be a medium priority warning
		return a.equals(b);
	}
}

// vim:ts=3
{'fraction_non_alphanumeric': 0.1251548946716233, 'fraction_numerical': 0.0024783147459727386, 'mean_word_length': 4.315789473684211, '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': '3728263', 'n_tokens_mistral': 281, 'n_tokens_neox': 257, 'n_words': 68}