<commit_before><?php

class BuildTest extends PHPUnit_Framework_TestCase
{
    public function testBuildAPI()
    {
        $build = new PhpBrew\Build('5.3.1');

        $build->setVersion('5.3.1');
        $build->enableVariant('debug');
        $build->enableVariant('icu');
        $build->enableVariant('sqlite');

        $build->disableVariant('sqlite');
        $build->disableVariant('mysql');
        $build->resolveVariants();

        $this->assertSame( 1 , $build->compareVersion('5.3.0') );
        $this->assertSame( 1 , $build->compareVersion('5.3') );
        $this->assertSame( -1 , $build->compareVersion('5.4.0') );
        $this->assertSame( -1 , $build->compareVersion('5.4') );
        $this->assertSame('php-5.3.1-debug-icu-dev', $build->getIdentifier());
    }

    public function testNeutralVirtualVariant()
    {
        $build = new PhpBrew\Build('5.5.0');
        $build->setVersion('5.5.0');
        $build->enableVariant('neutral');
        $build->resolveVariants();

        $this->assertTrue($build->hasVariant('neutral') );
    }
}<commit_msg>Same() to check the expected values.<commit_after><?php

class BuildTest extends PHPUnit_Framework_TestCase
{
    public function testBuildAPI()
    {
        $build = new PhpBrew\Build('5.3.1');

        $build->setVersion('5.3.1');
        $build->enableVariant('debug');
        $build->enableVariant('icu');
        $build->enableVariant('sqlite');

        $build->disableVariant('sqlite');
        $build->disableVariant('mysql');
        $build->resolveVariants();

        Same( 1 , $build->compareVersion('5.3.0') );
        Same( 1 , $build->compareVersion('5.3') );
        Same( -1 , $build->compareVersion('5.4.0') );
        Same( -1 , $build->compareVersion('5.4') );
        Same('php-5.3.1-debug-icu-dev', $build->getIdentifier());
    }

    public function testNeutralVirtualVariant()
    {
        $build = new PhpBrew\Build('5.5.0');
        $build->setVersion('5.5.0');
        $build->enableVariant('neutral');
        $build->resolveVariants();

        $this->assertTrue($build->hasVariant('neutral') );
    }
}
{'fraction_non_alphanumeric': 0.19489120151371808, 'fraction_numerical': 0.027436140018921477, 'mean_word_length': 2.7903225806451615, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 42, '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': '1434766', 'n_tokens_mistral': 679, 'n_tokens_neox': 661, 'n_words': 89}