<commit_before><?php

namespace AppBundle\Entity\Event;

use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\ArrayCollection;
/**
 * EventAdherentRegistration
 *
 * @ORM\Table()
 * @ORM\Entity(repositoryClass="AppBundle\Entity\Event\EventAdherentRegistrationRepository")
 */
class EventAdherentRegistration
{

    const PAYMENT_MODE_ONLINE = 'online';
    const PAYMENT_MODE_ONSITE = 'onsite';

    const ATTENDANCE_PRESENT ='present';
    const ATTENDANCE_ABSENT ='absent';
    const ATTENDANCE_NOT_REGISTRED = 'not registred';

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

    /**
     * @var \stdClass
     *
     * @ORM\ManyToOne(targetEntity="AppBundle\Entity\Adherent")
     * @ORM\JoinColumn(nullable=false)
     *
     * Person making the registration
     *
     */
    private $author;

    /**
     * @var \stdClass
     *
     * @ORM\ManyToOne(targetEntity="AppBundle\Entity\Adherent", inversedBy="events")
     * @ORM\JoinColumn(nullable=false)
     *
     *  Adherent who participate
     *
     */
    private $adherent;

    /**
     * @var \stdClass
     *
     * @ORM\OneToMany(targetEntity="AppBundle\Entity\Payment\EventPayment", mappedBy="attachedRegistration")
     */
    private $payments;

    /**
     * @var \stdClass
     * 
     * @ORM\ManyToOne(targetEntity="EventRole", inversedBy="participants")
     * @ORM\JoinColumn(nullable=false)
     * 
     */
    private $role;

    /**
     * @var \stdClass
     * 
     * @ORM\ManyToOne(targetEntity="EventCost")
     * @ORM\JoinColumn(nullable=false)
     * 
     */
    private $cost;

    /**
     * @var \stdClass
     *
     * @ORM\ManyToOne(targetEntity="Event", inversedBy="participants")
     * @ORM\JoinColumn(nullable=false)
     *
     */
    private $event;

    /**
     * @var \stdClass
     *
     * @ORM\ManyToMany(targetEntity="EventMeal", inversedBy="participants")
     *
     */
    private $meals;

    /**
     * @var boolean
     *
     @ORM\Column(name="need_hosting", type="boolean")
     */
    private $needHosting;

    /**
     * @var string
     *
     * @ORM\Column(name="paymentMode", type="string", length=255, nullable=false)
     * Online (CB) or At registration desk
     */
    private $paymentMode;

    /**
     * @var boolean
     *
     * @ORM\Column(name="registrationDate", type="datetime")
     */
    private $registrationDate;


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

    /**
     * @var boolean
     *
     @ORM\Column(name="vote_status", type="boolean")
     */
    private $voteStatus;

    /**
     * @var string
     *
     * @ORM\Column(name="attendance", type="string", length=255, nullable=false)
     * Online (CB) or At registration desk
     */
    private $attendance;



    public function __construct(\AppBundle\Entity\Adherent $author = null, Event $event = null)
    {
        $this->author = $author;
        $this->event = $event;
        $this->registrationDate = new \DateTime('now');
        $this->paymentMode = self::PAYMENT_MODE_ONLINE;
        $this->canVote = false;
        $this->attendance = self::ATTENDANCE_NOT_REGISTRED;
        $this->payments = new ArrayCollection();
    }
    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set adherent
     *
     * @param \stdClass $adherent
     * @return EventAdherentRegistration
     */
    public function setAdherent($adherent)
    {
        $this->adherent = $adherent;

        return $this;
    }

    /**<commit_msg>corrected voteStatus during registration<commit_after><?php

namespace AppBundle\Entity\Event;

use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\ArrayCollection;
/**
 * EventAdherentRegistration
 *
 * @ORM\Table()
 * @ORM\Entity(repositoryClass="AppBundle\Entity\Event\EventAdherentRegistrationRepository")
 */
class EventAdherentRegistration
{

    const PAYMENT_MODE_ONLINE = 'online';
    const PAYMENT_MODE_ONSITE = 'onsite';

    const ATTENDANCE_PRESENT ='present';
    const ATTENDANCE_ABSENT ='absent';
    const ATTENDANCE_NOT_REGISTRED = 'not registred';

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

    /**
     * @var \stdClass
     *
     * @ORM\ManyToOne(targetEntity="AppBundle\Entity\Adherent")
     * @ORM\JoinColumn(nullable=false)
     *
     * Person making the registration
     *
     */
    private $author;

    /**
     * @var \stdClass
     *
     * @ORM\ManyToOne(targetEntity="AppBundle\Entity\Adherent", inversedBy="events")
     * @ORM\JoinColumn(nullable=false)
     *
     *  Adherent who participate
     *
     */
    private $adherent;

    /**
     * @var \stdClass
     *
     * @ORM\OneToMany(targetEntity="AppBundle\Entity\Payment\EventPayment", mappedBy="attachedRegistration")
     */
    private $payments;

    /**
     * @var \stdClass
     * 
     * @ORM\ManyToOne(targetEntity="EventRole", inversedBy="participants")
     * @ORM\JoinColumn(nullable=false)
     * 
     */
    private $role;

    /**
     * @var \stdClass
     * 
     * @ORM\ManyToOne(targetEntity="EventCost")
     * @ORM\JoinColumn(nullable=false)
     * 
     */
    private $cost;

    /**
     * @var \stdClass
     *
     * @ORM\ManyToOne(targetEntity="Event", inversedBy="participants")
     * @ORM\JoinColumn(nullable=false)
     *
     */
    private $event;

    /**
     * @var \stdClass
     *
     * @ORM\ManyToMany(targetEntity="EventMeal", inversedBy="participants")
     *
     */
    private $meals;

    /**
     * @var boolean
     *
     @ORM\Column(name="need_hosting", type="boolean")
     */
    private $needHosting;

    /**
     * @var string
     *
     * @ORM\Column(name="paymentMode", type="string", length=255, nullable=false)
     * Online (CB) or At registration desk
     */
    private $paymentMode;

    /**
     * @var boolean
     *
     * @ORM\Column(name="registrationDate", type="datetime")
     */
    private $registrationDate;


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

    /**
     * @var boolean
     *
     @ORM\Column(name="vote_status", type="boolean")
     */
    private $voteStatus;

    /**
     * @var string
     *
     * @ORM\Column(name="attendance", type="string", length=255, nullable=false)
     * Online (CB) or At registration desk
     */
    private $attendance;



    public function __construct(\AppBundle\Entity\Adherent $author = null, Event $event = null)
    {
        $this->author = $author;
        $this->event = $event;
        $this->registrationDate = new \DateTime('now');
        $this->paymentMode = self::PAYMENT_MODE_ONLINE;
        $this->voteStatus = false;
        $this->attendance = self::ATTENDANCE_NOT_REGISTRED;
        $this->payments = new ArrayCollection();
    }
    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set adherent
     *
     * @param \stdClass $adherent
     * @return EventAdherentRegistration
     */
    public function setAdherent($adherent)
    {
        $this->adherent = $adherent;

        return $this;
    }

    /**
{'fraction_non_alphanumeric': 0.14510536142971459, 'fraction_numerical': 0.0016004267804747934, 'mean_word_length': 2.321080602302923, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 21, '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': '6015686', 'n_tokens_mistral': 2464, 'n_tokens_neox': 2381, 'n_words': 383}