<commit_before><?php

namespace Explee\EdmodoBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * EdGroup
 *
 * @ORM\Table()
 * @ORM\Entity(repositoryClass="Explee\EdmodoBundle\Entity\EdGroupRepository")
 */
class EdGroup
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var string
     *
     * @ORM\Column(name="edId", type="string", length=255)
     */
    private $edId;

    /**
     * @var string
     *
     * @ORM\Column(name="licenseCode", type="string", length=255, nullable=true)
     */
    private $licenseCode;

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

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="expirationDate", type="datetime", nullable=true)
     */
    private $expirationDate;


    /**
     * @var array
     *
     * @ORM\Column(name="Api", type="array", nullable=true)
     */
    private $api;

    /**
     * @ORM\ManyToOne(targetEntity="Explee\EdmodoBundle\Model\EdmodoUserInterface", cascade={"persist"})
     * @ORM\JoinColumn(name="owner_id", referencedColumnName="id")
     */
    private $owner;

     /**
     * @ORM\ManyToMany(targetEntity="Explee\EdmodoBundle\Model\EdmodoUserInterface", inversedBy="edGroups", cascade={"persist"})
     * @ORM\JoinTable(name="users_edgroups",
     *      joinColumns={@ORM\JoinColumn(name="user_id", referencedColumnName="id")},
     *      inverseJoinColumns={@ORM\JoinColumn(name="edgroup_id", referencedColumnName="id", unique=true)}
     *      )
     **/
    private $users;

    public function __construct()
    {
        $this->creationDate = new \DateTime("now");
        $this->users = new \Doctrine\Common\Collections\ArrayCollection();
        $this->api = array();
    }

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

    /**<commit_msg>bugfix unique key<commit_after><?php

namespace Explee\EdmodoBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * EdGroup
 *
 * @ORM\Table()
 * @ORM\Entity(repositoryClass="Explee\EdmodoBundle\Entity\EdGroupRepository")
 */
class EdGroup
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var string
     *
     * @ORM\Column(name="edId", type="string", length=255)
     */
    private $edId;

    /**
     * @var string
     *
     * @ORM\Column(name="licenseCode", type="string", length=255, nullable=true)
     */
    private $licenseCode;

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

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="expirationDate", type="datetime", nullable=true)
     */
    private $expirationDate;


    /**
     * @var array
     *
     * @ORM\Column(name="Api", type="array", nullable=true)
     */
    private $api;

    /**
     * @ORM\ManyToOne(targetEntity="Explee\EdmodoBundle\Model\EdmodoUserInterface", cascade={"persist"})
     * @ORM\JoinColumn(name="owner_id", referencedColumnName="id")
     */
    private $owner;

     /**
     * @ORM\ManyToMany(targetEntity="Explee\EdmodoBundle\Model\EdmodoUserInterface", inversedBy="edGroups", cascade={"persist"})
     * @ORM\JoinTable(name="users_edgroups",
     *      joinColumns={@ORM\JoinColumn(name="edgroup_id", referencedColumnName="id")},
     *      inverseJoinColumns={@ORM\JoinColumn(name="user_id", referencedColumnName="id")}
     *      )
     **/
    private $users;

    public function __construct()
    {
        $this->creationDate = new \DateTime("now");
        $this->users = new \Doctrine\Common\Collections\ArrayCollection();
        $this->api = array();
    }

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

    /**
{'fraction_non_alphanumeric': 0.1709527308351702, 'fraction_numerical': 0.0029390154298310064, 'mean_word_length': 2.545138888888889, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '3052722', 'n_tokens_mistral': 1389, 'n_tokens_neox': 1334, 'n_words': 185}