<commit_before>package com.jenjinstudios.world.math;

import org.testng.Assert;
import org.testng.annotations.*;

/**
 * Test the coordinates class.
 * @author <NAME>
 */
public class Vector2DTest
{
	/** Test the coordinates methods. */
	@Test
	public void testVector2D() {
		Vector2D vector2D01 = new Vector2D(5, 7);
		Assert.assertEquals(7, vector2D01.getYCoordinate(), 0);
		Assert.assertEquals(5, vector2D01.getXCoordinate(), 0);

		Vector2D vector2D02 = new Vector2D(vector2D01);
		Assert.assertEquals(7, vector2D02.getYCoordinate(), 0);
		Assert.assertEquals(5, vector2D02.getXCoordinate(), 0);

		Assert.assertEquals(5, vector2D02.getXCoordinate(), 0);
		Assert.assertEquals(7, vector2D02.getYCoordinate(), 0);
	}

	/** Test the relativeAngle math methods. */
	@Test
	public void testDirectionMath() {
		Vector2D original = new Vector2D(5, 5);

		double right = 0;
		Vector2D stepped = original.getVectorInDirection(1, right);
		Assert.assertEquals(6, stepped.getXCoordinate(), 0.001);
		Assert.assertEquals(5, stepped.getYCoordinate(), 0.001);

		double left = Math.PI;
		stepped = original.getVectorInDirection(1, left);
		Assert.assertEquals(4, stepped.getXCoordinate(), 0.001);
		Assert.assertEquals(5, stepped.getYCoordinate(), 0.001);

		double back = Math.PI * 1.5;
		stepped = original.getVectorInDirection(1, back);
		Assert.assertEquals(5, stepped.getXCoordinate(), 0.001);
		Assert.assertEquals(4, stepped.getYCoordinate(), 0.001);

		double forward = Math.PI * .5;
		stepped = original.getVectorInDirection(1, forward);
		Assert.assertEquals(5, stepped.getXCoordinate(), 0.001);
		Assert.assertEquals(6, stepped.getYCoordinate(), 0.001);<commit_msg>Renamed test<commit_after>package com.jenjinstudios.world.math;

import org.testng.Assert;
import org.testng.annotations.*;

/**
 * Test the coordinates class.
 * @author <NAME>
 */
public class Vector2DTest
{
	/** Test the coordinates methods. */
	@Test
	public void testVector2D() {
		Vector2D vector2D01 = new Vector2D(5, 7);
		Assert.assertEquals(7, vector2D01.getYCoordinate(), 0);
		Assert.assertEquals(5, vector2D01.getXCoordinate(), 0);

		Vector2D vector2D02 = new Vector2D(vector2D01);
		Assert.assertEquals(7, vector2D02.getYCoordinate(), 0);
		Assert.assertEquals(5, vector2D02.getXCoordinate(), 0);

		Assert.assertEquals(5, vector2D02.getXCoordinate(), 0);
		Assert.assertEquals(7, vector2D02.getYCoordinate(), 0);
	}

	/** Test the relativeAngle math methods. */
	@Test
	public void getGetVectorInDirection() {
		Vector2D original = new Vector2D(5, 5);

		double right = 0;
		Vector2D stepped = original.getVectorInDirection(1, right);
		Assert.assertEquals(6, stepped.getXCoordinate(), 0.001);
		Assert.assertEquals(5, stepped.getYCoordinate(), 0.001);

		double left = Math.PI;
		stepped = original.getVectorInDirection(1, left);
		Assert.assertEquals(4, stepped.getXCoordinate(), 0.001);
		Assert.assertEquals(5, stepped.getYCoordinate(), 0.001);

		double back = Math.PI * 1.5;
		stepped = original.getVectorInDirection(1, back);
		Assert.assertEquals(5, stepped.getXCoordinate(), 0.001);
		Assert.assertEquals(4, stepped.getYCoordinate(), 0.001);

		double forward = Math.PI * .5;
		stepped = original.getVectorInDirection(1, forward);
		Assert.assertEquals(5, stepped.getXCoordinate(), 0.001);
		Assert.assertEquals(6, stepped.getYCoordinate(), 0.001);
{'fraction_non_alphanumeric': 0.1406764441783897, 'fraction_numerical': 0.059862316671655195, 'mean_word_length': 5.166051660516605, 'pattern_counts': {'":': 0, '<': 5, '<?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': '832811', 'n_tokens_mistral': 1260, 'n_tokens_neox': 1108, 'n_words': 230}