<commit_before><?php

namespace Oro\Bundle\EntityConfigBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Table(name="oro_config_value")
 * @ORM\Entity
 */
class ConfigValue
{
    const ENTITY_NAME = 'OroEntityConfigBundle:ConfigValue';

    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    protected $id;

    /**
     * @var ConfigEntity
     *
     * @ORM\ManyToOne(targetEntity="ConfigEntity", inversedBy="values")
     * @ORM\JoinColumns({
     * @ORM\JoinColumn(name="entity_id", referencedColumnName="id")
     * })
     */
    protected $entity;

    /**
     * @var ConfigField
     *
     * @ORM\ManyToOne(targetEntity="ConfigField", inversedBy="values")
     * @ORM\JoinColumns({
     * @ORM\JoinColumn(name="field_id", referencedColumnName="id")
     * })
     */
    protected $field;

    /**
     * @var string
     *
     * @ORM\Column(type="string", length=255, nullable=false)
     */
    protected $code;

    /**
     * @var string
     *
     * @ORM\Column(type="string", length=255, nullable=false)
     */
    protected $scope;

    /**
     * @var string
     *
     * @ORM\Column(type="text", nullable=false)
     */
    protected $value;

    public function __construct($code = null, $scope = null, $value = null)
    {
        $this->code  = $code;
        $this->scope = $scope;
        $this->value = $value;
    }

    /**
     * Get id
     *
     * @return integer
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set code
     *<commit_msg>EntityConfigBundle  fix save config with empty values<commit_after><?php

namespace Oro\Bundle\EntityConfigBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Table(name="oro_config_value")
 * @ORM\Entity
 */
class ConfigValue
{
    const ENTITY_NAME = 'OroEntityConfigBundle:ConfigValue';

    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    protected $id;

    /**
     * @var ConfigEntity
     *
     * @ORM\ManyToOne(targetEntity="ConfigEntity", inversedBy="values")
     * @ORM\JoinColumns({
     * @ORM\JoinColumn(name="entity_id", referencedColumnName="id")
     * })
     */
    protected $entity;

    /**
     * @var ConfigField
     *
     * @ORM\ManyToOne(targetEntity="ConfigField", inversedBy="values")
     * @ORM\JoinColumns({
     * @ORM\JoinColumn(name="field_id", referencedColumnName="id")
     * })
     */
    protected $field;

    /**
     * @var string
     *
     * @ORM\Column(type="string", length=255)
     */
    protected $code;

    /**
     * @var string
     *
     * @ORM\Column(type="string", length=255)
     */
    protected $scope;

    /**
     * @var string
     *
     * @ORM\Column(type="text", nullable=true)
     */
    protected $value;

    public function __construct($code = null, $scope = null, $value = null)
    {
        $this->code  = $code;
        $this->scope = $scope;
        $this->value = $value;
    }

    /**
     * Get id
     *
     * @return integer
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set code
     *
{'fraction_non_alphanumeric': 0.16214568729046022, 'fraction_numerical': 0.00365742151782993, 'mean_word_length': 2.195715676728335, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '5008891', 'n_tokens_mistral': 1107, 'n_tokens_neox': 1074, 'n_words': 175}