<commit_before><?php

namespace SubwayBuddy\UserBundle\Entity;

use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping as ORM;
use FOS\UserBundle\Model\User as BaseUser;
use Symfony\Component\Validator\Constraints\DateTime;

/**
 * User
 *
 * @ORM\Table()
 * @ORM\Entity(repositoryClass="SubwayBuddy\UserBundle\Entity\UserRepository")
 */
class User extends BaseUser
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    protected $id;

    /**
     * @var ArrayCollection
     *
     * @ORM\OneToMany(targetEntity="SubwayBuddy\UserBundle\Entity\Travel", mappedBy="user")
     */
    public $travels;

    /**
     * @var ArrayCollection
     *
     *@ORM\ManyToMany(targetEntity="SubwayBuddy\UserBundle\Entity\Chatroom", inversedBy="users")
     */
    public $chatrooms;

    /**
     * @ORM\ManyToMany(targetEntity="User", mappedBy="myBuddys")
     **/
    private $buddysWithMe;


    /**
     * @ORM\OneToMany(targetEntity="SubwayBuddy\UserBundle\Entity\Subject", mappedBy="user", cascade={"remove"})
     */
    private $subjects;

    /**
     * @ORM\ManyToMany(targetEntity="User", inversedBy="buddysWithME")
     * @ORM\JoinTable(name="buddys",
     *      joinColumns={@ORM\JoinColumn(name="user_id", referencedColumnName="id")},
     *      inverseJoinColumns={@ORM\JoinColumn(name="buddy_user_id", referencedColumnName="id")}
     *      )
     **/
    private $myBuddys;
<commit_msg>fix mapping buddy<commit_after><?php

namespace SubwayBuddy\UserBundle\Entity;

use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping as ORM;
use FOS\UserBundle\Model\User as BaseUser;
use Symfony\Component\Validator\Constraints\DateTime;

/**
 * User
 *
 * @ORM\Table()
 * @ORM\Entity(repositoryClass="SubwayBuddy\UserBundle\Entity\UserRepository")
 */
class User extends BaseUser
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    protected $id;

    /**
     * @var ArrayCollection
     *
     * @ORM\OneToMany(targetEntity="SubwayBuddy\UserBundle\Entity\Travel", mappedBy="user")
     */
    public $travels;

    /**
     * @var ArrayCollection
     *
     *@ORM\ManyToMany(targetEntity="SubwayBuddy\UserBundle\Entity\Chatroom", inversedBy="users")
     */
    public $chatrooms;

    /**
     * @ORM\ManyToMany(targetEntity="User")
     * @ORM\JoinTable(name="buddysRequest",
     *      joinColumns={@ORM\JoinColumn(name="user_id", referencedColumnName="id")},
     *      inverseJoinColumns={@ORM\JoinColumn(name="buddy_user_id", referencedColumnName="id")}
     *      )
     **/
    private $buddysWithMe;


    /**
     * @ORM\OneToMany(targetEntity="SubwayBuddy\UserBundle\Entity\Subject", mappedBy="user", cascade={"remove"})
     */
    private $subjects;

    /**
     * @ORM\ManyToMany(targetEntity="User")
     * @ORM\JoinTable(name="buddys",
     *      joinColumns={@ORM\JoinColumn(name="user_id", referencedColumnName="id")},
     *      inverseJoinColumns={@ORM\JoinColumn(name="buddy_user_id", referencedColumnName="id")}
     *      )
     **/
    private $myBuddys;

{'fraction_non_alphanumeric': 0.15892193308550187, 'fraction_numerical': 0.0, 'mean_word_length': 3.345895020188425, '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': '7546921', 'n_tokens_mistral': 1093, 'n_tokens_neox': 1055, 'n_words': 125}