<commit_before><?php

namespace Log210\LivraisonBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use Log210\UserBundle\Entity\User;

/**
 * @ORM\Entity
 * @ORM\Table(name="clients")
 */
class Client
{
    /**
     * @ORM\Id
     * @ORM\Column(type="integer")
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    protected $id;

    /**
     * @ORM\Column(type="text")
     */
    protected $address;

    /**
     * @ORM\OneToOne(targetEntity="\Log210\UserBundle\Entity\User", inversedBy="client")
     * @ORM\JoinColumn(name="client_id", referencedColumnName="id", nullable=true)
     */
    protected $user;

    /**
     * Set restaurants
     *
     * @param \Log210\LivraisonBundle\Entity\Restaurant $restaurants
     * @return Restaurateur
     */
    public function setUser(User $user = null)
    {
        $oldUser = $this->user;
        $this->user = $user;

        if ($oldUser !== null && $oldUser->getClient() === $this) {
            $oldUser->setClient(null);
        }

        if ($user !== null && $user->getClient() !== $this) {
            $user->setClient($this);
        }
    }

    /**
     * Get restaurant
     *
     * @return \Log210\LivraisonBundle\Entity\Restaurant
     */
    public function getUser()
    {
        return $this->user;
    }

    public function getAddress()
    {
        return $this->address;
    }

    public function setAddress($address)
    {
        $this->address = $address;

        return $this;
    }
}<commit_msg>ajout de to string client<commit_after><?php

namespace Log210\LivraisonBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use Log210\UserBundle\Entity\User;

/**
 * @ORM\Entity
 * @ORM\Table(name="clients")
 */
class Client
{
    /**
     * @ORM\Id
     * @ORM\Column(type="integer")
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    protected $id;

    /**
     * @ORM\Column(type="text")
     */
    protected $address;

    /**
     * @ORM\OneToOne(targetEntity="\Log210\UserBundle\Entity\User", inversedBy="client")
     * @ORM\JoinColumn(name="client_id", referencedColumnName="id", nullable=true)
     */
    protected $user;

    /**
     * Set restaurants
     *
     * @param \Log210\LivraisonBundle\Entity\Restaurant $restaurants
     * @return Restaurateur
     */
    public function setUser(User $user = null)
    {
        $oldUser = $this->user;
        $this->user = $user;

        if ($oldUser !== null && $oldUser->getClient() === $this) {
            $oldUser->setClient(null);
        }

        if ($user !== null && $user->getClient() !== $this) {
            $user->setClient($this);
        }
    }

    /**
     * Get restaurant
     *
     * @return \Log210\LivraisonBundle\Entity\Restaurant
     */
    public function getUser()
    {
        return $this->user;
    }

    public function getAddress()
    {
        return $this->address;
    }

    public function setAddress($address)
    {
        $this->address = $address;

        return $this;
    }

    public function __toString()
    {
        return (string)$this->getUser();
    }
}
{'fraction_non_alphanumeric': 0.15952925792742725, 'fraction_numerical': 0.009807126511932003, 'mean_word_length': 2.180873180873181, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 22, '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': '404119', 'n_tokens_mistral': 1021, 'n_tokens_neox': 976, 'n_words': 163}