<commit_before><?php

use Illuminate\Foundation\Testing\WithoutMiddleware;

class SpecificationControllerTest extends TestCase
{
    use WithoutMiddleware;

    /**
     * @return void
     */
    public function testShow()
    {
        $this->visit('/spezifikation');

        $this->see('Spezifikation - OParl.org'); // title

        $this->see('OParl.'); // header
        $this->matchesRegularExpression('<li role="presentation" class="active">\w*<a href="http://localhost/spezifikation">\w*Spezifikation\w*</a>\w*</li>'); // menu

        // NOTE: not testing for the loaded livecopy contents since that requires pandoc
        //       in the testing environment
    }
}
<commit_msg>Testing route existence and status for the markdown variant.<commit_after><?php

use Illuminate\Foundation\Testing\WithoutMiddleware;

class SpecificationControllerTest extends TestCase
{
    use WithoutMiddleware;

    /**
     * @return void
     */
    public function testShow()
    {
        $this->visit('/spezifikation');

        $this->see('Spezifikation - OParl.org'); // title

        $this->see('OParl.'); // header
        $this->matchesRegularExpression('<li role="presentation" class="active">\w*<a href="http://localhost/spezifikation">\w*Spezifikation\w*</a>\w*</li>'); // menu

        // NOTE: not testing for the loaded livecopy contents since that requires pandoc
        //       in the testing environment
    }

    public function testRaw()
    {
        $request = $this->call('GET', '/spezifikation.md');

        $this->assertEquals(200, $request->status());
    }
}

{'fraction_non_alphanumeric': 0.14744801512287334, 'fraction_numerical': 0.001890359168241966, 'mean_word_length': 2.892156862745098, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 22, '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': '234255', 'n_tokens_mistral': 455, 'n_tokens_neox': 461, 'n_words': 98}