<commit_before><?php


class TestModelBase extends Tipsy\Model {
	public function test() {
		return 'ONE';
	}
}

class TestModelBaseProtected extends Tipsy\Model {
	protected function test() {
		return 'ONE';
	}
}


class ModelTest extends Tipsy_Test {
	
	public function setUp() {
		$this->tip = new Tipsy\Tipsy;
		$this->useOb = true; // for debug use
		
		$this->tip->config('tests/config.ini');
	}

	public function testModelBasic() {

		$this->tip->model('TestModel', function() {
			$model = [
				'test' => function() {
					return 'YES';
				}
			];
			return $model;
		});

		$model = $this->tip->model('TestModel');
		$this->assertEquals('YES', $model->test());
	}

	public function testModelCustomExtend() {<commit_msg>Added even more basic model test<commit_after><?php


class TestModelBase extends Tipsy\Model {
	public function test() {
		return 'ONE';
	}
}

class TestModelBaseProtected extends Tipsy\Model {
	protected function test() {
		return 'ONE';
	}
}


class ModelTest extends Tipsy_Test {
	
	public function setUp() {
		$this->tip = new Tipsy\Tipsy;
		$this->useOb = true; // for debug use
		
		$this->tip->config('tests/config.ini');
	}
	
	public function testModelBasic() {

		$this->tip->model('TestModel', [
			'test' => function() {
				return 'YES';
			}
		]);

		$model = $this->tip->model('TestModel');
		$this->assertEquals('YES', $model->test());
	}

	public function testModelBasicFunc() {

		$this->tip->model('TestModel', function() {
			$model = [
				'test' => function() {
					return 'YES';
				}
			];
			return $model;
		});

		$model = $this->tip->model('TestModel');
		$this->assertEquals('YES', $model->test());
	}

	public function testModelCustomExtend() {
{'fraction_non_alphanumeric': 0.17360703812316716, 'fraction_numerical': 0.0, 'mean_word_length': 3.5614973262032086, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 32, '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': '5789789', 'n_tokens_mistral': 655, 'n_tokens_neox': 563, 'n_words': 125}