<commit_before><?php

use GuzzleHttp\Client;

class VanillaTest extends PHPUnit_Framework_TestCase
{
    protected function getEnvWithFallback($variable, $fallbackVariable)
    {
        return getenv($variable) ?: getenv($fallbackVariable);
    }

    public function testForumInstalled()
    {
        $client = new Client([
            'base_url' => sprintf(
                'http://%s:%s',
                $this->getEnvWithFallback('VANILLA_SERVER_HOST', 'WEB_PORT_80_TCP_ADDR'),
                getenv('VANILLA_SERVER_PORT')
            ),
        ]);

        $response = $client->get('/');
        $body = (string) $response->getBody();

        $this->assertEquals(200, $response->getStatusCode());
        $this->assertContains('Recent Discussions', $body);
        $this->assertContains('BAM! You’ve got a sweet forum', $body);
    }
}<commit_msg>Changes string to check for if forum is online<commit_after><?php

use GuzzleHttp\Client;

class VanillaTest extends PHPUnit_Framework_TestCase
{
    protected function getEnvWithFallback($variable, $fallbackVariable)
    {
        return getenv($variable) ?: getenv($fallbackVariable);
    }

    public function testForumInstalled()
    {
        $client = new Client([
            'base_url' => sprintf(
                'http://%s:%s',
                $this->getEnvWithFallback('VANILLA_SERVER_HOST', 'WEB_PORT_80_TCP_ADDR'),
                getenv('VANILLA_SERVER_PORT')
            ),
        ]);

        $response = $client->get('/');
        $body = (string) $response->getBody();

        $this->assertEquals(200, $response->getStatusCode());
        $this->assertContains('Recent Discussions', $body);
        $this->assertContains('Community Software by Vanilla Forums', $body);
    }
}
{'fraction_non_alphanumeric': 0.1379703534777651, 'fraction_numerical': 0.005701254275940707, 'mean_word_length': 2.734042553191489, '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': '4794135', 'n_tokens_mistral': 527, 'n_tokens_neox': 508, 'n_words': 93}