<commit_before><?php
namespace AuthBundle\DataFixtures\ORM;

use CommercantBundle\Entity\Commercant;
use Doctrine\Common\DataFixtures\AbstractFixture;
use Doctrine\Common\DataFixtures\OrderedFixtureInterface;
use Doctrine\Common\DataFixtures\FixtureInterface;
use Doctrine\Common\Persistence\ObjectManager;
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;

class LoadCommercantData extends AbstractFixture implements OrderedFixtureInterface, FixtureInterface, ContainerAwareInterface {
    private $container;

    public function setContainer(ContainerInterface $container = null) {
        $this->container = $container;
    }

    private function addCommercant($libelle, $civilite, $photo, $adresse, $siret, $iban, $numTel, $user) {
        $commercant = new Commercant();
        $commercant->setLibelle($libelle);
        $commercant->setNom($libelle);
        $commercant->setPrenom($libelle);
        $commercant->setCivilite($civilite);
        $commercant->setPhoto($photo);
        $commercant->setAdresse($adresse);
        $commercant->setSiret($siret);
        $commercant->setIban($iban);
        $commercant->setNumTel($numTel);
        $commercant->setUser($user);
        return $commercant;
    }

    public function load(ObjectManager $manager) {
        $user = $this->getReference('commercantUser');
        $commercant = $this->addCommercant('employeur', 'Mr.', 'https://s3.amazonaws.com/dwarse/commercant/photo/commercant.png'
            , 'Test', '12345678912345', 'BE68539007547034', '1234567890', $user);
        $manager->persist($commercant);
        $user->setCommercant($commercant);
        $manager->persist($user);
        $manager->flush();
        $this->addReference('commercant', $commercant);
    }

    public function getOrder() {
        return 4;
    }
}<commit_msg>[aouahidi]: ajout de la page profile pour employe<commit_after><?php
namespace AuthBundle\DataFixtures\ORM;

use CommercantBundle\Entity\Commercant;
use Doctrine\Common\DataFixtures\AbstractFixture;
use Doctrine\Common\DataFixtures\OrderedFixtureInterface;
use Doctrine\Common\DataFixtures\FixtureInterface;
use Doctrine\Common\Persistence\ObjectManager;
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;

class LoadCommercantData extends AbstractFixture implements OrderedFixtureInterface, FixtureInterface, ContainerAwareInterface {
    private $container;

    public function setContainer(ContainerInterface $container = null) {
        $this->container = $container;
    }

    private function addCommercant($libelle, $civilite, $photo, $adresse, $siret, $iban, $numTel, $user) {
        $commercant = new Commercant();
        $commercant->setLibelle($libelle);
        $commercant->setNom($libelle);
        $commercant->setPrenom($libelle);
        $commercant->setCivilite($civilite);
        $commercant->setPhoto($photo);
        $commercant->setAdresse($adresse);
        $commercant->setSiret($siret);
        $commercant->setIban($iban);
        $commercant->setNumTel($numTel);
        $commercant->setUser($user);
        return $commercant;
    }

    public function load(ObjectManager $manager) {
        $user = $this->getReference('commercantUser');
        $commercant = $this->addCommercant('commercant', 'Mr.', 'https://s3.amazonaws.com/dwarse/commercant/photo/commercant.png'
            , 'Test', '12345678912345', 'BE68539007547034', '1234567890', $user);
        $manager->persist($commercant);
        $user->setCommercant($commercant);
        $manager->persist($user);
        $manager->flush();
        $this->addReference('commercant', $commercant);
    }

    public function getOrder() {
        return 4;
    }
}
{'fraction_non_alphanumeric': 0.1301387797852841, 'fraction_numerical': 0.020947892118355592, 'mean_word_length': 4.079787234042553, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 39, 'https://': 2, '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': '2558967', 'n_tokens_mistral': 1290, 'n_tokens_neox': 1204, 'n_words': 177}