<commit_before><?php

namespace AppBundle\DataFixtures\ORM;

use Doctrine\Common\DataFixtures\AbstractFixture;
use Doctrine\Common\DataFixtures\OrderedFixtureInterface;
use Doctrine\Common\Persistence\ObjectManager;
use AppBundle\Entity\Room;

class LoadRoomData extends AbstractFixture implements OrderedFixtureInterface{
    /**
     * @param ObjectManager $manager
     */
    public function load(ObjectManager $manager){
        $room = new Room();
        $room->setAdministrator($this->getReference('user'));
        $room->setName('After Work ESGI');
        $room->setSlug('after-work-esgi');
        $room->setIsActivated(true);
        $room->setDateStart(new \DateTime());
        $room->addUser($this->getReference('userAdmin'));

        $room2 = new Room();
        $room2->setAdministrator($this->getReference('userAdmin'));
        $room2->setName('Happy New Year');
        $room2->setSlug('happy-new-year');
        $room2->setIsActivated(true);
        $room2->setDateStart(new \DateTime());
        $room->addUser($this->getReference('user'));

        $manager->persist($room);
        $manager->persist($room2);
        $manager->flush();

        $this->addReference('roomAdmin', $room);
        $this->addReference('room', $room2);
    }

    public function getOrder(){
        return 2;
    }
}
<commit_msg>Update fixtures<commit_after><?php

namespace AppBundle\DataFixtures\ORM;

use Doctrine\Common\DataFixtures\AbstractFixture;
use Doctrine\Common\DataFixtures\OrderedFixtureInterface;
use Doctrine\Common\Persistence\ObjectManager;
use AppBundle\Entity\Room;

class LoadRoomData extends AbstractFixture implements OrderedFixtureInterface{
    /**
     * @param ObjectManager $manager
     */
    public function load(ObjectManager $manager){
        $room = new Room();
        $room->setAdministrator($this->getReference('user'));
        $room->setName('After Work ESGI');
        $room->setSlug('after-work-esgi');
        $room->setIsActivated(true);
        $room->setDateStart(new \DateTime());

        $room2 = new Room();
        $room2->setAdministrator($this->getReference('userAdmin'));
        $room2->setName('<NAME>');
        $room2->setSlug('happy-new-year');
        $room2->setIsActivated(true);
        $room2->setDateStart(new \DateTime());

        $manager->persist($room);
        $manager->persist($room2);
        $manager->flush();

        $this->addReference('roomAdmin', $room);
        $this->addReference('room', $room2);
    }

    public function getOrder(){
        return 2;
    }
}

{'fraction_non_alphanumeric': 0.1560172481379851, 'fraction_numerical': 0.007056056448451587, 'mean_word_length': 3.310810810810811, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 42, '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': '6952738', 'n_tokens_mistral': 766, 'n_tokens_neox': 747, 'n_words': 117}