<commit_before><?php

namespace Bdx\TutoratBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Bdx\TutoratBundle\Entity\Student
 *
 * @ORM\Table()
 * @ORM\Entity
 */
class Student
{
    /**
     * @var integer $id
     *
     * @ORM\Column(name="id", type="integer", unique=true, nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

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

    /**
     * @var string $email
     *
     * @ORM\Column(name="email", type="string", length=255)
     */
    private $email;

    /**
     * @var string $tel
     *
     * @ORM\Column(name="tel", type="string", length=255)
     */
    private $tel;

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

    /**
     * @ORM\OneToMany(targetEntity="RDV", mappedBy="student")
     */
    private $rdvs;

    public function __construct()
    {
        $this->rdvs = new ArrayCollection();
    }

<commit_msg>Add asserts to Student entity<commit_after><?php

namespace Bdx\TutoratBundle\Entity;

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

/**
 * Bdx\TutoratBundle\Entity\Student
 *
 * @ORM\Table()
 * @ORM\Entity
 */
class Student
{
    /**
     * @var integer $id
     *
     * @ORM\Column(name="id", type="integer", unique=true, nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var string $name
     *
     * @ORM\Column(name="name", type="string", length=100, unique=true, nullable=false)
     *
	 * @Assert\NotBlank()
     * @Assert\Type(type="string")
     * @Assert\MaxLength(100)
     * @Assert\Regex(
     *     pattern="/\d/",
     *     match=false,
     *     message="The name cannot contain a number."
     * )
     * @Assert\Regex(
     *     pattern="/^[[:alpha:]\-\séèêç]+$/",
     *     message="Le nom ne peut contenir que des lettres minuscules, majuscules, des tirets et des espaces."
     * )
     */
    private $name;

    /**
     * @var string $email
     *
     * @ORM\Column(name="email", type="string", length=255, nullable=true)
     *
     * @Assert\Type(type="string")
     * @Assert\MaxLength(255)
     * @Assert\Email(checkMX = true)
     */
    private $email;

    /**
     * @var string $tel
     *
     * @ORM\Column(name="tel", type="string", length=255, nullable=true)
     *
     * @Assert\Type(type="string")
     * @Assert\MaxLength(255)
     * @Assert\Regex(
     *     pattern="/^[[:digit:]\s\(\)]+$/",
     *     message="Invalid telephone number."
     * )
     */
    private $tel;

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

    /**
     * @ORM\OneToMany(targetEntity="RDV", mappedBy="student")
     */
    private $rdvs;

    public function __construct()
    {
        $this->rdvs = new ArrayCollection();
    }


{'fraction_non_alphanumeric': 0.17549984132021582, 'fraction_numerical': 0.00856870834655665, 'mean_word_length': 2.346072186836518, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2544744', 'n_tokens_mistral': 1099, 'n_tokens_neox': 1056, 'n_words': 186}