<commit_before><?php

namespace DocumentBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\HttpFoundation\File\File;
use Vich\UploaderBundle\Mapping\Annotation as Vich;
use Symfony\Component\Validator\Constraints as Assert;
use Gedmo\Mapping\Annotation as Gedmo;

/**
 * @ORM\Entity
 * @Vich\Uploadable
 * @ORM\Table(name="documentos")
 */
class Documento
{
    /**
     * @ORM\Id
     * @ORM\Column(type="integer")
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * [$tipoDocumento boolean para saber si es parcial o hoja de trabajo].
     *
     * @var bool
     *           true = parcial
     *           false = hoja de trabajo
     * @ORM\Column(name="tipoDocumento",type="boolean")
     */
    private $tipoDocumento;

    /**
     * [$numeroDocumento numero de documento de acuerdo al programa].
     *
     * @var int
     * @ORM\Column(name="numeroDocumento",type="integer")
     */
    private $numeroDocumento;

    /**
     * [$curso relacion one to many a curso].
     *
     * @var ArrayCollection
     * @ORM\ManyToOne(targetEntity="CursoBundle\Entity\Curso",inversedBy="documentos")
     * @ORM\JoinColumn(name="curso_id", referencedColumnName="id")
     */
    private $curso;

    /**
     * NOTE: This is not a mapped field of entity metadata, just a simple property.
     * 
     * @Vich\UploadableField(mapping="document", fileNameProperty="documentName",
     * nullable=true)
     * 
     * @Assert\File(
     * maxSize="16M",
     * mimeTypes = {"application/pdf", "application/x-pdf","application/msword",
     *    "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
     *    "text/plain","text/rtf"},
     * mimeTypesMessage = "Por favor solo subir archivos PDF o Word ",
     * )
     * 
     * @var File
     */
    private $documentFile;

    /**
     * @ORM\Column(type="string", length=255, unique=false)
     *
     * @var string
     */
    private $documentName;

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

    /**
     * @Gedmo\Slug(fields={"numeroDocumento","documentName"},updatable=true)
     * @ORM\Column(type="string",length=128, unique=true)
     */
    private $slug;

    /**
     * @ORM\ManyToOne(targetEntity="UserBundle\Entity\Usuario")
     * @ORM\JoinColumn(name="usuario_id", referencedColumnName="id")
     */<commit_msg>another myme type<commit_after><?php

namespace DocumentBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\HttpFoundation\File\File;
use Vich\UploaderBundle\Mapping\Annotation as Vich;
use Symfony\Component\Validator\Constraints as Assert;
use Gedmo\Mapping\Annotation as Gedmo;

/**
 * @ORM\Entity
 * @Vich\Uploadable
 * @ORM\Table(name="documentos")
 */
class Documento
{
    /**
     * @ORM\Id
     * @ORM\Column(type="integer")
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * [$tipoDocumento boolean para saber si es parcial o hoja de trabajo].
     *
     * @var bool
     *           true = parcial
     *           false = hoja de trabajo
     * @ORM\Column(name="tipoDocumento",type="boolean")
     */
    private $tipoDocumento;

    /**
     * [$numeroDocumento numero de documento de acuerdo al programa].
     *
     * @var int
     * @ORM\Column(name="numeroDocumento",type="integer")
     */
    private $numeroDocumento;

    /**
     * [$curso relacion one to many a curso].
     *
     * @var ArrayCollection
     * @ORM\ManyToOne(targetEntity="CursoBundle\Entity\Curso",inversedBy="documentos")
     * @ORM\JoinColumn(name="curso_id", referencedColumnName="id")
     */
    private $curso;

    /**
     * NOTE: This is not a mapped field of entity metadata, just a simple property.
     * 
     * @Vich\UploadableField(mapping="document", fileNameProperty="documentName",
     * nullable=true)
     * 
     * @Assert\File(
     * maxSize="16M",
     * mimeTypes = {"application/pdf", "application/x-pdf","application/msword",
     *    "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
     *    "text/plain","text/*", "text/txt"},
     * mimeTypesMessage = "Por favor solo subir archivos PDF o Word ",
     * )
     * 
     * @var File
     */
    private $documentFile;

    /**
     * @ORM\Column(type="string", length=255, unique=false)
     *
     * @var string
     */
    private $documentName;

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

    /**
     * @Gedmo\Slug(fields={"numeroDocumento","documentName"},updatable=true)
     * @ORM\Column(type="string",length=128, unique=true)
     */
    private $slug;

    /**
     * @ORM\ManyToOne(targetEntity="UserBundle\Entity\Usuario")
     * @ORM\JoinColumn(name="usuario_id", referencedColumnName="id")
     */
{'fraction_non_alphanumeric': 0.14757799671592775, 'fraction_numerical': 0.003284072249589491, 'mean_word_length': 2.7455803228285935, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '3939735', 'n_tokens_mistral': 1608, 'n_tokens_neox': 1572, 'n_words': 277}