<commit_before><?php

namespace Dodici\Fansworld\WebBundle\Entity;

use Dodici\Fansworld\WebBundle\Model\VisitableInterface;
use Dodici\Fansworld\WebBundle\Model\SearchableInterface;
use Symfony\Component\Validator\Constraints as Assert;
use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\ArrayCollection;
use Gedmo\Mapping\Annotation as Gedmo;
use Gedmo\Translatable\Translatable;

/**
 * Dodici\Fansworld\WebBundle\Entity\Video
 *
 * @ORM\Table(name="video")
 * @ORM\Entity(repositoryClass="Dodici\Fansworld\WebBundle\Model\VideoRepository")
 * @ORM\HasLifecycleCallbacks
 */
class Video implements Translatable, SearchableInterface, VisitableInterface
{
    const WEIGHT_OUTDATE_FACTOR = 0.2;
    const WEIGHT_LIKES_FACTOR = 1.5;
    const WEIGHT_VIEWS_FACTOR = 1.0;
    const WEIGHT_HIGHLIGHT_FACTOR = 1.1;

    /**
     * @var bigint $id
     *
     * @ORM\Column(name="id", type="bigint", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;

    /**
     * @var string $title
     * @Gedmo\Translatable
     *
     * @ORM\Column(name="title", type="string", length=250, nullable=false)
     */
    private $title;

    /**
     * @var Application\Sonata\UserBundle\Entity\User
     *
     * @ORM\ManyToOne(targetEntity="Application\Sonata\UserBundle\Entity\User")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="author_id", referencedColumnName="id")
     * })
     */
    private $author;

    /**
     * @var text $content
     * @Gedmo\Translatable
     *
     * @ORM\Column(name="content", type="text", nullable=true)
     */
    private $content;

    /**
     * @var datetime $createdAt
     *
     * @ORM\Column(name="created_at", type="datetime", nullable=false)
     */
    private $createdAt;

    /**
     * @var datetime $createdAtWeek
     *
     * @ORM\Column(name="created_at_week", type="bigint", nullable=false)
     */
    private $createdAtWeek;

    /**
     * @var boolean $active
     *
     * @ORM\Column(name="active", type="boolean", nullable=false)
     */
    private $active;

    /**
     * @var boolean $processed
     *
     * @ORM\Column(name="processed", type="boolean", nullable=false)
     */
    private $processed;

    /**
     * @var boolean $notified
     *
     * @ORM\Column(name="notified", type="boolean", nullable=false)
     */
    private $notified;

    /**
     * @var integer $duration
     *
     * @ORM\Column(name="duration", type="integer", nullable=true)
     */
    private $duration;

    /**
     * @var string $stream
     *
     * @ORM\Column(name="stream", type="string", length=250, nullable=true)
     */
    private $stream;

    /**
     * @var string $youtube
     *
     * @ORM\Column(name="youtube", type="string", length=250, nullable=true)
     */
    private $youtube;

    /**
     * @var string $vimeo
     *
     * @ORM\Column(name="vimeo", type="string", length=250, nullable=true)
     */
    private $vimeo;

    /**
     * @var integer $privacy
     * Privacy::EVERYONE|Privacy::FRIENDS_ONLY
     *
     * @ORM\Column(name="privacy", type="integer", nullable=false)
     */
    private $privacy;

    /**
     * @var boolean $highlight
     *
     * @ORM\Column(name="highlight", type="boolean", nullable=false)
     */
    private $highlight;

    /**
     * @var integer $likeCount
     *
     * @ORM\Column(name="likecount", type="integer", nullable=false)
     */
    private $likeCount;

    /**
     * @var integer $commentCount
     *
     * @ORM\Column(name="commentcount", type="integer", nullable=false)
     */
    private $commentCount;

    /**
     * @var integer $viewCount
     *
     * @ORM\Column(name="viewcount", type="integer", nullable=false)
     */
    private $viewCount;

    /**
     * @Gedmo\Slug(fields={"title"}, unique=false)
     * @Gedmo\Translatable
     * @ORM\Column(length=250)
     */
    private $slug;

    /**
     * @var VideoCategory
     *
     * @Assert\NotNull()
     *
     * @ORM\ManyToOne(targetEntity="VideoCategory")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="videocategory_id", referencedColumnName="id")
     * })
     */
    private $videocategory;

    /**
     * @var Event
     *
     * @ORM\ManyToOne(targetEntity="Event")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="event_id", referencedColumnName="id")
     * })<commit_msg>hotfix temporal translation timeout video<commit_after><?php

namespace Dodici\Fansworld\WebBundle\Entity;

use Dodici\Fansworld\WebBundle\Model\VisitableInterface;
use Dodici\Fansworld\WebBundle\Model\SearchableInterface;
use Symfony\Component\Validator\Constraints as Assert;
use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\ArrayCollection;
use Gedmo\Mapping\Annotation as Gedmo;
use Gedmo\Translatable\Translatable;

/**
 * Dodici\Fansworld\WebBundle\Entity\Video
 *
 * @ORM\Table(name="video")
 * @ORM\Entity(repositoryClass="Dodici\Fansworld\WebBundle\Model\VideoRepository")
 * @ORM\HasLifecycleCallbacks
 */
class Video implements SearchableInterface, VisitableInterface
{
    const WEIGHT_OUTDATE_FACTOR = 0.2;
    const WEIGHT_LIKES_FACTOR = 1.5;
    const WEIGHT_VIEWS_FACTOR = 1.0;
    const WEIGHT_HIGHLIGHT_FACTOR = 1.1;

    /**
     * @var bigint $id
     *
     * @ORM\Column(name="id", type="bigint", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;

    /**
     * @var string $title
     *
     * @ORM\Column(name="title", type="string", length=250, nullable=false)
     */
    private $title;

    /**
     * @var Application\Sonata\UserBundle\Entity\User
     *
     * @ORM\ManyToOne(targetEntity="Application\Sonata\UserBundle\Entity\User")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="author_id", referencedColumnName="id")
     * })
     */
    private $author;

    /**
     * @var text $content
     *
     * @ORM\Column(name="content", type="text", nullable=true)
     */
    private $content;

    /**
     * @var datetime $createdAt
     *
     * @ORM\Column(name="created_at", type="datetime", nullable=false)
     */
    private $createdAt;

    /**
     * @var datetime $createdAtWeek
     *
     * @ORM\Column(name="created_at_week", type="bigint", nullable=false)
     */
    private $createdAtWeek;

    /**
     * @var boolean $active
     *
     * @ORM\Column(name="active", type="boolean", nullable=false)
     */
    private $active;

    /**
     * @var boolean $processed
     *
     * @ORM\Column(name="processed", type="boolean", nullable=false)
     */
    private $processed;

    /**
     * @var boolean $notified
     *
     * @ORM\Column(name="notified", type="boolean", nullable=false)
     */
    private $notified;

    /**
     * @var integer $duration
     *
     * @ORM\Column(name="duration", type="integer", nullable=true)
     */
    private $duration;

    /**
     * @var string $stream
     *
     * @ORM\Column(name="stream", type="string", length=250, nullable=true)
     */
    private $stream;

    /**
     * @var string $youtube
     *
     * @ORM\Column(name="youtube", type="string", length=250, nullable=true)
     */
    private $youtube;

    /**
     * @var string $vimeo
     *
     * @ORM\Column(name="vimeo", type="string", length=250, nullable=true)
     */
    private $vimeo;

    /**
     * @var integer $privacy
     * Privacy::EVERYONE|Privacy::FRIENDS_ONLY
     *
     * @ORM\Column(name="privacy", type="integer", nullable=false)
     */
    private $privacy;

    /**
     * @var boolean $highlight
     *
     * @ORM\Column(name="highlight", type="boolean", nullable=false)
     */
    private $highlight;

    /**
     * @var integer $likeCount
     *
     * @ORM\Column(name="likecount", type="integer", nullable=false)
     */
    private $likeCount;

    /**
     * @var integer $commentCount
     *
     * @ORM\Column(name="commentcount", type="integer", nullable=false)
     */
    private $commentCount;

    /**
     * @var integer $viewCount
     *
     * @ORM\Column(name="viewcount", type="integer", nullable=false)
     */
    private $viewCount;

    /**
     * @Gedmo\Slug(fields={"title"}, unique=false)
     * @ORM\Column(length=250)
     */
    private $slug;

    /**
     * @var VideoCategory
     *
     * @Assert\NotNull()
     *
     * @ORM\ManyToOne(targetEntity="VideoCategory")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="videocategory_id", referencedColumnName="id")
     * })
     */
    private $videocategory;

    /**
     * @var Event
     *
     * @ORM\ManyToOne(targetEntity="Event")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="event_id", referencedColumnName="id")
     * })
{'fraction_non_alphanumeric': 0.15865329182520466, 'fraction_numerical': 0.00530381644183097, 'mean_word_length': 2.6847918436703484, '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': '4035200', 'n_tokens_mistral': 2941, 'n_tokens_neox': 2850, 'n_words': 438}