<commit_before><?php

/*
|--------------------------------------------------------------------------
| Model Factories
|--------------------------------------------------------------------------
|
| Here you may define all of your model factories. Model factories give
| you a convenient way to create models for testing and seeding your
| database. Just tell the factory how a default model should look.
|
*/

/** @var \Illuminate\Database\Eloquent\Factory $factory */
$factory->define(Sijot\User::class, function (Faker\Generator $faker) {
    static $password;

    return [
        'name' => $faker->name,
        'email' => $faker->unique()->safeEmail,
        'password' => $password ?: $password = bcrypt('<PASSWORD>'),
        'remember_token' => str_random(10),
    ];
});

$factory->define(Sijot\Activity::class, function (Faker\Generator $faker) {
    return [
        'group_id' => function () {
             return factory(Sijot\Groups::class)->create()->id;
        },
        'status' => $faker->word,
        'title' => $faker->word,
        'description' => $faker->word,
        'activiteit_datum' => '',
        'start_hour' => '',
        'end_hour' => '',
        'deleted_at' => '',
    ];
});

$factory->define(Sijot\Categories::class, function (Faker\Generator $faker) {
    return [
        'author_id' => function () {
             return factory(Sijot\User::class)->create()->id;
        },
        'module' => $faker->word,
        'name' => $faker->name,
        'description' => $faker->text,
    ];
});

$factory->define(Sijot\Events::class, function (Faker\Generator $faker) {
    return [
        'status' => $faker->randomNumber(),
        'author_id' => function () {
             return factory(Sijot\User::class)->create()->id;
        },
        'title' => $faker->word,
        'description' => $faker->word,
        'end_date' => '',
        'end_hour' => '',
        'start_date' => '',
        'start_hour' => '',
    ];
});

$factory->define(Sijot\Groups::class, function (Faker\Generator $faker) {
    return [
        'selector' => $faker->word,
        'title' => $faker->word,
        'sub_title' => $faker->word,
        'description' => $faker->text,
    ];
});

$factory->define(Sijot\Lease::class, function (Faker\Generator $faker) {
    return [
        'status_id' => $faker->randomNumber(),
        'groeps_naam' => $faker->word,
        'contact_email' => $faker->word,
        'tel_nummer' => $faker->word,
        'eind_datum' => $faker->dateTimeBetween(),
        'start_datum' => $faker->dateTimeBetween(),
    ];
});

$factory->define(Sijot\News::class, function (Faker\Generator $faker) {
    return [
        'author_id' => function () {
             return factory(Sijot\User::class)->create()->id;
        },
        'title' => $faker->word,
        'publish' => $faker->word,
        'message' => $faker->text,
    ];
});

$factory->define(Sijot\Themes::class, function (Faker\Generator $faker) {
    return [
        'name' => $faker->name,
        'class' => $faker->word,
    ];
});
<commit_msg>[FACTORIES]: Implementatie docblocks<commit_after><?php

/*
|--------------------------------------------------------------------------
| Model Factories
|--------------------------------------------------------------------------
|
| Here you may define all of your model factories. Model factories give
| you a convenient way to create models for testing and seeding your
| database. Just tell the factory how a default model should look.
|
*/

/** @var \Illuminate\Database\Eloquent\Factory $factory */
$factory->define(Sijot\User::class, function (Faker\Generator $faker) {
    static $password;

    return [
        'name' => $faker->name,
        'email' => $faker->unique()->safeEmail,
        'password' => $password ?: $password = <PASSWORD>('<PASSWORD>'),
        'remember_token' => str_random(10),
    ];
});

/** @var \Illuminate\Database\Eloquent\Factory $factory */
$factory->define(Sijot\Activity::class, function (Faker\Generator $faker) {
    return [
        'group_id' => function () {
             return factory(Sijot\Groups::class)->create()->id;
        },
        'status' => $faker->word,
        'title' => $faker->word,
        'description' => $faker->word,
        'activiteit_datum' => '',
        'start_hour' => '',
        'end_hour' => '',
        'deleted_at' => '',
    ];
});

/** @var \Illuminate\Database\Eloquent\Factory $factory */
$factory->define(Sijot\Categories::class, function (Faker\Generator $faker) {
    return [
        'author_id' => function () {
             return factory(Sijot\User::class)->create()->id;
        },
        'module' => $faker->word,
        'name' => $faker->name,
        'description' => $faker->text,
    ];
});

/** @var \Illuminate\Database\Eloquent\Factory $factory */
$factory->define(Sijot\Events::class, function (Faker\Generator $faker) {
    return [
        'status' => $faker->randomNumber(),
        'author_id' => function () {
             return factory(Sijot\User::class)->create()->id;
        },
        'title' => $faker->word,
        'description' => $faker->word,
        'end_date' => '',
        'end_hour' => '',
        'start_date' => '',
        'start_hour' => '',
    ];
});

/** @var \Illuminate\Database\Eloquent\Factory $factory */
$factory->define(Sijot\Groups::class, function (Faker\Generator $faker) {
    return [
        'selector' => $faker->word,
        'title' => $faker->word,
        'sub_title' => $faker->word,
        'description' => $faker->text,
    ];
});

/** @var \Illuminate\Database\Eloquent\Factory $factory */
$factory->define(Sijot\Lease::class, function (Faker\Generator $faker) {
    return [
        'status_id' => $faker->randomNumber(),
        'groeps_naam' => $faker->word,
        'contact_email' => $faker->word,
        'tel_nummer' => $faker->word,
        'eind_datum' => $faker->dateTimeBetween(),
        'start_datum' => $faker->dateTimeBetween(),
    ];
});

/** @var \Illuminate\Database\Eloquent\Factory $factory */
$factory->define(Sijot\News::class, function (Faker\Generator $faker) {
    return [
        'author_id' => function () {
             return factory(Sijot\User::class)->create()->id;
        },
        'title' => $faker->word,
        'publish' => $faker->word,
        'message' => $faker->text,
    ];
});

/** @var \Illuminate\Database\Eloquent\Factory $factory */
$factory->define(Sijot\Themes::class, function (Faker\Generator $faker) {
    return [
        'name' => $faker->name,
        'class' => $faker->word,
    ];
});

{'fraction_non_alphanumeric': 0.23058178495278708, 'fraction_numerical': 0.0006091989034419738, 'mean_word_length': 2.234975369458128, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 172, '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': '7301775', 'n_tokens_mistral': 2067, 'n_tokens_neox': 2090, 'n_words': 353}