<commit_before><?php

namespace CS\SettingsBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;

/**
 * @ORM\Table(name="app_config")
 * @ORM\Entity(repositoryClass="CS\SettingsBundle\Repository\SettingsRepository")
 * @UniqueEntity("key")
 */
class Setting
{
    /**
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @ORM\Column(name="`key`", type="string", length=125, nullable=false, unique=true)
     */
    private $key;

    /**
     * @ORM\Column(name="`value`", type="text", nullable=true)
     */
    private $value;

    /**
     * @ORM\Column(name="description", type="text", nullable=true)
     */
    private $description;

    /**
     * @ORM\ManytoOne(targetEntity="Section", inversedBy="settings")
     */
    private $section;

    /**
     * Get id
     *
     * @return integer
     */
    public function getId()
    {
        return $this->id;
    }
<commit_msg>Remove unique constraint from settings key<commit_after><?php

namespace CS\SettingsBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;

/**
 * @ORM\Table(name="app_config")
 * @ORM\Entity(repositoryClass="CS\SettingsBundle\Repository\SettingsRepository")
 */
class Setting
{
    /**
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @ORM\Column(name="`key`", type="string", length=125, nullable=false)
     */
    private $key;

    /**
     * @ORM\Column(name="`value`", type="text", nullable=true)
     */
    private $value;

    /**
     * @ORM\Column(name="description", type="text", nullable=true)
     */
    private $description;

    /**
     * @ORM\ManytoOne(targetEntity="Section", inversedBy="settings")
     */
    private $section;

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

{'fraction_non_alphanumeric': 0.1748792270531401, 'fraction_numerical': 0.002898550724637681, 'mean_word_length': 2.793040293040293, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '355692', 'n_tokens_mistral': 682, 'n_tokens_neox': 667, 'n_words': 103}