<commit_before><?php

use Illuminate\Database\Seeder;

class NationalTeams2Seeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $league = \App\Models\League::firstOrNew([
            'name' => 'National teams',
            'logoPath' => 'leagues-logo/national-teams.png'
        ]);
        $league->save();

        DB::table('teams')->insert([
            'leagueId' => $league->id,
            'name' => 'Austria',
            'logoPath' => 'teams-logo/austria.png',
            'created_at' => \Carbon\Carbon::now(),
            'updated_at' => \Carbon\Carbon::now()
        ]);
        DB::table('teams')->insert([
            'leagueId' => $league->id,
            'name' => 'Denmark',
            'logoPath' => 'teams-logo/denmark.png',
            'created_at' => \Carbon\Carbon::now(),
            'updated_at' => \Carbon\Carbon::now()
        ]);
        DB::table('teams')->insert([
            'leagueId' => $league->id,
            'name' => 'Greece',
            'logoPath' => 'teams-logo/greece.png',
            'created_at' => \Carbon\Carbon::now(),
            'updated_at' => \Carbon\Carbon::now()
        ]);
        DB::table('teams')->insert([
            'leagueId' => $league->id,
            'name' => 'Portugal',
            'logoPath' => 'teams-logo/portugal.png',
            'created_at' => \Carbon\Carbon::now(),
            'updated_at' => \Carbon\Carbon::now()
        ]);
        DB::table('teams')->insert([
            'leagueId' => $league->id,
            'name' => 'Switzerland',
            'logoPath' => 'teams-logo/switzerland.png',
            'created_at' => \Carbon\Carbon::now(),
            'updated_at' => \Carbon\Carbon::now()
        ]);

    }
}<commit_msg>Fix multiple teams seeding with NationalTeams2Seeder<commit_after><?php

use Illuminate\Database\Seeder;

class NationalTeams2Seeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $league = \App\Models\League::firstOrNew([
            'name' => 'National teams',
            'logoPath' => 'leagues-logo/national-teams.png'
        ]);
        $league->save();

        if (1 > \App\Models\Team::where(['name' => 'Austria'])->count()) {
            DB::table('teams')->insert([
                'leagueId' => $league->id,
                'name' => 'Austria',
                'logoPath' => 'teams-logo/austria.png',
                'created_at' => \Carbon\Carbon::now(),
                'updated_at' => \Carbon\Carbon::now()
            ]);
        }

        if (1 > \App\Models\Team::where(['name' => 'Denmark'])->count()) {
            DB::table('teams')->insert([
                'leagueId' => $league->id,
                'name' => 'Denmark',
                'logoPath' => 'teams-logo/denmark.png',
                'created_at' => \Carbon\Carbon::now(),
                'updated_at' => \Carbon\Carbon::now()
            ]);
        }

        if (1 > \App\Models\Team::where(['name' => 'Greece'])->count()) {
            DB::table('teams')->insert([
                'leagueId' => $league->id,
                'name' => 'Greece',
                'logoPath' => 'teams-logo/greece.png',
                'created_at' => \Carbon\Carbon::now(),
                'updated_at' => \Carbon\Carbon::now()
            ]);
        }

        if (1 > \App\Models\Team::where(['name' => 'Portugal'])->count()) {
            DB::table('teams')->insert([
                'leagueId' => $league->id,
                'name' => 'Portugal',
                'logoPath' => 'teams-logo/portugal.png',
                'created_at' => \Carbon\Carbon::now(),
                'updated_at' => \Carbon\Carbon::now()
            ]);
        }

        if (1 > \App\Models\Team::where(['name' => 'Switzerland'])->count()) {
            DB::table('teams')->insert([
                'leagueId' => $league->id,
                'name' => 'Switzerland',
                'logoPath' => 'teams-logo/switzerland.png',
                'created_at' => \Carbon\Carbon::now(),
                'updated_at' => \Carbon\Carbon::now()
            ]);
        }

    }
}
{'fraction_non_alphanumeric': 0.19733079122974262, 'fraction_numerical': 0.0019065776930409914, 'mean_word_length': 1.6496212121212122, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 94, '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': '4318374', 'n_tokens_mistral': 1365, 'n_tokens_neox': 1300, 'n_words': 183}