<commit_before><?php

class EntryTableSeeder extends Seeder {

    public function run()
    {
        DB::collection('entries')->delete();

        // Get list of user and group ids
        $groupIds = DB::collection('groups')->lists('_id');
        $userIds = DB::collection('users')->lists('_id');

        // Insert 50 elements filled with random data
        $faker = \Faker\Factory::create();

        for ($x = 0; $x < 50; $x++)
        {
            $randomUser = $userIds[array_rand($userIds)];
            $randomGroup = $groupIds[array_rand($groupIds)];

            Content::create([
                'created_at' => $faker->dateTimeThisDecade,
                'group_id' => $randomGroup,
                'text' => $faker->text(512),
                'user_id' => $randomUser,
            ]);
        }
    }

}
<commit_msg>Fix entry seeder<commit_after><?php

class EntryTableSeeder extends Seeder {

    public function run()
    {
        DB::collection('entries')->delete();

        // Get list of user and group ids
        $groupIds = DB::collection('groups')->lists('_id');
        $userIds = DB::collection('users')->lists('_id');

        // Insert 50 elements filled with random data
        $faker = \Faker\Factory::create();

        for ($x = 0; $x < 50; $x++)
        {
            $randomUser = $userIds[array_rand($userIds)];
            $randomGroup = $groupIds[array_rand($groupIds)];

            Entry::create([
                'created_at' => $faker->dateTimeThisDecade,
                'group_id' => $randomGroup,
                'text' => $faker->text(512),
                'user_id' => $randomUser,
            ]);
        }
    }

}

{'fraction_non_alphanumeric': 0.15937687237866988, 'fraction_numerical': 0.009586578789694428, 'mean_word_length': 1.945326278659612, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 21, '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': '5655154', 'n_tokens_mistral': 510, 'n_tokens_neox': 475, 'n_words': 98}