<commit_before><?php

namespace RpsCompetition\Entity\Forms;

use Symfony\Component\Validator\Constraints as Assert;
use Symfony\Component\Validator\Mapping\ClassMetadata;
use Symfony\Component\Validator\Context\ExecutionContextInterface;

/**
 * Class UploadEntry
 *
 * @package RpsCompetition\Entity
 */
class UploadEntry
{
    protected $file_name;
    protected $medium_subset;
    protected $title;
    protected $wp_get_referer;

    /**
     * @param ClassMetadata $metadata
     */
    public static function loadValidatorMetadata(ClassMetadata $metadata)
    {
        //$metadata->addConstraint(new Assert\Callback('validate'));
    }

    /**
     * @return string
     */
    public function getFileName()
    {
        return $this->file_name;
    }

    /**
     * @param mixed $file_name
     */<commit_msg>Add callback for later usage<commit_after><?php

namespace RpsCompetition\Entity\Forms;

use Symfony\Component\Validator\Constraints as Assert;
use Symfony\Component\Validator\Context\ExecutionContextInterface;
use Symfony\Component\Validator\Mapping\ClassMetadata;

/**
 * Class UploadEntry
 *
 * @package RpsCompetition\Entity
 */
class UploadEntry
{
    protected $file_name;
    protected $medium_subset;
    protected $title;
    protected $wp_get_referer;

    /**
     * @param ClassMetadata $metadata
     */
    public static function loadValidatorMetadata(ClassMetadata $metadata)
    {
        $metadata->addConstraint(new Assert\Callback('validate'));
    }

    /**
     * @return string
     */
    public function getFileName()
    {
        return $this->file_name;
    }

    /**
     * @param mixed $file_name
     */
{'fraction_non_alphanumeric': 0.10742305371152686, 'fraction_numerical': 0.0, 'mean_word_length': 3.155388471177945, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '817462', 'n_tokens_mistral': 470, 'n_tokens_neox': 465, 'n_words': 94}