<commit_before><?php
use SQLBuilder\Column;

class FooMigration extends LazyRecord\Migration\BaseMigration 
{
    public function upgrade() 
    {
        $this->addColumn('foo', 
            Column::create('address')
                ->type('varchar(128)')
                ->default('(none)')
                ->notNull()
        );
    }
}

class BaseMigrationTest extends PHPUnit_Framework_TestCase
{
    function test()
    {
        $connm = LazyRecord\ConnectionManager::getInstance();
        $connm->addDataSource('default',array(
            'dsn' => 'sqlite::memory:'
        ));

        $conn = $connm->getConnection('default');
        ok($conn);

        $conn->query('CREATE TABLE foo (id integer primary key, name varchar(32));');<commit_msg>outputBuffering off<commit_after><?php
use SQLBuilder\Column;

class FooMigration extends LazyRecord\Migration\BaseMigration 
{
    public function upgrade() 
    {
        $this->addColumn('foo', 
            Column::create('address')
                ->type('varchar(128)')
                ->default('(none)')
                ->notNull()
        );
    }
}

class BaseMigrationTest extends PHPUnit_Framework_TestCase
{
    /**
     * @outputBuffering enabled
     */
    function test()
    {
        $connm = LazyRecord\ConnectionManager::getInstance();
        $connm->addDataSource('default',array(
            'dsn' => 'sqlite::memory:'
        ));

        $conn = $connm->getConnection('default');
        ok($conn);

        $conn->query('CREATE TABLE foo (id integer primary key, name varchar(32));');
{'fraction_non_alphanumeric': 0.14495530012771393, 'fraction_numerical': 0.006385696040868455, 'mean_word_length': 2.355460385438972, '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': '5318466', 'n_tokens_mistral': 448, 'n_tokens_neox': 433, 'n_words': 78}