<commit_before><?php namespace Modules\User\Database\Seeders;

use Illuminate\Database\Seeder;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\DB;
use Modules\User\Entities\Permission;
use Modules\User\Entities\Role;
use Modules\User\Entities\User;

class UserDatabaseSeeder extends Seeder {

    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        Model::unguard();

        DB::statement('SET FOREIGN_KEY_CHECKS=0;');

        $this->call('Modules\User\Database\Seeders\UserTableSeeder');

        DB::statement('SET FOREIGN_KEY_CHECKS=1;');
    }
}

class UserTableSeeder extends Seeder {

    public function run()
    {
        DB::table('users')->delete();

        $user = User::create([
            'id' => 1,
            'name' => 'Admin',
            'email' => '<EMAIL>',
            'password' => bcrypt('<PASSWORD>'),
            'locale' => 'en',
            'birthday_at' => '2000-01-01',
        ]);

        // add user to admin roles
        $adminRoles = Role::where('name', 'administrator')->get();
        $user->saveRoles($adminRoles);

        // add all permissions to admin roles
        $permissions = Permission::all();
        foreach ($adminRoles as $role)
        {
            $role->savePermissions($permissions);
        }
    }
}<commit_msg>[User] add few more account seeds with actual email addresses<commit_after><?php namespace Modules\User\Database\Seeders;

use Illuminate\Database\Seeder;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\DB;
use Modules\User\Entities\Permission;
use Modules\User\Entities\Role;
use Modules\User\Entities\User;

class UserDatabaseSeeder extends Seeder
{

    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        Model::unguard();

        DB::statement('SET FOREIGN_KEY_CHECKS=0;');

        $this->call('Modules\User\Database\Seeders\UserTableSeeder');

        DB::statement('SET FOREIGN_KEY_CHECKS=1;');
    }
}

class UserTableSeeder extends Seeder
{

    public function run()
    {
        DB::table('users')->delete();

        $admin = User::create([
            'id'       => 1,
            'name'     => 'admin',
            'email'    => '<EMAIL>',
            'password' => bcrypt('<PASSWORD>'),
            'locale' => 'en',
            'birthday_at' => '2000-01-01',
        ]);

        $fgreinus = User::create([
            'id'       => 2,
            'name'     => 'fgreinus',
            'email'    => '<EMAIL>',
            'password' => bcrypt('<PASSWORD>'),
            'locale'   => 'de',
            'birthday_at' => '2000-01-01',
        ]);

        $voydz = User::create([
            'id'       => 3,
            'name'     => 'voydz',
            'email'    => '<EMAIL>',
            'password' => <PASSWORD>('<PASSWORD>'),
            'locale'   => 'de',
            'birthday_at' => '2000-01-01',
        ]);

        $ottowayne = User::create([
            'id'       => 4,
            'name'     => 'ottowayne',
            'email'    => '<EMAIL>',
            'password' => bcrypt('<PASSWORD>'),
            'locale'   => 'de',
            'birthday_at' => '2000-01-01',
        ]);

        // add user to admin roles
        /** @var Role[] $adminRoles */
        $adminRoles = Role::where('name', 'administrator')->get();
        $admin->saveRoles($adminRoles);
        $fgreinus->saveRoles($adminRoles);
        $voydz->saveRoles($adminRoles);
        $ottowayne->saveRoles($adminRoles);

        // add all permissions to admin roles
        /** @var Permission[] $permissions */
        $permissions = Permission::all();
        foreach ($adminRoles as $role) {
            $role->savePermissions($permissions);
        }
    }
}
{'fraction_non_alphanumeric': 0.16351209253417456, 'fraction_numerical': 0.01288117770767613, 'mean_word_length': 1.9984239558707644, 'pattern_counts': {'":': 0, '<': 16, '<?xml version=': 0, '>': 57, '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': '6810878', 'n_tokens_mistral': 1206, 'n_tokens_neox': 1175, 'n_words': 216}