<commit_before><?php

namespace App\Entity;

use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
use JMS\Serializer\Annotation as Serializer;
use JMS\Serializer\Annotation\Exclude;
use JMS\Serializer\Annotation\ExclusionPolicy;

/**
 * News.
 *
 * @ORM\Table(name="country")
 * @ORM\Entity(repositoryClass="App\Repository\CountryRepository", readOnly=true)
 * @ExclusionPolicy("NONE")
 */
class Country
{
    /**
     * @var string
     *
     * @ORM\Column(type="string", length=2)
     * @ORM\Id
     * @Serializer\Groups({"list_event", "list_user", "list_city"})
     */
    private $id;

    /**
     * @Gedmo\Slug(fields={"name"})
     * @ORM\Column(length=63, unique=true)
     * @Exclude
     */
    private $slug;

    /**
     * @var string
     *
     * @ORM\Column(type="string", length=5, nullable=true)
     * @Exclude
     */
    private $locale;

    /**
     * @var string
     *
     * @ORM\Column(type="string", length=63)
     * @Serializer\Groups({"list_city"})
     */
    private $name;

    /**
     * @var string
     *
     * @ORM\Column(type="string", length=63)
     * @Exclude
     */
    private $capital;

    /**
     * @var string|null
     *
     * @ORM\Column(type="string", length=511, nullable=true)
     * @Exclude
     */
    private $postalCodeRegex;

    /**
     * Set id.
     *
     * @param string $id
     *
     * @return Country
     */
    public function setId($id)
    {
        $this->id = $id;

        return $this;
    }

    /**
     * Get id.
     *
     * @return string
     */
    public function getId()
    {<commit_msg>Added toString method to Country<commit_after><?php

namespace App\Entity;

use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
use JMS\Serializer\Annotation as Serializer;
use JMS\Serializer\Annotation\Exclude;
use JMS\Serializer\Annotation\ExclusionPolicy;

/**
 * News.
 *
 * @ORM\Table(name="country")
 * @ORM\Entity(repositoryClass="App\Repository\CountryRepository", readOnly=true)
 * @ExclusionPolicy("NONE")
 */
class Country
{
    /**
     * @var string
     *
     * @ORM\Column(type="string", length=2)
     * @ORM\Id
     * @Serializer\Groups({"list_event", "list_user", "list_city"})
     */
    private $id;

    /**
     * @Gedmo\Slug(fields={"name"})
     * @ORM\Column(length=63, unique=true)
     * @Exclude
     */
    private $slug;

    /**
     * @var string
     *
     * @ORM\Column(type="string", length=5, nullable=true)
     * @Exclude
     */
    private $locale;

    /**
     * @var string
     *
     * @ORM\Column(type="string", length=63)
     * @Serializer\Groups({"list_city"})
     */
    private $name;

    /**
     * @var string
     *
     * @ORM\Column(type="string", length=63)
     * @Exclude
     */
    private $capital;

    /**
     * @var string|null
     *
     * @ORM\Column(type="string", length=511, nullable=true)
     * @Exclude
     */
    private $postalCodeRegex;

    public function __toString()
    {
        return $this->name;
    }

    /**
     * Set id.
     *
     * @param string $id
     *
     * @return Country
     */
    public function setId($id)
    {
        $this->id = $id;

        return $this;
    }

    /**
     * Get id.
     *
     * @return string
     */
    public function getId()
    {
{'fraction_non_alphanumeric': 0.16267071320182094, 'fraction_numerical': 0.006676783004552352, 'mean_word_length': 2.127134724857685, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, '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': '6237335', 'n_tokens_mistral': 1147, 'n_tokens_neox': 1116, 'n_words': 195}