<commit_before><?php

namespace RadioStudent\AppBundle\DataFixtures\ORM\Seeds;

use Doctrine\Common\DataFixtures\FixtureInterface;
use Doctrine\Common\Persistence\ObjectManager;
use RadioStudent\AppBundle\Entity\Author;
use RadioStudent\AppBundle\Entity\Term;
use RadioStudent\AppBundle\Entity\User;

class LoadUserData implements FixtureInterface {

    /**
     * Load data fixtures with the passed EntityManager
     *
     * @param ObjectManager $manager
     */
    public function load(ObjectManager $manager)
    {
        $testUser = new User();
        $testUser->setUsername("testuser");
        $testUser->setPlainPassword("password");
        $testUser->setEmail("<EMAIL>");
        $manager->persist($testUser);

        $testAuthor = new Author();
        $testAuthor->setName("testuser");
        $testAuthor->setUser($testUser);
        $manager->persist($testAuthor);

        $times = [
            "Enka"   => new \DateTime('07:00:00'),
            "Dvojka" => new \DateTime('11:00:00'),<commit_msg>Enable testuser by default<commit_after><?php

namespace RadioStudent\AppBundle\DataFixtures\ORM\Seeds;

use Doctrine\Common\DataFixtures\FixtureInterface;
use Doctrine\Common\Persistence\ObjectManager;
use RadioStudent\AppBundle\Entity\Author;
use RadioStudent\AppBundle\Entity\Term;
use RadioStudent\AppBundle\Entity\User;

class LoadUserData implements FixtureInterface {

    /**
     * Load data fixtures with the passed EntityManager
     *
     * @param ObjectManager $manager
     */
    public function load(ObjectManager $manager)
    {
        $testUser = new User();
        $testUser->setUsername("testuser");
        $testUser->setPlainPassword("password");
        $testUser->setEmail("<EMAIL>");
        $testUser->setEnabled(true);
        $manager->persist($testUser);

        $testAuthor = new Author();
        $testAuthor->setName("testuser");
        $testAuthor->setUser($testUser);
        $manager->persist($testAuthor);

        $times = [
            "Enka"   => new \DateTime('07:00:00'),
            "Dvojka" => new \DateTime('11:00:00'),
{'fraction_non_alphanumeric': 0.1342281879194631, 'fraction_numerical': 0.011505273250239693, 'mean_word_length': 3.276639344262295, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 24, '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': '6816420', 'n_tokens_mistral': 616, 'n_tokens_neox': 599, 'n_words': 105}