<commit_before><?php

/**
 * This file belongs to Kreta.
 * The source code of application includes a LICENSE file
 * with all information about license.
 *
 * @author benatespina <<EMAIL>>
 * @author gorkalaucirica <<EMAIL>>
 */

namespace Kreta\Bundle\FixturesBundle\DataFixtures\ORM;

use Doctrine\Common\Persistence\ObjectManager;
use Kreta\Bundle\FixturesBundle\DataFixtures\DataFixtures;

/**
 * Class LoadProjectData.
 *
 * @package Kreta\Bundle\FixturesBundle\DataFixtures\ORM
 */
class LoadProjectData extends DataFixtures
{
    /**
     * {@inheritdoc}
     */
    public function load(ObjectManager $manager)
    {
        $images = $this->loadMedias($manager, 'kreta_project.uploader.image_project', $this->projectPath);
        $users = $this->container->get('kreta_user.repository.user')->findAll();

        for ($i = 0; $i < 10; $i++) {
            $project = $this->container->get('kreta_project.factory.project')->create($users[array_rand($users)]);
            $project->setName('This is the project number ' . $i . ' that is created by fixtures');
            $project->setShortName('PR' . $i);
            $project->setImage($images[$i]);<commit_msg>Changed project name in fixtures to make it more real<commit_after><?php

/**
 * This file belongs to Kreta.
 * The source code of application includes a LICENSE file
 * with all information about license.
 *
 * @author benatespina <<EMAIL>>
 * @author gorkalaucirica <<EMAIL>>
 */

namespace Kreta\Bundle\FixturesBundle\DataFixtures\ORM;

use Doctrine\Common\Persistence\ObjectManager;
use Kreta\Bundle\FixturesBundle\DataFixtures\DataFixtures;

/**
 * Class LoadProjectData.
 *
 * @package Kreta\Bundle\FixturesBundle\DataFixtures\ORM
 */
class LoadProjectData extends DataFixtures
{
    /**
     * {@inheritdoc}
     */
    public function load(ObjectManager $manager)
    {
        $images = $this->loadMedias($manager, 'kreta_project.uploader.image_project', $this->projectPath);
        $users = $this->container->get('kreta_user.repository.user')->findAll();

        for ($i = 0; $i < 10; $i++) {
            $project = $this->container->get('kreta_project.factory.project')->create($users[array_rand($users)]);
            $project->setName('Project ' . $i);
            $project->setShortName('PR' . $i);
            $project->setImage($images[$i]);
{'fraction_non_alphanumeric': 0.14892703862660944, 'fraction_numerical': 0.002575107296137339, 'mean_word_length': 3.588582677165354, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 33, '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': '5629614', 'n_tokens_mistral': 707, 'n_tokens_neox': 704, 'n_words': 145}