<commit_before><?php

class CM_Usertext_Filter_NewlineToLinebreakeTest extends CMTest_TestCase {

	public static function tearDownAfterClass() {
		CMTest_TH::clearEnv();
	}

	public function testProcess() {
		$text = "foo\n\rbar\n\n\n\n\n\n\n\n\nfoo\n\nbar\n\r\r\r";
		$expected = "foo<br />\nbar<br />\n<br />\n<br />\nfoo<br />\n<br />\nbar";
		$filter = new CM_Usertext_Filter_NewlineToLinebreak(3);

		$this->assertSame($expected,$filter->transform($text));
	}

}
<commit_msg>removed "e" from name<commit_after><?php

class CM_Usertext_Filter_NewlineToLinebreakTest extends CMTest_TestCase {

	public static function tearDownAfterClass() {
		CMTest_TH::clearEnv();
	}

	public function testProcess() {
		$text = "foo\n\rbar\n\n\n\n\n\n\n\n\nfoo\n\nbar\n\r\r\r";
		$expected = "foo<br />\nbar<br />\n<br />\n<br />\nfoo<br />\n<br />\nbar";
		$filter = new CM_Usertext_Filter_NewlineToLinebreak(3);

		$this->assertSame($expected,$filter->transform($text));
	}

}

{'fraction_non_alphanumeric': 0.18821096173733196, 'fraction_numerical': 0.002068252326783868, 'mean_word_length': 4.5, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 19, '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': '3748317', 'n_tokens_mistral': 409, 'n_tokens_neox': 395, 'n_words': 57}