<commit_before><?php
namespace Sandbox\MainBundle\Document;

use Doctrine\ODM\PHPCR\Mapping\Annotations as PHPCRODM;
use Doctrine\Common\Collections\ArrayCollection;

use Symfony\Cmf\Bundle\ContentBundle\Document\StaticContent;
use Symfony\Component\Validator\Constraints as Assert;

use Liip\VieBundle\FromJsonLdInterface;

/**
 * @PHPCRODM\Document(alias="image", referenceable=true)
 */
class Image
{
    /**
     * to create the document at the specified location. read only for existing documents.
     *
     * @PHPCRODM\Id
     */
    protected $path;

    /**
     * @PHPCRODM\Node
     */
    public $node;

    /**
     * @Assert\NotBlank
     * @Assert\Regex("{^[a-z]+$}")
     * @PHPCRODM\String()
     */
    public $name;

    /**
     * @Assert\NotBlank()
     * @var binary
     * @PHPCRODM\Binary(name="content")
     */
    public $content;

    public function setContent($value)
    {
        $this->content = $value;
    }

    /**
     * Set repository path of this navigation item for creation
     */
    public function setPath($path)
    {
        $this->path = $path;
    }

    public function getPath()
    {<commit_msg>CMFE-69 Added tags and removed unneeded setContent method<commit_after><?php
namespace Sandbox\MainBundle\Document;

use Doctrine\ODM\PHPCR\Mapping\Annotations as PHPCRODM;
use Doctrine\Common\Collections\ArrayCollection;

use Symfony\Cmf\Bundle\ContentBundle\Document\StaticContent;
use Symfony\Component\Validator\Constraints as Assert;

use Liip\VieBundle\FromJsonLdInterface;

/**
 * @PHPCRODM\Document(alias="image", referenceable=true)
 */
class Image
{
    /**
     * to create the document at the specified location. read only for existing documents.
     *
     * @PHPCRODM\Id
     */
    protected $path;

    /**
     * @PHPCRODM\Node
     */
    public $node;

    /**
     * @Assert\NotBlank
     * @Assert\Regex("{^[a-z]+$}")
     * @PHPCRODM\String()
     */
    public $name;

    /**
     * @Assert\NotBlank()
     * @var binary
     * @PHPCRODM\Binary(name="content")
     */
    public $content;

    /**
     * @PHPCRODM\String(multivalue=true)
     */
    public $tags;

    /**
     * Set repository path of this navigation item for creation
     */
    public function setPath($path)
    {
        $this->path = $path;
    }

    public function getPath()
    {
{'fraction_non_alphanumeric': 0.13244749249892843, 'fraction_numerical': 0.0008572653236176596, 'mean_word_length': 2.5633587786259544, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, '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': '1202454', 'n_tokens_mistral': 764, 'n_tokens_neox': 746, 'n_words': 151}