<commit_before><?php

namespace PHPOrchestra\ModelBundle\Document;

use Doctrine\Common\Collections\ArrayCollection;
use PHPOrchestra\ModelBundle\Model\KeywordInterface;

/**
 * Trait KeywordableDocument
 */
trait KeywordableDocument
{
    /**
     * @var ArrayCollection
     *
     * @ODM\EmbedMany(targetDocument="EmbedKeyword")
     */
    protected $keywords;

    /**
     * @return ArrayCollection
     */
    public function getKeywords()
    {
        return $this->keywords;
    }

    /**
     * @param KeywordInterface $keyword
     */
    public function addKeyword(KeywordInterface $keyword)
    {
        $this->keywords->add($keyword);
    }

    /**
     * @param KeywordInterface $keyword
     */
    public function removeKeyword(KeywordInterface $keyword)
    {
        $this->keywords->removeElement($keyword);
    }
}
<commit_msg>add full path for relation<<commit_after><?php

namespace PHPOrchestra\ModelBundle\Document;

use Doctrine\Common\Collections\ArrayCollection;
use PHPOrchestra\ModelBundle\Model\KeywordInterface;

/**
 * Trait KeywordableDocument
 */
trait KeywordableDocument
{
    /**
     * @var ArrayCollection
     *
     * @ODM\EmbedMany(targetDocument="PHPOrchestra\ModelBundle\Document\EmbedKeyword")
     */
    protected $keywords;

    /**
     * @return ArrayCollection
     */
    public function getKeywords()
    {
        return $this->keywords;
    }

    /**
     * @param KeywordInterface $keyword
     */
    public function addKeyword(KeywordInterface $keyword)
    {
        $this->keywords->add($keyword);
    }

    /**
     * @param KeywordInterface $keyword
     */
    public function removeKeyword(KeywordInterface $keyword)
    {
        $this->keywords->removeElement($keyword);
    }
}

{'fraction_non_alphanumeric': 0.11757990867579908, 'fraction_numerical': 0.0, 'mean_word_length': 2.8108695652173914, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 13, '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': '4369740', 'n_tokens_mistral': 504, 'n_tokens_neox': 506, 'n_words': 82}