<commit_before><?php

namespace Application\Bundle\DefaultBundle\DataFixtures\ORM;

use Application\Bundle\DefaultBundle\Entity\TicketCost;
use Doctrine\Common\DataFixtures\AbstractFixture;
use Doctrine\Common\Persistence\ObjectManager;

class LoadTicketCost extends AbstractFixture
{
    /**
     * Return fixture classes fixture is dependent on
     *
     * @return array
     */
    public function getDependencies()
    {
        return array(
            'Stfalcon\Bundle\EventBundle\DataFixtures\ORM\LoadEventData',
        );
    }

    public function load(ObjectManager $manager)
    {
        $ticketCost = new TicketCost();

        $event1 = $this->getReference('event-zfday');
        $event2 = $this->getReference('event-not-active');

        $ticketCost->setName('early')
            ->setAmount(1000)
            ->setAltAmount('= 40$')
            ->setCount(2)
            ->setEnabled(true)
            ->setEvent($event1);
        $manager->persist($ticketCost);

        $ticketCost1 = new TicketCost();
        $ticketCost1->setName('standart')
            ->setAmount(3000)
            ->setAltAmount('= 120$')
            ->setUnlimited(true)
            ->setEnabled(true)
            ->setEvent($event1);
        $manager->persist($ticketCost1);

        $ticketCost2 = new TicketCost();
        $ticketCost2->setName('next')
            ->setAmount(2000)
            ->setAltAmount('= 80$')
            ->setCount(1)
            ->setEnabled(true)
            ->setEvent($event1);
        $manager->persist($ticketCost2);

        $ticketCost3 = new TicketCost();
        $ticketCost3->setName('standart')
            ->setAmount(3000)
            ->setAltAmount('= 120$')
            ->setUnlimited(true)
            ->setEnabled(true)
            ->setEvent($event2);
        $manager->persist($ticketCost3);

        $ticketCost4 = new TicketCost();
        $ticketCost4->setName('next')
            ->setAmount(2000)
            ->setAltAmount('= 80$')
            ->setCount(1)
            ->setEnabled(true)
            ->setEvent($event2);
        $manager->persist($ticketCost4);
    }
}<commit_msg>36316 redesign<commit_after><?php

namespace Application\Bundle\DefaultBundle\DataFixtures\ORM;

use Application\Bundle\DefaultBundle\Entity\TicketCost;
use Doctrine\Common\DataFixtures\AbstractFixture;
use Doctrine\Common\Persistence\ObjectManager;

class LoadTicketCost extends AbstractFixture
{
    /**
     * Return fixture classes fixture is dependent on
     *
     * @return array
     */
    public function getDependencies()
    {
        return array(
            'Stfalcon\Bundle\EventBundle\DataFixtures\ORM\LoadEventData',
        );
    }

    public function load(ObjectManager $manager)
    {
        $ticketCost = new TicketCost();

        $event1 = $this->getReference('event-zfday');
        $event2 = $this->getReference('event-not-active');

        $ticketCost->setName('early')
            ->setAmount(1000)
            ->setAltAmount('= 40$')
            ->setCount(2)
            ->setEnabled(true)
            ->setEvent($manager->merge($event1));
        $manager->persist($ticketCost);

        $ticketCost1 = new TicketCost();
        $ticketCost1->setName('standart')
            ->setAmount(3000)
            ->setAltAmount('= 120$')
            ->setUnlimited(true)
            ->setEnabled(true)
            ->setEvent($manager->merge($event1));
        $manager->persist($ticketCost1);

        $ticketCost2 = new TicketCost();
        $ticketCost2->setName('next')
            ->setAmount(2000)
            ->setAltAmount('= 80$')
            ->setCount(1)
            ->setEnabled(true)
            ->setEvent($manager->merge($event1));
        $manager->persist($ticketCost2);

        $ticketCost3 = new TicketCost();
        $ticketCost3->setName('standart')
            ->setAmount(3000)
            ->setAltAmount('= 120$')
            ->setUnlimited(true)
            ->setEnabled(true)
            ->setEvent($manager->merge($event2));
        $manager->persist($ticketCost3);

        $ticketCost4 = new TicketCost();
        $ticketCost4->setName('next')
            ->setAmount(2000)
            ->setAltAmount('= 80$')
            ->setCount(1)
            ->setEnabled(true)
            ->setEvent($manager->merge($event2));
        $manager->persist($ticketCost4);
    }
}
{'fraction_non_alphanumeric': 0.14433226250573658, 'fraction_numerical': 0.025929325378614042, 'mean_word_length': 2.1337167505391803, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 82, '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': '4628798', 'n_tokens_mistral': 1343, 'n_tokens_neox': 1235, 'n_words': 183}