<commit_before># Exemple File.php entity
```php
<?php
namespace YourBundle\Entity;

use Doctrine\ORM\Event\PreUpdateEventArgs;
use Gedmo\Mapping\Annotation as Gedmo;
use Doctrine\ORM\Mapping as ORM;

/**
 * File
 *
 * @link http://atlantic18.github.io/DoctrineExtensions/doc/uploadable.html Documentation Uploadable behavior extension for Doctrine 2
 *
 * @ORM\Table(name="file")
 * @ORM\Entity(repositoryClass="YourBundle\Repository\FileRepository")
 * @Gedmo\Uploadable(callback="callbackMethod", filenameGenerator="ALPHANUMERIC", appendNumber=true)
 * @ORM\HasLifecycleCallbacks()
 */
class File
{
    /**
     * @var int
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

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

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

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

    /**
     * @var string
     *
     * @ORM\Column(name="mime_type", type="string", length=100)
     * @Gedmo\UploadableFileMimeType
     */
    private $mimeType;

    /**
     * @var string
     *
     * @ORM\Column(name="size", type="decimal", precision=10, scale=0)
     * @Gedmo\UploadableFileSize
     */
    private $size;

    /**
     * @var \Symfony\Component\HttpFoundation\File\File
     *
     * NOTE: This is not a mapped field of entity metadata, just a simple property.
     */
    private $file;

    public function callbackMethod(array $info)
    {
        // Rewrite variables
        $info['fileWithoutExt'] = str_replace($info['fileExtension'], '', realpath($info['fileWithoutExt'].$info['fileExtension']));
        $info['filePath'] = realpath($info['filePath']);

        $realpath = str_replace(realpath($_SERVER['DOCUMENT_ROOT']), '', $info['filePath']);
        $this->setPath(str_replace('\\', '/', $realpath));
        $this->setFullPath($info['filePath']);
    }

    /**
     * @ORM\PreUpdate()
     *
     * @param PreUpdateEventArgs $args
     */
    public function setPreupdate(PreUpdateEventArgs $args)
    {
        if ($args->hasChangedField('fullPath')) {
            if ($args->getOldValue('mimeType') !== $args->getNewValue('mimeType')) {
                $this->removeFiles($args->getOldValue('fullPath'), true);
            }
        }
    }

    /**
     * @ORM\PreRemove()
     */
    public function setPreRemove()
    {
        $this->removeFiles($this->getFullPath());
    }
<commit_msg>update getting property<commit_after># Exemple File.php entity
```php
<?php
namespace YourBundle\Entity;

use Doctrine\ORM\Event\PreUpdateEventArgs;
use Gedmo\Mapping\Annotation as Gedmo;
use Doctrine\ORM\Mapping as ORM;

/**
 * File
 *
 * @link http://atlantic18.github.io/DoctrineExtensions/doc/uploadable.html Documentation Uploadable behavior extension for Doctrine 2
 *
 * @ORM\Table(name="file")
 * @ORM\Entity(repositoryClass="YourBundle\Repository\FileRepository")
 * @Gedmo\Uploadable(callback="callbackMethod", filenameGenerator="ALPHANUMERIC", appendNumber=true)
 * @ORM\HasLifecycleCallbacks()
 */
class File
{
    /**
     * @var int
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

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

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

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

    /**
     * @var string
     *
     * @ORM\Column(name="mime_type", type="string", length=100)
     * @Gedmo\UploadableFileMimeType
     */
    private $mimeType;

    /**
     * @var string
     *
     * @ORM\Column(name="size", type="decimal", precision=10, scale=0)
     * @Gedmo\UploadableFileSize
     */
    private $size;

    /**
     * @var \Symfony\Component\HttpFoundation\File\File
     *
     * NOTE: This is not a mapped field of entity metadata, just a simple property.
     */
    private $file;

    public function callbackMethod(array $info)
    {
        // Rewrite variables
        $info['fileWithoutExt'] = str_replace($info['fileExtension'], '', realpath($info['fileWithoutExt'].$info['fileExtension']));
        $info['filePath'] = realpath($info['filePath']);

        $realpath = str_replace(realpath($_SERVER['DOCUMENT_ROOT']), '', $info['filePath']);
        $this->setPath(str_replace('\\', '/', $realpath));
        $this->setFullPath($info['filePath']);
    }

    /**
     * @ORM\PreUpdate()
     *
     * @param PreUpdateEventArgs $args
     */
    public function setPreupdate(PreUpdateEventArgs $args)
    {
        if ($args->hasChangedField('fullPath')) {
            if ($args->getOldValue('fullPath') !== $args->getNewValue('fullPath')) {
                $this->removeFiles($args->getOldValue('fullPath'), true);
            }
        }
    }

    /**
     * @ORM\PreRemove()
     */
    public function setPreRemove()
    {
        $this->removeFiles($this->getFullPath());
    }

{'fraction_non_alphanumeric': 0.16666666666666666, 'fraction_numerical': 0.006564551422319475, 'mean_word_length': 2.7594242631939685, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 21, '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': '7376980', 'n_tokens_mistral': 1779, 'n_tokens_neox': 1722, 'n_words': 280}