<commit_before><?php
require_once ROOTPATH.'lib/lib_compatible.php';

use Pixmicat\PMCLibrary;

class LanguageTest extends PHPUnit_Framework_TestCase {
	public $Lang;

	public function setUp() {
		$this->Lang = PMCLibrary::getLanguageInstance();
	}

	public function testGetInstance() {
		$expect = $this->Lang;
		$result = PMCLibrary::getLanguageInstance();
		$this->assertSame($expect, $result);
	}

	public function testGetLocale() {
		$expect = 'zh_TW';
		$result = $this->Lang->getLocale();
		$this->assertSame($expect, $result);
	}

	public function testGetLanguage() {
		$expect = 187;<commit_msg>fixed LanguageTest<commit_after><?php
require_once ROOTPATH.'lib/lib_compatible.php';

use Pixmicat\PMCLibrary;

class LanguageTest extends PHPUnit_Framework_TestCase {
	public $Lang;

	public function setUp() {
		$this->Lang = PMCLibrary::getLanguageInstance();
	}

	public function testGetInstance() {
		$expect = $this->Lang;
		$result = PMCLibrary::getLanguageInstance();
		$this->assertSame($expect, $result);
	}

	public function testGetLocale() {
		$expect = 'zh_TW';
		$result = $this->Lang->getLocale();
		$this->assertSame($expect, $result);
	}

	public function testGetLanguage() {
		$expect = 189;
{'fraction_non_alphanumeric': 0.14674361088211046, 'fraction_numerical': 0.00494641384995878, 'mean_word_length': 5.526881720430108, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '2327195', 'n_tokens_mistral': 423, 'n_tokens_neox': 389, 'n_words': 78}