<commit_before><?php

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Lanin\ExtendSeeder\Seeder;

class CsvSeederTest extends TestCase
{
    public function setUp()
    {
        parent::setUp();

        $migration = new CreateAccountsTable();
        $migration->up();
    }

    /** @test */
    public function it_can_run_seed_model_from_csv_file()
    {
        $this->seed('CsvSeederDatabaseSeeder');

        $this->seeInDatabase('accounts', ['login' => 'john.doe']);
    }
}

/**
 * Main seeder class.
 *
 * @package Lanin\ExtendSeeder\Tests
 */
class CsvSeederDatabaseSeeder extends Seeder
{

    /**
     * Boot seeder.
     */
    protected function boot()
    {
        parent::boot();

        self::setCsvPath(realpath(dirname(__DIR__) . '/tests/fixture/csv'));
    }

    /**
     * Seed your database.
     */
    public function run()
    {
        $this->seedModel('Account');
    }
}

/**
 * Seeder for Accounts model.
 *
 * @package Lanin\ExtendSeeder\Tests
 */
class AccountsTableSeeder extends Seeder
{
    /**
     * Overwrite database name.<commit_msg>Update naming<commit_after><?php

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Lanin\ExtendSeeder\Seeder;

class CsvSeederTest extends TestCase
{
    public function setUp()
    {
        parent::setUp();

        $migration = new CreateAccountsTable();
        $migration->up();
    }

    /** @test */
    public function it_can_run_seed_model_from_csv_file()
    {
        $this->seed('CsvDatabaseSeeder');

        $this->seeInDatabase('accounts', ['login' => 'john.doe']);
    }
}

/**
 * Main seeder class.
 *
 * @package Lanin\ExtendSeeder\Tests
 */
class CsvDatabaseSeeder extends Seeder
{

    /**
     * Boot seeder.
     */
    protected function boot()
    {
        parent::boot();

        self::setCsvPath(realpath(dirname(__DIR__) . '/tests/fixture/csv'));
    }

    /**
     * Seed your database.
     */
    public function run()
    {
        $this->seedModel('Account');
    }
}

/**
 * Seeder for Accounts model.
 *
 * @package Lanin\ExtendSeeder\Tests
 */
class AccountsTableSeeder extends Seeder
{
    /**
     * Overwrite database name.
{'fraction_non_alphanumeric': 0.1386481802426343, 'fraction_numerical': 0.0, 'mean_word_length': 2.6884984025559104, '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': '3793262', 'n_tokens_mistral': 752, 'n_tokens_neox': 750, 'n_words': 132}