<commit_before><?php

class CM_Usertext_Filter_EscapeTest extends CMTest_TestCase {

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

	public function testProcess() {
		$text = '<b>foo</b> <script></script> <strong>bar</strong>';
		$expected = '&lt;b&gt;foo&lt;/b&gt; &lt;script&gt;&lt;/script&gt; &lt;strong&gt;bar&lt;/strong&gt;';
		$filter = new CM_Usertext_Filter_Escape();
		$actual = $filter->transform($text);

		$this->assertEquals($expected, $actual);
	}

}<commit_msg>updated CM_Usertext_Filter_EscapeTest<commit_after><?php

class CM_Usertext_Filter_EscapeTest extends CMTest_TestCase {

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

	public function testProcess() {
		$text = '<b>foo</b> <script></script> <strong>bar</strong>';
		$expected = '&lt;b&gt;foo&lt;/b&gt; &lt;script&gt;&lt;/script&gt; &lt;strong&gt;bar&lt;/strong&gt;';
		$filter = new CM_Usertext_Filter_Escape();
		$actual = $filter->transform($text);

		$this->assertEquals($expected, $actual);
	}

	public function testMultibyte() {
		$expected = '繁體字';
		$filter = new CM_Usertext_Filter_Escape();
		$actual = $filter->transform('繁體字');
		$this->assertEquals($expected, $actual);
	}

}
{'fraction_non_alphanumeric': 0.18263718263718265, 'fraction_numerical': 0.0, 'mean_word_length': 6.451219512195122, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 21, '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': '246706', 'n_tokens_mistral': 460, 'n_tokens_neox': 443, 'n_words': 69}