<commit_before><?php

namespace KevinVR\FootbelBackendBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;

/**
 * Resource entity.
 *
 * @ORM\Table(name="resource")
 * @ORM\Entity(repositoryClass="KevinVR\FootbelBackendBundle\Repository\ResourceRepository")
 */
class Resource
{
    /**
     * @var int
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @ORM\ManyToOne(targetEntity="ResourceType", inversedBy="resources")
     * @ORM\JoinColumn(name="type", referencedColumnName="id")
     *
     * @Assert\Type(type="KevinVR\FootbelBackendBundle\Entity\ResourceType")
     * @Assert\Valid()
     */
    private $type;

    /**
     * @ORM\ManyToOne(targetEntity="Season", inversedBy="resources")
     * @ORM\JoinColumn(name="season", referencedColumnName="id")
     *
     * @Assert\Type(type="KevinVR\FootbelBackendBundle\Entity\Season")
     * @Assert\Valid()
     */
    private $season;

    /**
     * @ORM\ManyToOne(targetEntity="Level", inversedBy="resources")
     * @ORM\JoinColumn(name="level", referencedColumnName="id")
     *
     * @Assert\Type(type="KevinVR\FootbelBackendBundle\Entity\Level")
     * @Assert\Valid()
     */
    private $level;

    /**
     * @ORM\ManyToOne(targetEntity="Province", inversedBy="resources")
     * @ORM\JoinColumn(name="province", referencedColumnName="id")
     *
     * @Assert\Type(type="KevinVR\FootbelBackendBundle\Entity\Province")
     * @Assert\Valid()
     */
    private $province;

    /**
     * @var string
     *
     * @ORM\Column(name="url", type="string", length=255)
     * @Assert\Url(
     *    message = "The url '{{ value }}' is not a valid url",
     * )
     */
    private $url;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="checked", type="datetime", nullable=true)
     */
    private $checked;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="queued", type="datetime", nullable=true)
     */
    private $queued;<commit_msg>Form validation on non-empty fields<commit_after><?php

namespace KevinVR\FootbelBackendBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;

/**
 * Resource entity.
 *
 * @ORM\Table(name="resource")
 * @ORM\Entity(repositoryClass="KevinVR\FootbelBackendBundle\Repository\ResourceRepository")
 */
class Resource
{
    /**
     * @var int
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @ORM\ManyToOne(targetEntity="ResourceType", inversedBy="resources")
     * @ORM\JoinColumn(name="type", referencedColumnName="id")
     *
     * @Assert\Type(type="KevinVR\FootbelBackendBundle\Entity\ResourceType")
     * @Assert\Valid()
     * @Assert\NotBlank()
     * @Assert\NotNull()
     */
    private $type;

    /**
     * @ORM\ManyToOne(targetEntity="Season", inversedBy="resources")
     * @ORM\JoinColumn(name="season", referencedColumnName="id")
     *
     * @Assert\Type(type="KevinVR\FootbelBackendBundle\Entity\Season")
     * @Assert\Valid()
     * @Assert\NotBlank()
     * @Assert\NotNull()
     */
    private $season;

    /**
     * @ORM\ManyToOne(targetEntity="Level", inversedBy="resources")
     * @ORM\JoinColumn(name="level", referencedColumnName="id")
     *
     * @Assert\Type(type="KevinVR\FootbelBackendBundle\Entity\Level")
     * @Assert\Valid()
     * @Assert\NotBlank()
     * @Assert\NotNull()
     */
    private $level;
    /**
     * @ORM\ManyToOne(targetEntity="Province", inversedBy="resources")
     * @ORM\JoinColumn(name="province", referencedColumnName="id")
     *
     * @Assert\Type(type="KevinVR\FootbelBackendBundle\Entity\Province")
     * @Assert\Valid()
     */
    private $province;

    /**
     * @var string
     *
     * @ORM\Column(name="url", type="string", length=255)
     * @Assert\Url(
     *    message = "The url '{{ value }}' is not a valid url",
     * )
     * @Assert\NotBlank()
     * @Assert\NotNull()
     */
    private $url;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="checked", type="datetime", nullable=true)
     */
    private $checked;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="queued", type="datetime", nullable=true)
     */
    private $queued;
{'fraction_non_alphanumeric': 0.172539213457604, 'fraction_numerical': 0.00136394635144351, 'mean_word_length': 2.9250669045495092, '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': '1687290', 'n_tokens_mistral': 1454, 'n_tokens_neox': 1421, 'n_words': 187}