<commit_before><?php

use Illuminate\Foundation\Testing\DatabaseTransactions;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Illuminate\Foundation\Testing\WithoutMiddleware;
use Laracasts\TestDummy\Factory;

class LearnTest extends TestCase
{
    use WithoutMiddleware;
    use DatabaseMigrations;
    
    /**
     * Test test, verifying that the factory works as intended.
     * 
     * @covers \Codefocus\Vernacular\Traits\Learnable
     * @covers \Codefocus\Vernacular\Observers\ModelObserver
     * @covers \Codefocus\Vernacular\Providers\VernacularServiceProvider
     * @covers \Codefocus\Vernacular\Vernacular
     * @covers \Codefocus\Vernacular\Tokenizers\Whitespace
     * @covers \Codefocus\Vernacular\Models\Source
     * @covers \Codefocus\Vernacular\Models\Document
     * @covers \Codefocus\Vernacular\Models\Word
     * @covers \Codefocus\Vernacular\Models\Bigram
     * @return void
     */
    public function testExample()
    {
        //  Generate a random ImaginaryWebsite model instance.
        $website = Factory::create(ImaginaryWebsite::class);
        //  Save.
        $website->save();
        
        //  @NOTE:  Fairly useless assertions currently.
        $this->seeInDatabase(
            'imaginary_website', [
                'id' => 1
            ]
        );
        $this->assertEquals($website->id, 1);
    }
}<commit_msg>Test coverage updated<commit_after><?php

use Illuminate\Foundation\Testing\DatabaseTransactions;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Illuminate\Foundation\Testing\WithoutMiddleware;
use Laracasts\TestDummy\Factory;

class LearnTest extends TestCase
{
    use WithoutMiddleware;
    use DatabaseMigrations;
    
    /**
     * Test test, verifying that the factory works as intended.
     * 
     * @covers \Codefocus\Vernacular\Traits\Learnable
     * @covers \Codefocus\Vernacular\Observers\ModelObserver
     * @covers \Codefocus\Vernacular\Providers\VernacularServiceProvider
     * @covers \Codefocus\Vernacular\Vernacular
     * @covers \Codefocus\Vernacular\Tokenizers\Whitespace
     * @covers \Codefocus\Vernacular\Models\Source
     * @covers \Codefocus\Vernacular\Models\Document
     * @covers \Codefocus\Vernacular\Models\Word
     * @covers \Codefocus\Vernacular\Models\Bigram
     * @covers \Codefocus\Vernacular\Services\BigramKeyService
     * @return void
     */
    public function testExample()
    {
        //  Generate a random ImaginaryWebsite model instance.
        $website = Factory::create(ImaginaryWebsite::class);
        //  Save.
        $website->save();
        
        //  @NOTE:  Fairly useless assertions currently.
        $this->seeInDatabase(
            'imaginary_website', [
                'id' => 1
            ]
        );
        $this->assertEquals($website->id, 1);
    }
}
{'fraction_non_alphanumeric': 0.10343606092809068, 'fraction_numerical': 0.0014169323414806943, 'mean_word_length': 2.7305151915455745, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '1415593', 'n_tokens_mistral': 847, 'n_tokens_neox': 850, 'n_words': 144}