<commit_before><?php
namespace AppBundle\Document;

use Gedmo\Mapping\Annotation as Gedmo;
use Symfony\Component\Validator\Constraints as Assert;
use Doctrine\ODM\MongoDB\Mapping\Annotations as ODM;

/**
 * Class Dream
 * @package AppBundle\Document
 *
 * @ODM\Document(collection="dreams", repositoryClass="AppBundle\Repository\DreamRepository")
 * @Gedmo\SoftDeleteable(fieldName="deletedAt", timeAware=false)
 */
class Dream
{
    /**
     * @var integer
     *
     * @ODM\Id
     */
    protected $id;

    /**
     * @var string
     *
     * @Assert\NotBlank(message = "dream.not_blank")
     * @Assert\Length(min = "5", minMessage = "dream.min_length")
     * @ODM\Field(type="string")
     */
    protected $title;

    /**
     * @var string
     *
     * @Assert\NotBlank(message = "dream.not_blank")
     * @ODM\Field(type="string")
     */
    protected $description;

    /**
     * @var string
     *
     * @ODM\Field(type="string")
     */
    protected $rejectedDescription;

    /**
     * @var string
     *
     * @ODM\Field(type="string")
     */
    protected $implementedDescription;

    /**
     * @var string
     *
     * @ODM\Field(type="string")
     */
    protected $completedDescription;

    /**
     * @var string
     *
     * @Assert\NotBlank(message = "dream.not_blank")
     * @Assert\Regex(pattern="/^[+0-9 ()-]+$/", message="dream.only_numbers")
     * @ODM\Field(type="string")
     */
    protected $phone;

    /**
     * @var string
     *
     * @Gedmo\Slug(fields={"title"})
     * @ODM\Field(type="string")
     */
    protected $slug;

    /**
     * @var \DateTime
     *
     * @Gedmo\Timestampable(on="create")
     * @ODM\Field(type="date")
     */
    protected $createdAt;

    /**
     * @var \DateTime
     *
     * @Gedmo\Timestampable(on="update")
     * @ODM\Field(type="date")
     */
    protected $updatedAt;

    /**
     * @var \DateTime
     *
     * @ODM\Field(type="date")
     */
    protected $deletedAt;

    /**
     * @var \DateTime
     *
     * @ODM\Field(type="date")
     */
    protected $expiredDate;

    /**
     * @var integer
     *
     * @ODM\Field(type="int")
     */
    protected $financialCompleted;

    /**
     * @var integer
     *
     * @ODM\Field(type="int")
     */
    protected $workCompleted;

    /**
     * @var integer
     *
     * @ODM\Field(type="int")
     */
    protected $equipmentCompleted;

    protected $tags;

    /**
     * @ODM\ReferenceMany(targetDocument="AppBundle\Document\User", inversedBy="favoriteDreams")
     */
    protected $usersWhoFavorites = array();

    /**
     * @var integer
     *
     * @ODM\Field(type="int")
     */
    protected $favoritesCount;

    /**
     * @ODM\ReferenceOne(targetDocument="AppBundle\Document\User", inversedBy="dreams")
     */
    protected $author;

    /**
     * @ODM\ReferenceMany(targetEntity="Status", mappedBy="dream", cascade={"persist"})
     */
    protected $statuses = array();

    /**
     * @ODM\Field(type="string")
     */
    protected $currentStatus;

//    /**
//     * @ODM\ManyToMany(targetEntity="Application\Sonata\MediaBundle\Entity\Media")
//     */
//    protected $mediaPictures;

//    /**
//     * @ODM\ReferenceMany(targetDocument="Application\Sonata\MediaBundle\Entity\Media")
//     */
////    protected $mediaCompletedPictures;
//
//    /**
//     * @ORM\OneToOne(targetEntity="Application\Sonata\MediaBundle\Entity\Media")
//     */
//    protected $mediaPoster;<commit_msg>Update dream document<commit_after><?php
namespace AppBundle\Document;

use Gedmo\Mapping\Annotation as Gedmo;
use Symfony\Component\Validator\Constraints as Assert;
use Doctrine\ODM\MongoDB\Mapping\Annotations as ODM;

/**
 * Class Dream
 * @package AppBundle\Document
 *
 * @ODM\Document(collection="dreams", repositoryClass="AppBundle\Repository\DreamRepository")
 * @Gedmo\SoftDeleteable(fieldName="deletedAt", timeAware=false)
 */
class Dream
{
    /**
     * @var integer
     *
     * @ODM\Id
     */
    protected $id;

    /**
     * @var string
     *
     * @Assert\NotBlank(message = "dream.not_blank")
     * @Assert\Length(min = "5", minMessage = "dream.min_length")
     * @ODM\Field(type="string")
     */
    protected $title;

    /**
     * @var string
     *
     * @Assert\NotBlank(message = "dream.not_blank")
     * @ODM\Field(type="string")
     */
    protected $description;

    /**
     * @var string
     *
     * @ODM\Field(type="string")
     */
    protected $rejectedDescription;

    /**
     * @var string
     *
     * @ODM\Field(type="string")
     */
    protected $implementedDescription;

    /**
     * @var string
     *
     * @ODM\Field(type="string")
     */
    protected $completedDescription;

    /**
     * @var string
     *
     * @Assert\NotBlank(message = "dream.not_blank")
     * @Assert\Regex(pattern="/^[+0-9 ()-]+$/", message="dream.only_numbers")
     * @ODM\Field(type="string")
     */
    protected $phone;

    /**
     * @var string
     *
     * @Gedmo\Slug(fields={"title"})
     * @ODM\Field(type="string")
     */
    protected $slug;

    /**
     * @var \DateTime
     *
     * @Gedmo\Timestampable(on="create")
     * @ODM\Field(type="date")
     */
    protected $createdAt;

    /**
     * @var \DateTime
     *
     * @Gedmo\Timestampable(on="update")
     * @ODM\Field(type="date")
     */
    protected $updatedAt;

    /**
     * @var \DateTime
     *
     * @ODM\Field(type="date")
     */
    protected $deletedAt;

    /**
     * @var \DateTime
     *
     * @ODM\Field(type="date")
     */
    protected $expiredDate;

    /**
     * @var integer
     *
     * @ODM\Field(type="int")
     */
    protected $financialCompleted;

    /**
     * @var integer
     *
     * @ODM\Field(type="int")
     */
    protected $workCompleted;

    /**
     * @var integer
     *
     * @ODM\Field(type="int")
     */
    protected $equipmentCompleted;

    protected $tags;

    /**
     * @ODM\ReferenceMany(targetDocument="User", inversedBy="favoriteDreams")
     */
    protected $usersWhoFavorites = array();

    /**
     * @var integer
     *
     * @ODM\Field(type="int")
     */
    protected $favoritesCount;

    /**
     * @ODM\ReferenceOne(targetDocument="User", inversedBy="dreams")
     */
    protected $author;

    /**
     * @ODM\ReferenceMany(targetDocument="Status", mappedBy="dream", cascade={"persist"})
     */
    protected $statuses = array();

    /**
     * @ODM\Field(type="string")
     */
    protected $currentStatus;

//    /**
//     * @ODM\ManyToMany(targetEntity="Application\Sonata\MediaBundle\Entity\Media")
//     */
//    protected $mediaPictures;

//    /**
//     * @ODM\ReferenceMany(targetDocument="Application\Sonata\MediaBundle\Entity\Media")
//     */
////    protected $mediaCompletedPictures;
//
//    /**
//     * @ORM\OneToOne(targetEntity="Application\Sonata\MediaBundle\Entity\Media")
//     */
//    protected $mediaPoster;
{'fraction_non_alphanumeric': 0.17485549132947978, 'fraction_numerical': 0.0008670520231213873, 'mean_word_length': 2.2265734265734265, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '3376154', 'n_tokens_mistral': 2373, 'n_tokens_neox': 2289, 'n_words': 299}