<commit_before><?php 

	namespace PHPCheckstyle\Tests;

	use PHPCheckstyle;
	use PHPCheckstyle\File;

	class FileTest extends \PHPUnit_Framework_TestCase {
		protected $file;

		public function __construct() {
			$this->file = new File('test.php', '<?php echo 1; ?>');
		}

		public function testNewFile() {
			$this->assertInstanceOf('PHPCheckstyle\File', $this->file);
		}

		public function testGetFilename() {
			$this->assertEquals('test.php', $this->file->getFilename());
		}

		public function testGetSource() {
			$this->assertEquals('<?php echo 1; ?>', $this->file->getSource());
		}

		public function testGetLines() {
			$file = new File('test.php', "<?php echo 1;\necho 2 ?>");
			$this->assertEquals(array(
				"<?php echo 1;\n",
				"echo 2 ?>"),
				$file->getLines());
		}

		public function testGetLinesBlankAtEnd() {
			$file = new File('test.php', "<?php echo 1;\n");
			$this->assertEquals(array(
				"<?php echo 1;\n",
				''),
				$file->getLines());
		}

		public function testGetLinesMulitpleBlanksAtEnd() {
			$file = new File('test.php', "<?php echo 1;\n\n");
			$this->assertEquals(array(
				"<?php echo 1;\n",
				"\n",
				''),
				$file->getLines());
		}

		public function testGetLinesVaryingEol() {
			$file = new File('test.php', "<?php echo 1;\r\necho 2\recho 3\n");
			$this->assertEquals(array(
				"<?php echo 1;\r\n",
				"echo 2\r",
				"echo 3\n",
				''),
				$file->getLines());
		}

		public function testGetEncoding() {
			$this->assertEquals('UTF-8', $this->file->getEncoding());
		}
	}<commit_msg>Not sure how to test these methods yet<commit_after><?php 

	namespace PHPCheckstyle\Tests;

	use PHPCheckstyle;
	use PHPCheckstyle\File;

	class FileTest extends \PHPUnit_Framework_TestCase {
		protected $file;

		public function __construct() {
			$this->file = new File('test.php', '<?php echo 1; ?>');
		}

		public function testNewFile() {
			$this->assertInstanceOf('PHPCheckstyle\File', $this->file);
		}

		public function testGetFilename() {
			$this->assertEquals('test.php', $this->file->getFilename());
		}

		public function testGetSource() {
			$this->assertEquals('<?php echo 1; ?>', $this->file->getSource());
		}

		public function testGetLines() {
			$file = new File('test.php', "<?php echo 1;\necho 2 ?>");
			$this->assertEquals(array(
				"<?php echo 1;\n",
				"echo 2 ?>"),
				$file->getLines());
		}

		public function testGetLinesBlankAtEnd() {
			$file = new File('test.php', "<?php echo 1;\n");
			$this->assertEquals(array(
				"<?php echo 1;\n",
				''),
				$file->getLines());
		}

		public function testGetLinesMulitpleBlanksAtEnd() {
			$file = new File('test.php', "<?php echo 1;\n\n");
			$this->assertEquals(array(
				"<?php echo 1;\n",
				"\n",
				''),
				$file->getLines());
		}

		public function testGetLinesVaryingEol() {
			$file = new File('test.php', "<?php echo 1;\r\necho 2\recho 3\n");
			$this->assertEquals(array(
				"<?php echo 1;\r\n",
				"echo 2\r",
				"echo 3\n",
				''),
				$file->getLines());
		}

		public function testGetEncoding() {
			$this->assertEquals('UTF-8', $this->file->getEncoding());
		}

		public function testSeekTokenTypeMethod() {
			$this->markTestIncomplete('This test has not been implemented yet.');
		}

		public function testSeekNextLineMethod() {
			$this->markTestIncomplete('This test has not been implemented yet.');
		}

	}
{'fraction_non_alphanumeric': 0.19220470098185063, 'fraction_numerical': 0.010116036893781613, 'mean_word_length': 3.5493910690121786, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 53, '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': '4809080', 'n_tokens_mistral': 1379, 'n_tokens_neox': 1148, 'n_words': 247}