<commit_before><?php

namespace OpenSky\Bundle\RuntimeConfigBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use OpenSky\Bundle\RuntimeConfigBundle\Model\Parameter as BaseParameter;
use Symfony\Bridge\Doctrine\Validator\Constraints as AssertORM;
use Symfony\Component\Validator\Constraints as Assert;

/**
 * @ORM\MappedSuperclass
 * @AssertORM\UniqueEntity(groups={"Entity"}, fields={"name"}, message="A parameter with the same name already exists; name must be unique")
 */
class Parameter extends BaseParameter
{
    /**
     * @ORM\Column(type="string")
     * @Assert\MaxLength(groups={"Entity"}, limit=255)
     * @Assert\NotBlank(groups={"Entity"})
     */
    protected $name;

    /**
     * @ORM\Column(type="string")
     * @Assert\MaxLength(groups={"Entity"}, limit=255)
     */
    protected $value;
}<commit_msg>Added nullable=true on Parameter::$value property as it does not have an Assert\NotBlank and we want to allow null values.<commit_after><?php

namespace OpenSky\Bundle\RuntimeConfigBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use OpenSky\Bundle\RuntimeConfigBundle\Model\Parameter as BaseParameter;
use Symfony\Bridge\Doctrine\Validator\Constraints as AssertORM;
use Symfony\Component\Validator\Constraints as Assert;

/**
 * @ORM\MappedSuperclass
 * @AssertORM\UniqueEntity(groups={"Entity"}, fields={"name"}, message="A parameter with the same name already exists; name must be unique")
 */
class Parameter extends BaseParameter
{
    /**
     * @ORM\Column(type="string")
     * @Assert\MaxLength(groups={"Entity"}, limit=255)
     * @Assert\NotBlank(groups={"Entity"})
     */
    protected $name;

    /**
     * @ORM\Column(type="string", nullable=true)
     * @Assert\MaxLength(groups={"Entity"}, limit=255)
     */
    protected $value;
}
{'fraction_non_alphanumeric': 0.14076576576576577, 'fraction_numerical': 0.006756756756756757, 'mean_word_length': 4.5186335403726705, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '877080', 'n_tokens_mistral': 535, 'n_tokens_neox': 518, 'n_words': 117}