<commit_before><?php


class LanguageControllerTest extends TestCase
{
    /**
     * Test switch language to English.
     *
     * @covers \App\Http\Controllers\LanguageController::switchLang
     * @test
     */
    public function it_switches_language_to_english_us()
    {
        $applocale = 'en_US.utf8';
        $this->call('GET', "/lang/$applocale");

        $this->assertSessionHas('language', 'en');
        $this->assertSessionHas('applocale', $applocale);
        $this->assertResponseStatus(302);
    }

    /**
     * Test switch language to Spanish Spain.
     *
     * @covers \App\Http\Controllers\LanguageController::switchLang
     * @test
     */
    public function it_switches_language_to_spanish_es()
    {
        $applocale = 'es_ES.utf8';
        $this->call('GET', "/lang/$applocale");

        $this->assertSessionHas('language', 'es');
        $this->assertSessionHas('applocale', $applocale);
        $this->assertResponseStatus(302);
    }
}<commit_msg>Simplify comments<commit_after><?php


class LanguageControllerTest extends TestCase
{
    /**
     * @covers \App\Http\Controllers\LanguageController::switchLang
     * @test
     */
    public function it_switches_language_to_english_us()
    {
        $applocale = 'en_US.utf8';
        $this->call('GET', "/lang/$applocale");

        $this->assertSessionHas('language', 'en');
        $this->assertSessionHas('applocale', $applocale);
        $this->assertResponseStatus(302);
    }

    /**
     * @covers \App\Http\Controllers\LanguageController::switchLang
     * @test
     */
    public function it_switches_language_to_spanish_es()
    {
        $applocale = 'es_ES.utf8';
        $this->call('GET', "/lang/$applocale");

        $this->assertSessionHas('language', 'es');
        $this->assertSessionHas('applocale', $applocale);
        $this->assertResponseStatus(302);
    }
}
{'fraction_non_alphanumeric': 0.15122470713525027, 'fraction_numerical': 0.008519701810436636, 'mean_word_length': 2.8742268041237113, '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': '6433229', 'n_tokens_mistral': 617, 'n_tokens_neox': 571, 'n_words': 82}