<commit_before><?php
/**
 * Spiral Framework.
 *
 * @license   MIT
 * @author    <NAME> (Wolfy-J)
 */
namespace Tests\Cases;

use Tests\TestCase;
use Tests\Traits\HttpTrait;

class SamplesTest extends TestCase
{
    use HttpTrait;

    public function testList()
    {
        $response = $this->get('/sample');
        $this->assertContains('Edit element', (string)$response->getBody());
    }

    public function testElement()
    {
        $response = $this->get('/sample/edit/1');
        $this->assertEquals(200, $response->getStatusCode());
    }

    public function testBadElement()
    {
        $response = $this->get('/sample/edit/abc');
    }

    public function tearDown()
    {
        $this->orm->cache()->flushCache();
    }
}<commit_msg>Update SamplesTest.php<commit_after><?php
/**
 * Spiral Framework.
 *
 * @license   MIT
 * @author    <NAME> (Wolfy-J)
 */
namespace Tests\Cases;

use Tests\TestCase;
use Tests\Traits\HttpTrait;

class SamplesTest extends TestCase
{
    use HttpTrait;

    public function testList()
    {
        $response = $this->get('/sample');
        $this->assertContains('Edit element', (string)$response->getBody());
    }

    public function testElement()
    {
        $response = $this->get('/sample/edit/1');
        $this->assertEquals(200, $response->getStatusCode());
    }

    public function testBadElement()
    {
        $response = $this->get('/sample/edit/abc');
        $this->assertEquals(404, $response->getStatusCode());
    }

    public function tearDown()
    {
        $this->orm->cache()->flushCache();
    }
}
{'fraction_non_alphanumeric': 0.16614024005053696, 'fraction_numerical': 0.006948831332912192, 'mean_word_length': 2.7624703087885987, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 27, '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': '787499', 'n_tokens_mistral': 497, 'n_tokens_neox': 479, 'n_words': 91}