<commit_before><?php

namespace CleverAge\EAVManager\EAVModelBundle\Entity;

use CleverAge\EAVManager\UserBundle\Entity\AuthorableInterface;
use CleverAge\EAVManager\UserBundle\Entity\User;
use Doctrine\ORM\Mapping as ORM;
use JMS\Serializer\Annotation as JMS;
use Sidus\EAVModelBundle\Entity\Data as BaseData;
use Sidus\EAVModelBundle\Model\FamilyInterface;
use Sidus\PublishingBundle\Entity\PublishableInterface;

abstract class Data extends BaseData implements AuthorableInterface, PublishableInterface
{
    /**
     * @var string
     * @ORM\Column(name="mongo_id", type="string", length=25)
     * @JMS\Accessor(getter="getMongoId")
     */
    protected $mongoId;

    /**
     * @var User
     * @ORM\ManyToOne(targetEntity="CleverAge\EAVManager\UserBundle\Entity\User")
     * @ORM\JoinColumn(name="created_by", referencedColumnName="id", onDelete="SET NULL")
     * @JMS\Exclude()
     */
    protected $createdBy;

    /**
     * @var User
     * @ORM\ManyToOne(targetEntity="CleverAge\EAVManager\UserBundle\Entity\User")
     * @ORM\JoinColumn(name="updated_by", referencedColumnName="id", onDelete="SET NULL")
     * @JMS\Exclude()
     */
    protected $updatedBy;

    /**
     * @inheritDoc
     */
    public function __construct(FamilyInterface $family)
    {
        parent::__construct($family);
        $this->mongoId = (string)new \MongoId();
    }

    /**
     * @return string
     */
    public function getMongoId()
    {
        if (!$this->mongoId) {
            $this->mongoId = (string)new \MongoId();
        }

        return $this->mongoId;
    }

    /**
     * @inheritDoc
     */
    public function getPublicationUuid()
    {
        return $this->getMongoId();
    }

    /**
     * @return User
     */
    public function getCreatedBy()
    {
        return $this->createdBy;
    }

    /**
     * @param User $createdBy
     * @return Data
     */
    public function setCreatedBy(User $createdBy = null)
    {
        $this->createdBy = $createdBy;

        return $this;
    }

    /**
     * @return User
     */
    public function getUpdatedBy()
    {
        return $this->updatedBy;<commit_msg>Removing MongoId property from Base Data class<commit_after><?php

namespace CleverAge\EAVManager\EAVModelBundle\Entity;

use CleverAge\EAVManager\UserBundle\Entity\AuthorableInterface;
use CleverAge\EAVManager\UserBundle\Entity\User;
use Doctrine\ORM\Mapping as ORM;
use JMS\Serializer\Annotation as JMS;
use Sidus\EAVModelBundle\Entity\Data as BaseData;

abstract class Data extends BaseData implements AuthorableInterface
{
    /**
     * @var User
     * @ORM\ManyToOne(targetEntity="CleverAge\EAVManager\UserBundle\Entity\User")
     * @ORM\JoinColumn(name="created_by", referencedColumnName="id", onDelete="SET NULL")
     * @JMS\Exclude()
     */
    protected $createdBy;

    /**
     * @var User
     * @ORM\ManyToOne(targetEntity="CleverAge\EAVManager\UserBundle\Entity\User")
     * @ORM\JoinColumn(name="updated_by", referencedColumnName="id", onDelete="SET NULL")
     * @JMS\Exclude()
     */
    protected $updatedBy;

    /**
     * @return User
     */
    public function getCreatedBy()
    {
        return $this->createdBy;
    }

    /**
     * @param User $createdBy
     * @return Data
     */
    public function setCreatedBy(User $createdBy = null)
    {
        $this->createdBy = $createdBy;

        return $this;
    }

    /**
     * @return User
     */
    public function getUpdatedBy()
    {
        return $this->updatedBy;
{'fraction_non_alphanumeric': 0.12906910336950314, 'fraction_numerical': 0.0005711022272986865, 'mean_word_length': 2.7626208378088077, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 14, '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': '3602472', 'n_tokens_mistral': 1133, 'n_tokens_neox': 1099, 'n_words': 193}