<commit_before><?php
/*
 * WellCommerce Open-Source E-Commerce Platform
 *
 * This file is part of the WellCommerce package.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information,
 * please view the LICENSE file that was distributed with this source code.
 */

namespace WellCommerce\Bundle\ThemeBundle\DataFixtures\ORM;

use Doctrine\Common\Persistence\ObjectManager;
use WellCommerce\Bundle\CoreBundle\DataFixtures\AbstractDataFixture;
use WellCommerce\Bundle\CoreBundle\Entity\MailerConfiguration;
use WellCommerce\Bundle\IntlBundle\DataFixtures\ORM\LoadCurrencyData;

/**
 * Class LoadThemeData
 *
 * @author  <NAME> <<EMAIL>>
 */
class LoadShopData extends AbstractDataFixture
{
    /**
     * {@inheritDoc}
     */
    public function load(ObjectManager $manager)
    {
        /**
         * @var $theme       \WellCommerce\Bundle\ThemeBundle\Entity\ThemeInterface
         * @var $company     \WellCommerce\Bundle\MultiStoreBundle\Entity\CompanyInterface
         * @var $orderStatus \WellCommerce\Bundle\OrderBundle\Entity\OrderStatusInterface
         */
        $theme    = $this->getReference('theme');
        $company  = $this->getReference('company');
        $currency = $this->randomizeSamples('currency', LoadCurrencyData::$samples);

        $shop = $this->container->get('shop.factory')->create();
        $shop->setName('WellCommerce');
        $shop->setCompany($company);
        $shop->setTheme($theme);
        $shop->setUrl($this->container->getParameter('fallback_hostname'));
        $shop->setDefaultCountry('US');
        $shop->setDefaultCurrency($currency->getCode());

        $manager->persist($shop);
        $manager->flush();

        $this->setReference('shop', $shop);
    }
}<commit_msg>Fixed mail configuration<commit_after><?php
/*
 * WellCommerce Open-Source E-Commerce Platform
 *
 * This file is part of the WellCommerce package.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information,
 * please view the LICENSE file that was distributed with this source code.
 */

namespace WellCommerce\Bundle\ThemeBundle\DataFixtures\ORM;

use Doctrine\Common\Persistence\ObjectManager;
use WellCommerce\Bundle\CoreBundle\DataFixtures\AbstractDataFixture;
use WellCommerce\Bundle\CoreBundle\Entity\MailerConfiguration;
use WellCommerce\Bundle\IntlBundle\DataFixtures\ORM\LoadCurrencyData;

/**
 * Class LoadThemeData
 *
 * @author  <NAME> <<EMAIL>>
 */
class LoadShopData extends AbstractDataFixture
{
    /**
     * {@inheritDoc}
     */
    public function load(ObjectManager $manager)
    {
        /**
         * @var $theme       \WellCommerce\Bundle\ThemeBundle\Entity\ThemeInterface
         * @var $company     \WellCommerce\Bundle\MultiStoreBundle\Entity\CompanyInterface
         * @var $orderStatus \WellCommerce\Bundle\OrderBundle\Entity\OrderStatusInterface
         */
        $theme    = $this->getReference('theme');
        $company  = $this->getReference('company');
        $currency = $this->randomizeSamples('currency', LoadCurrencyData::$samples);

        $shop = $this->container->get('shop.factory')->create();
        $shop->setName('WellCommerce');
        $shop->setCompany($company);
        $shop->setTheme($theme);
        $shop->setUrl($this->container->getParameter('fallback_hostname'));
        $shop->setDefaultCountry('US');
        $shop->setDefaultCurrency($currency->getCode());

        $mailerConfiguration = new MailerConfiguration();
        $mailerConfiguration->setFrom('');
        $mailerConfiguration->setHost('');
        $mailerConfiguration->setPort('');
        $mailerConfiguration->setUser('');
        $mailerConfiguration->setPass('');

        $shop->setMailerConfiguration($mailerConfiguration);

        $manager->persist($shop);
        $manager->flush();

        $this->setReference('shop', $shop);
    }
}
{'fraction_non_alphanumeric': 0.1406696080975863, 'fraction_numerical': 0.0, 'mean_word_length': 3.486612339930151, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 57, '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': '2278971', 'n_tokens_mistral': 1072, 'n_tokens_neox': 1072, 'n_words': 185}