<commit_before><?php
/**
 * Defines the page tests
 */
namespace Project\HTTP;

class PagesTest extends ApplicationTestCase
{
    /**
     * Tests that the 404 template is set up correctly
     */
    public function test404PageIsSetUpCorrectly()
    {
        $this->route("GET", "/doesNotExist");
        $this->checkMasterTemplateSetup();
        $this->assertResponseIsNotFound();
        $this->assertTemplateVarEquals("title", "404 Error");
    }

    /**
     * Tests that the edit template is set up correctly
     */
    public function testEditPageIsSetUpCorrectly()
    {
        $this->route("GET", "/edit");
        $this->checkMasterTemplateSetup();
        $this->assertResponseIsOK();
        $this->assertTemplateVarEquals("title", "Editing This Project");
    }

    /**
     * Tests that the home template is set up correctly
     */
    public function testHomePageIsSetUpCorrectly()
    {
        $this->route("GET", "/");
        $this->checkMasterTemplateSetup();
        $this->assertResponseIsOK();
        $this->assertTemplateVarEquals("title", "My First Opulence Application");
    }

    /**
     * Tests that the master template is set up correctly
     */
    private function checkMasterTemplateSetup()
    {
        $this->assertTemplateVarEquals("metaKeywords", []);
        $this->assertTemplateVarEquals("metaDescription", "");
        $this->assertTemplateVarEquals("css", "assets/css/style.css");
    }
}<commit_msg>Fixed broken calls in test suite<commit_after><?php
/**
 * Defines the page tests
 */
namespace Project\HTTP;

class PagesTest extends ApplicationTestCase
{
    /**
     * Tests that the 404 template is set up correctly
     */
    public function test404PageIsSetUpCorrectly()
    {
        $this->route("GET", "/doesNotExist");
        $this->checkMasterTemplateSetup();
        $this->assertResponseIsNotFound();
        $this->assertViewVarEquals("title", "404 Error");
    }

    /**
     * Tests that the edit template is set up correctly
     */
    public function testEditPageIsSetUpCorrectly()
    {
        $this->route("GET", "/edit");
        $this->checkMasterTemplateSetup();
        $this->assertResponseIsOK();
        $this->assertViewVarEquals("title", "Editing This Project");
    }

    /**
     * Tests that the home template is set up correctly
     */
    public function testHomePageIsSetUpCorrectly()
    {
        $this->route("GET", "/");
        $this->checkMasterTemplateSetup();
        $this->assertResponseIsOK();
        $this->assertViewVarEquals("title", "My First Opulence Application");
    }

    /**
     * Tests that the master template is set up correctly
     */
    private function checkMasterTemplateSetup()
    {
        $this->assertViewVarEquals("metaKeywords", []);
        $this->assertViewVarEquals("metaDescription", "");
        $this->assertViewVarEquals("css", "assets/css/style.css");
    }
}
{'fraction_non_alphanumeric': 0.1350327247674819, 'fraction_numerical': 0.006200482259731312, 'mean_word_length': 2.8412698412698414, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 33, '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': '4922164', 'n_tokens_mistral': 804, 'n_tokens_neox': 776, 'n_words': 177}