<commit_before><?php

namespace OAuthBundle\DataFixtures\ORM;

use Doctrine\Common\DataFixtures\AbstractFixture;
use Doctrine\Common\DataFixtures\FixtureInterface;
use Doctrine\Common\Persistence\ObjectManager;
use Doctrine\Common\DataFixtures\OrderedFixtureInterface;

use WordPressBundle\Entity\Comment;

class LoadCommentData extends AbstractFixture implements OrderedFixtureInterface
{
    public function load(ObjectManager $manager)
    {
        
        $comment1 = new Comment();
        $comment1->setCommentPostId($this->getReference("post-1")->getId());
        $comment1->setCommentAuthor("Doctor strange");
        $comment1->setCommentAuthorEmail("<EMAIL>");
        $comment1->setCommentAuthorUrl("http://doctorstrange.com");
        $comment1->setCommentDate(new \DateTime("now"));
        $comment1->setCommentDateGmt(new \DateTime("now"));
        $comment1->setCommentContent("Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ex cupiditate, quo possimus. Asperiores hic temporibus dolores voluptates vel vero, cumque expedita ipsam aut veritatis perspiciatis dicta, iste minus, optio facilis?");
    
        $manager->persist($comment1);
        $manager->flush();

    }

    public function getOrder(){
        return 2;
    }
}<commit_msg>:wrench: Add reference on comment fixtures<commit_after><?php

namespace OAuthBundle\DataFixtures\ORM;

use Doctrine\Common\DataFixtures\AbstractFixture;
use Doctrine\Common\DataFixtures\FixtureInterface;
use Doctrine\Common\Persistence\ObjectManager;
use Doctrine\Common\DataFixtures\OrderedFixtureInterface;

use WordPressBundle\Entity\Comment;

class LoadCommentData extends AbstractFixture implements OrderedFixtureInterface
{
    public function load(ObjectManager $manager)
    {
        
        $comment1 = new Comment();
        $comment1->setCommentPostId($this->getReference("post-1")->getId());
        $comment1->setCommentAuthor("Doctor strange");
        $comment1->setCommentAuthorEmail("<EMAIL>");
        $comment1->setCommentAuthorUrl("http://doctorstrange.com");
        $comment1->setCommentDate(new \DateTime("now"));
        $comment1->setCommentDateGmt(new \DateTime("now"));
        $comment1->setCommentContent("Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ex cupiditate, quo possimus. Asperiores hic temporibus dolores voluptates vel vero, cumque expedita ipsam aut veritatis perspiciatis dicta, iste minus, optio facilis?");
        
        $this->addReference('comment-1', $comment1);

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

    }

    public function getOrder(){
        return 2;
    }
}
{'fraction_non_alphanumeric': 0.1136450019004181, 'fraction_numerical': 0.009122006841505131, 'mean_word_length': 4.2326043737574555, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 28, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6537756', 'n_tokens_mistral': 772, 'n_tokens_neox': 752, 'n_words': 151}