<commit_before><?php
/**
 * Copyright (C) 2015 <NAME>
 *
 * Defines the page tests
 */
namespace RDevWebsite\HTTP;
use Parsedown;
use RDevWebsite\Docs\Documentation;
use RDev\Files\FileSystem;

class PageTest extends ApplicationTestCase
{
    /** @var Documentation The docs */
    private $docs = null;

    /**
     * Sets up the tests
     */
    public function setUp()
    {
        parent::setUp();

        $this->docs = new Documentation(
            $this->getMock(Parsedown::class),
            $this->application->getPaths(),
            $this->getMock(FileSystem::class)
        );
    }

    /**
     * Tests that the 404 template is set up correctly
     */
    public function test404PageIsSetUpCorrectly()
    {
        $this->route("GET", "/does-not-exist");
        $this->checkMasterTemplateSetup();
        $this->assertResponseIsNotFound();
        $this->assertTemplateVarEquals("metaKeywords", []);
        $this->assertTemplateVarEquals("metaDescription", "");
        $this->assertTemplateVarEquals("doFormatTitle", true);
        $this->assertTemplateVarEquals("title", "404 Error");
        $this->assertTemplateVarEquals("mainClasses", "home");
    }

    /**
     * Tests that the docs template is set up correctly
     */<commit_msg>Purposely failing to test deployment script<commit_after><?php
/**
 * Copyright (C) 2015 <NAME>
 *
 * Defines the page tests
 */
namespace RDevWebsite\HTTP;
use Parsedown;
use RDevWebsite\Docs\Documentation;
use RDev\Files\FileSystem;

class PageTest extends ApplicationTestCase
{
    /** @var Documentation The docs */
    private $docs = null;

    /**
     * Sets up the tests
     */
    public function setUp()
    {
        parent::setUp();

        $this->docs = new Documentation(
            $this->getMock(Parsedown::class),
            $this->application->getPaths(),
            $this->getMock(FileSystem::class)
        );
    }

    /**
     * Tests that the 404 template is set up correctly
     */
    public function test404PageIsSetUpCorrectly()
    {
        $this->route("GET", "/does-not-exist");
        $this->checkMasterTemplateSetup();
        $this->assertResponseIsOK();//$this->assertResponseIsNotFound();
        $this->assertTemplateVarEquals("metaKeywords", []);
        $this->assertTemplateVarEquals("metaDescription", "");
        $this->assertTemplateVarEquals("doFormatTitle", true);
        $this->assertTemplateVarEquals("title", "404 Error");
        $this->assertTemplateVarEquals("mainClasses", "home");
    }

    /**
     * Tests that the docs template is set up correctly
     */
{'fraction_non_alphanumeric': 0.13921113689095127, 'fraction_numerical': 0.010054137664346482, 'mean_word_length': 2.7656477438136826, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 32, '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': '1444940', 'n_tokens_mistral': 756, 'n_tokens_neox': 718, 'n_words': 157}