<commit_before><?php
/**
 * @group Vps_Model_Db_SiblingRelationExpr
 */
class Vps_Model_DbWithConnection_SiblingRelationExpr_Test extends PHPUnit_Framework_TestCase
{
    public function shutDown()
    {
        Vps_Model_Abstract::getInstance('Vps_Model_DbWithConnection_SiblingRelationExpr_TestModel')->dropTable();
        Vps_Model_Abstract::getInstance('Vps_Model_DbWithConnection_SiblingRelationExpr_RelationModel')->dropTable();
        Vps_Model_Abstract::clearInstances();
    }

    public function testLoadLazy()
    {
        $m = Vps_Model_Abstract::getInstance('Vps_Model_DbWithConnection_SiblingRelationExpr_TestModel');

        $row = $m->getRow(1);
        $this->assertEquals($row->sum_foo, 444);

        $row = $m->getRow(2);
        $this->assertEquals($row->sum_foo, 0);
    }

    public function testLoadExpr()<commit_msg>Vps TEstCase verwenden, sollte model instanzen besser loeschen<commit_after>v<?php
/**
 * @group Vps_Model_Db_SiblingRelationExpr
 */
class Vps_Model_DbWithConnection_SiblingRelationExpr_Test extends Vps_Test_TestCase
{
    public function shutDown()
    {
        Vps_Model_Abstract::getInstance('Vps_Model_DbWithConnection_SiblingRelationExpr_TestModel')->dropTable();
        Vps_Model_Abstract::getInstance('Vps_Model_DbWithConnection_SiblingRelationExpr_RelationModel')->dropTable();
        parent::tearDown();
    }

    public function testLoadLazy()
    {
        $m = Vps_Model_Abstract::getInstance('Vps_Model_DbWithConnection_SiblingRelationExpr_TestModel');

        $row = $m->getRow(1);
        $this->assertEquals($row->sum_foo, 444);

        $row = $m->getRow(2);
        $this->assertEquals($row->sum_foo, 0);
    }

    public function testLoadExpr()
{'fraction_non_alphanumeric': 0.11124053581828772, 'fraction_numerical': 0.006988934187536401, 'mean_word_length': 4.688741721854305, 'pattern_counts': {'":': 0, '<': 5, '<?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': '7588592', 'n_tokens_mistral': 548, 'n_tokens_neox': 544, 'n_words': 64}