<commit_before><?php
namespace Concrete\Core\Entity\Attribute\Value\Value;

use Concrete\Core\File\FileProviderInterface;
use Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Entity
 * @ORM\Table(name="atFile")
 */
class ImageFileValue extends AbstractValue implements FileProviderInterface
{
    /**
     * @ORM\ManyToOne(targetEntity="\Concrete\Core\Entity\File\File")
     * @ORM\JoinColumn(name="fID", referencedColumnName="fID")
     */
    protected $file;

    public function getFileID()
    {
        if (is_object($this->file)) {
            return $this->file->getFileID();
        }

        return 0;
    }

    public function getFileObjects()
    {
        if (is_object($this->file)) {
            return array($this->file);
        }<commit_msg>Remove atFile entries when we remove files<commit_after><?php
namespace Concrete\Core\Entity\Attribute\Value\Value;

use Concrete\Core\File\FileProviderInterface;
use Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Entity
 * @ORM\Table(name="atFile")
 */
class ImageFileValue extends AbstractValue implements FileProviderInterface
{
    /**
     * @ORM\ManyToOne(targetEntity="\Concrete\Core\Entity\File\File")
     * @ORM\JoinColumn(name="fID", referencedColumnName="fID", onDelete="CASCADE")
     */
    protected $file;

    public function getFileID()
    {
        if (is_object($this->file)) {
            return $this->file->getFileID();
        }

        return 0;
    }

    public function getFileObjects()
    {
        if (is_object($this->file)) {
            return array($this->file);
        }
{'fraction_non_alphanumeric': 0.13983322642719692, 'fraction_numerical': 0.0012828736369467607, 'mean_word_length': 2.9, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '1790078', 'n_tokens_mistral': 482, 'n_tokens_neox': 469, 'n_words': 83}