<commit_before>package fi.henu.gdxextras;

public class IVector2
{
	
	public int x, y;
	
	public IVector2()
	{
		x = 0;
		y = 0;
	}

	public IVector2(int x, int y)
	{
		this.x = x;
		this.y = y;
	}
	
	public IVector2(IVector2 v)
	{
		x = v.x;
		y = v.y;
	}

	public void set(IVector2 pos)
	{
		x = pos.x;
		y = pos.y;
	}

	public String toString()
	{
		return "(" + x + ", " + y + ")";
	}
	
	public boolean equals(IVector2 v)
	{
		return equals(v.x, v.y);
	}

	public boolean equals(int x, int y)
	{
		return x == this.x && y == this.y;
	}

	public float distanceTo(IVector2 pos)
	{
		return (float)Math.sqrt(distanceTo2(pos));
	}

	public long distanceTo2(IVector2 pos)
	{
		long xdiff = pos.x - x;
		long ydiff = pos.y - y;
		return xdiff * xdiff + ydiff * ydiff;
	}

	public int chebyshevDistanceTo(IVector2 pos)
	{
		return Math.max(Math.abs(pos.x - x), Math.abs(pos.y - y));
	}

	public IVector2 cpy()
	{
		return new IVector2(x, y);
	}

	public void scl(int i) {
		x *= i;
		y *= i;
	}

	public void sub(IVector2 pos)
	{
		sub(pos.x, pos.y);
	}

	private void sub(int x, int y) {
		this.x -= x;
		this.y -= y;
	}

}
<commit_msg>IVector2 fixed so it can be used as key in HashMap.<commit_after>package fi.henu.gdxextras;

public class IVector2
{
	
	public int x, y;
	
	public IVector2()
	{
		x = 0;
		y = 0;
	}

	public IVector2(int x, int y)
	{
		this.x = x;
		this.y = y;
	}
	
	public IVector2(IVector2 v)
	{
		x = v.x;
		y = v.y;
	}

	public void set(IVector2 pos)
	{
		x = pos.x;
		y = pos.y;
	}

	public String toString()
	{
		return "(" + x + ", " + y + ")";
	}
	
	@Override
	public final boolean equals(Object o)
	{
		if (o instanceof IVector2) {
			IVector2 v = (IVector2)o;
			return equals(v.x, v.y);
		}
		return false;
	}

	public boolean equals(int x, int y)
	{
		return x == this.x && y == this.y;
	}

	public float distanceTo(IVector2 pos)
	{
		return (float)Math.sqrt(distanceTo2(pos));
	}

	public long distanceTo2(IVector2 pos)
	{
		long xdiff = pos.x - x;
		long ydiff = pos.y - y;
		return xdiff * xdiff + ydiff * ydiff;
	}

	public int chebyshevDistanceTo(IVector2 pos)
	{
		return Math.max(Math.abs(pos.x - x), Math.abs(pos.y - y));
	}

	public IVector2 cpy()
	{
		return new IVector2(x, y);
	}

	public void scl(int i) {
		x *= i;
		y *= i;
	}

	public void sub(IVector2 pos)
	{
		sub(pos.x, pos.y);
	}

	private void sub(int x, int y) {
		this.x -= x;
		this.y -= y;
	}

	@Override
	public int hashCode()
	{
		return x * 991 + y * 997;
	}
}

{'fraction_non_alphanumeric': 0.15303643724696356, 'fraction_numerical': 0.017408906882591092, 'mean_word_length': 2.504964539007092, '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': '450215', 'n_tokens_mistral': 1202, 'n_tokens_neox': 1101, 'n_words': 282}