<commit_before><?php

namespace Frontend\Modules\Profiles\Tests\DataFixtures;

use DateTime;
use SpoonDatabase;

class LoadProfiles
{
    public function load(SpoonDatabase $database): void
    {
        $dateWithinAMonthAgo = new DateTime('-1 week');
        $dateOverAMonthAgo = new DateTime('-2 months');

        $database->insert(
            'profiles_sessions',
            [
                [
                    'session_id' => '0123456789',
                    'profile_id' => 1,
                    'secret_key' => 'NotSoSecretNowIsIt',
                    'date' => $dateWithinAMonthAgo->format('Y-m-d H:i:s'),
                ],
                [
                    'session_id' => '1234567890',
                    'profile_id' => 1,
                    'secret_key' => 'WeNeedToTalk',
                    'date' => $dateOverAMonthAgo->format('Y-m-d H:i:s'),
                ],
            ]
        );

        $database->insert(
            'profiles',
            [
                [
                    'email' => '<EMAIL>',
                    'password' => <PASSWORD>', // forkcms
                    'status' => 'active',
                    'display_name' => 'active Fork CMS profile',
                    'url' => 'active-fork-cms-profile',
                    'registered_on' => $dateOverAMonthAgo->format('Y-m-d H:i:s'),
                    'last_login' => $dateWithinAMonthAgo->format('Y-m-d H:i:s'),
                ],
                [
                    'email' => '<EMAIL>',
                    'password' => <PASSWORD>', // forkcms
                    'status' => 'inactive',
                    'display_name' => 'inactive Fork CMS profile',
                    'url' => 'inactive-fork-cms-profile',
                    'registered_on' => $dateOverAMonthAgo->format('Y-m-d H:i:s'),
                    'last_login' => $dateWithinAMonthAgo->format('Y-m-d H:i:s'),
                ],
                [
                    'email' => '<EMAIL>',
                    'password' => <PASSWORD>', // forkcms
                    'status' => 'deleted',
                    'display_name' => 'deleted Fork CMS profile',
                    'url' => 'deleted-fork-cms-profile',
                    'registered_on' => $dateOverAMonthAgo->format('Y-m-d H:i:s'),
                    'last_login' => $dateWithinAMonthAgo->format('Y-m-d H:i:s'),
                ],
                [
                    'email' => '<EMAIL>',
                    'password' => <PASSWORD>', // forkcms
                    'status' => 'blocked',
                    'display_name' => 'blocked Fork CMS profile',
                    'url' => 'blocked-fork-cms-profile',
                    'registered_on' => $dateOverAMonthAgo->format('Y-m-d H:i:s'),
                    'last_login' => $dateWithinAMonthAgo->format('Y-m-d H:i:s'),
                ],
            ]
        );
    }
}<commit_msg>Update data fixtures for frontend tests<commit_after><?php

namespace Frontend\Modules\Profiles\Tests\DataFixtures;

use DateTime;
use SpoonDatabase;

class LoadProfiles
{
    public function load(SpoonDatabase $database): void
    {
        $dateWithinAMonthAgo = new DateTime('-1 week');
        $dateOverAMonthAgo = new DateTime('-2 months');

        $database->insert(
            'ProfilesProfileSession',
            [
                [
                    'sessionId' => '0123456789',
                    'profile_id' => 1,
                    'secretKey' => 'NotSoSecretNowIsIt',
                    'date' => $dateWithinAMonthAgo,
                ],
                [
                    'session_id' => '1234567890',
                    'profile_id' => 1,
                    'secret_key' => 'WeNeedToTalk',
                    'date' => $dateOverAMonthAgo->format('Y-m-d H:i:s'),
                ],
            ]
        );

        $database->insert(
            'ProfilesProfile',
            [
                [
                    'email' => '<EMAIL>',
                    'password' => <PASSWORD>', // forkcms
                    'status' => 'active',
                    'displayName' => 'active Fork CMS profile',
                    'url' => 'active-fork-cms-profile',
                    'registeredOn' => $dateOverAMonthAgo,
                    'lastLogin' => $dateWithinAMonthAgo,
                ],
                [
                    'email' => '<EMAIL>',
                    'password' => <PASSWORD>', // forkcms
                    'status' => 'inactive',
                    'displayName' => 'inactive Fork CMS profile',
                    'url' => 'inactive-fork-cms-profile',
                    'registeredOn' => $dateOverAMonthAgo,
                    'lastLogin' => $dateWithinAMonthAgo,
                ],
                [
                    'email' => '<EMAIL>',
                    'password' => <PASSWORD>', // forkcms
                    'status' => 'deleted',
                    'displayName' => 'deleted Fork CMS profile',
                    'url' => 'deleted-fork-cms-profile',
                    'registeredOn' => $dateOverAMonthAgo,
                    'lastLogin' => $dateWithinAMonthAgo,
                ],
                [
                    'email' => '<EMAIL>',
                    'password' => <PASSWORD>', // forkcms
                    'status' => 'blocked',
                    'displayName' => 'blocked Fork CMS profile',
                    'url' => 'blocked-fork-cms-profile',
                    'registeredOn' => $dateOverAMonthAgo,
                    'lastLogin' => $dateWithinAMonthAgo,
                ],
            ]
        );
    }
}
{'fraction_non_alphanumeric': 0.1431887163006606, 'fraction_numerical': 0.00856989823245849, 'mean_word_length': 1.1899921813917123, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 106, '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': '7249656', 'n_tokens_mistral': 1685, 'n_tokens_neox': 1550, 'n_words': 244}