<commit_before><?php

use Carbon\Carbon;

/*
|--------------------------------------------------------------------------
| 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.
|
*/
$factory->define(App\Rental::class, function (Faker\Generator $faker) {
    return [
        'start_date'   => $faker->word,
        'end_date'     => $faker->word,
        'group'        => $faker->name,
        'phone_number' => $faker->phoneNumber,
        'email'        => $faker->email
    ];

});

$factory->define(App\RentalStatus::class, function (Faker\Generator $faker) {
    return [
        'name'  => $faker->word,
        'class' => $faker->word
    ];
});

$factory->define(App\RentalStatus::class, function (Faker\Generator $faker) {
    return [
        'name'  => $faker->word,
        'class' => $faker->word,
    ];
});

$factory->define(App\Activity::class, function (Faker\Generator $faker) {
    // $faker->unixTime($max = 'now')                 -> (timestamp) 58781813
    // $faker->time($format = 'H:i:s', $max = 'now')  -> '20:49:42'

    return [
        'user_id'     => $faker->numberBetween(0, 4),
        'heading'     => $faker->text(200),
        'description' => $faker->text(200),
        'date'        => Carbon::now(),
        'start_time'  => Carbon::now(),
        'end_time'    => Carbon::now(),
        'state'       => 1,
    ];
});

$factory->define(App\Groups::class, function (Faker\Generator $faker) {
    return [
        'selector'    => $faker->name,
        'sub_heading' => $faker->name,<commit_msg>remove duplicate factory<commit_after><?php

use Carbon\Carbon;

/*
|--------------------------------------------------------------------------
| 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.
|
*/
$factory->define(App\Rental::class, function (Faker\Generator $faker) {
    return [
        'start_date'   => $faker->word,
        'end_date'     => $faker->word,
        'group'        => $faker->name,
        'phone_number' => $faker->phoneNumber,
        'email'        => $faker->email
    ];

});

$factory->define(App\RentalStatus::class, function (Faker\Generator $faker) {
    return [
        'name'  => $faker->word,
        'class' => $faker->word
    ];
});

$factory->define(App\Activity::class, function (Faker\Generator $faker) {
    // $faker->unixTime($max = 'now')                 -> (timestamp) 58781813
    // $faker->time($format = 'H:i:s', $max = 'now')  -> '20:49:42'

    return [
        'user_id'     => $faker->numberBetween(0, 4),
        'heading'     => $faker->text(200),
        'description' => $faker->text(200),
        'date'        => Carbon::now(),
        'start_time'  => Carbon::now(),
        'end_time'    => Carbon::now(),
        'state'       => 1,
    ];
});

$factory->define(App\Groups::class, function (Faker\Generator $faker) {
    return [
        'selector'    => $faker->name,
        'sub_heading' => $faker->name,
{'fraction_non_alphanumeric': 0.2527891955372871, 'fraction_numerical': 0.013505578391074574, 'mean_word_length': 1.8606213266162888, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 80, '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': '1062458', 'n_tokens_mistral': 1081, 'n_tokens_neox': 1042, 'n_words': 214}