<commit_before><?php

namespace Picqer\Tests;

use PHPUnit\Framework\TestCase;
use Picqer\Financials\Exact\Item;
use Picqer\Tests\Support\MocksExactConnection;

class ModelTest extends TestCase
{
    use MocksExactConnection;

    public function testCanGetModels()
    {
        $handler = $this->createMockHandlerUsingFixture('items.json');
        $connection = $this->createMockConnection($handler);

        $response = (new Item($connection))->get();

        $this->assertIsArray($response);
        $this->assertInstanceOf(Item::class, $response[0]);
        $this->assertCount(2, $response);
    }

    /** @test */
    public function testCanGetModelsAsGenerator()
    {<commit_msg>Remove: redundant test annotation<commit_after><?php

namespace Picqer\Tests;

use PHPUnit\Framework\TestCase;
use Picqer\Financials\Exact\Item;
use Picqer\Tests\Support\MocksExactConnection;

class ModelTest extends TestCase
{
    use MocksExactConnection;

    public function testCanGetModels()
    {
        $handler = $this->createMockHandlerUsingFixture('items.json');
        $connection = $this->createMockConnection($handler);

        $response = (new Item($connection))->get();

        $this->assertIsArray($response);
        $this->assertInstanceOf(Item::class, $response[0]);
        $this->assertCount(2, $response);
    }

    public function testCanGetModelsAsGenerator()
    {
{'fraction_non_alphanumeric': 0.12905551550108146, 'fraction_numerical': 0.002883922134102379, 'mean_word_length': 3.9395017793594307, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '4291238', 'n_tokens_mistral': 414, 'n_tokens_neox': 404, 'n_words': 70}