<commit_before><?php
namespace Edu\Cnm\Abquery\Test;
use Edu\Cnm\Abquery\{Point};

require_once("AbqueryTest.php");
require_once(dirname(__DIR__) . "/autoload.php");

/**
 * PHPUnit test for the Point class
 * @see \Edu\Cnm\Abquery\Point
 * @author Abquery
 **/

class PointTest extends PHPUnit_Framework_TestCase {
	protected $VALID_LAT = -106.69669124212061;
	protected $VALID_LONG = 35.110150828348985;
	protected $INVALID_LAT = 190.69669124212061;
	protected $INVALID_LONG = 95.110150828348985;

	/**
	 * PHPUnit test for the Euclidean center
	 * FIXME: euclidean center
	 */

	public function testValidPoint(){
			$point = new Point($this->VALID_LAT, $this->VALID_LONG);
			//use mutators to make a valid case
			$point->setLat($this->VALID_LAT);
			$point->setLong($this->VALID_LONG);
			//assert values are equal
			$this->assertEquals($point->getLat(), $this->VALID_LAT);
			$this->assertEquals($point->getLong(), $this->VALID_LONG);
		}

	/**
 	*test using valid latitude
 	*/

	public function testInvalidPointLat(){
		$point = new Point($this->INVALID_LAT, $this->VALID_LONG);
		//use mutators to make an invalid case
		$point->setLat($this->INVALID_LAT);
		$point->setLong($this->VALID_LONG);
	}
	/**
	 *test using valid longitude
	 */

	public function testInvalidPointLong(){
		$point = new Point($this->VALID_LAT, $this->INVALID_LONG);
		//use mutators to make an invalid case
		$point->setLat($this->VALID_LAT);
		$point->setLong($this->INVALID_LONG);
	}
}<commit_msg>commit point test euclidean center<commit_after><?php
namespace Edu\Cnm\Abquery\Test;
use Edu\Cnm\Abquery\{Point};

require_once("AbqueryTest.php");
require_once(dirname(__DIR__) . "/autoload.php");

/**
 * PHPUnit test for the Point class
 * @see \Edu\Cnm\Abquery\Point
 * @author Abquery
 **/

class PointTest extends PHPUnit_Framework_TestCase {
	protected $VALID_LAT = -106.69669124212061;
	protected $VALID_LONG = 35.110150828348985;
	protected $INVALID_LAT = 190.69669124212061;
	protected $INVALID_LONG = 95.110150828348985;

	/**
	 * PHPUnit test for the Euclidean center
	 * FIXME: euclidean center why would we use a fixed array for floats/ fixed array says it's for integers? Please help!
	 */


	public function testValidPoint() {
		$point = new Point($this->VALID_LAT, $this->VALID_LONG);
		//use mutators to make a valid case
		$point->setLat($this->VALID_LAT);
		$point->setLong($this->VALID_LONG);
		//assert values are equal
		$this->assertEquals($point->getLat(), $this->VALID_LAT);
		$this->assertEquals($point->getLong(), $this->VALID_LONG);
	}

	/**
	 *test using valid latitude
	 */

	public function testInvalidPointLat() {
		$point = new Point($this->INVALID_LAT, $this->VALID_LONG);
		//use mutators to make an invalid case
		$point->setLat($this->INVALID_LAT);
		$point->setLong($this->VALID_LONG);
	}

	/**
	 *test using valid longitude
	 */

	public function testInvalidPointLong() {
		$point = new Point($this->VALID_LAT, $this->INVALID_LONG);
		//use mutators to make an invalid case
		$point->setLat($this->VALID_LAT);
		$point->setLong($this->INVALID_LONG);
	}
}
{'fraction_non_alphanumeric': 0.147498375568551, 'fraction_numerical': 0.044184535412605586, 'mean_word_length': 4.537769784172662, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 51, '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': '3603453', 'n_tokens_mistral': 1189, 'n_tokens_neox': 1022, 'n_words': 235}