<commit_before>package filter.expression;

public class SortKey {
	public final String key;
	public final boolean inverted;

	public SortKey(String key, boolean inverted) {
		this.key = key;
		this.inverted = inverted;
	}
}
<commit_msg>Added SortKey toString, equals, hashCode<commit_after>package filter.expression;

public class SortKey {
	public final String key;
	public final boolean inverted;

	public SortKey(String key, boolean inverted) {
		this.key = key;
		this.inverted = inverted;
	}

	@Override
	public String toString() {
		return (inverted ? "~" : "") + key;
	}

	@Override
	public boolean equals(Object o) {
		if (this == o) return true;
		if (o == null || getClass() != o.getClass()) return false;

		SortKey sortKey = (SortKey) o;

		if (inverted != sortKey.inverted) return false;
		if (key != null ? !key.equals(sortKey.key) : sortKey.key != null) return false;

		return true;
	}

	@Override
	public int hashCode() {
		int result = key != null ? key.hashCode() : 0;
		result = 31 * result + (inverted ? 1 : 0);
		return result;
	}
}

{'fraction_non_alphanumeric': 0.12417061611374408, 'fraction_numerical': 0.004739336492890996, 'mean_word_length': 3.8219178082191783, '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': '7049513', 'n_tokens_mistral': 374, 'n_tokens_neox': 342, 'n_words': 109}