<commit_before><?php
namespace SimplyTestable\ApiBundle\Entity\Account\Plan;

use Doctrine\ORM\Mapping as ORM;

/**
 * 
 * @ORM\Entity
 * @ORM\Table(
 *     name="AccountPlanConstraint"
 * )
 */
class Constraint
{
    
    /**
     * 
     * @var integer
     * 
     * @ORM\Id
     * @ORM\Column(type="integer")
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;  
    

    /**
     *
     * @var string
     * @ORM\Column(type="string", unique=true)
     */
    private $name;
    
    
    /**
     * 
     * @var integer
     * 
     * @ORM\Column(type="integer", nullable=true, name="limit_threshold")
     */  
    private $limit = null; 
    
    
    /**
     *
     * @var boolean
     * @ORM\Column(type="boolean")
     */    
    private $isAvailable = true;
    

    /**
     *
     * @var SimplyTestable\ApiBundle\Entity\Account\Plan\Plan
     * 
     * @ORM\ManyToOne(targetEntity="SimplyTestable\ApiBundle\Entity\Account\Plan\Plan", inversedBy="constraints")
     * @ORM\JoinColumn(name="constraint_id", referencedColumnName="id", nullable=false)     
     */  
    private $plan;
    

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

    /**
     * Set name
     *
     * @param string $name
     * @return Constraint
     */
    public function setName($name)
    {
        $this->name = $name;
    
        return $this;
    }

    /**
     * Get name
     *
     * @return string 
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Set limit
     *
     * @param integer $limit
     * @return Constraint
     */
    public function setLimit($limit)
    {
        $this->limit = $limit;
    
        return $this;
    }

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

    /**
     * Set isAvailable
     *
     * @param boolean $isAvailable
     * @return Constraint
     */
    public function setIsAvailable($isAvailable)
    {
        $this->isAvailable = $isAvailable;
    
        return $this;
    }

    /**
     * Get isAvailable
     *
     * @return boolean 
     */
    public function getIsAvailable()
    {
        return $this->isAvailable;
    }
}<commit_msg>Add getter/setter for constraint plan<commit_after><?php
namespace SimplyTestable\ApiBundle\Entity\Account\Plan;

use Doctrine\ORM\Mapping as ORM;

/**
 * 
 * @ORM\Entity
 * @ORM\Table(
 *     name="AccountPlanConstraint"
 * )
 */
class Constraint
{
    
    /**
     * 
     * @var integer
     * 
     * @ORM\Id
     * @ORM\Column(type="integer")
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;  
    

    /**
     *
     * @var string
     * @ORM\Column(type="string", unique=true)
     */
    private $name;
    
    
    /**
     * 
     * @var integer
     * 
     * @ORM\Column(type="integer", nullable=true, name="limit_threshold")
     */  
    private $limit = null; 
    
    
    /**
     *
     * @var boolean
     * @ORM\Column(type="boolean")
     */    
    private $isAvailable = true;
    

    /**
     *
     * @var SimplyTestable\ApiBundle\Entity\Account\Plan\Plan
     * 
     * @ORM\ManyToOne(targetEntity="SimplyTestable\ApiBundle\Entity\Account\Plan\Plan", inversedBy="constraints")
     * @ORM\JoinColumn(name="constraint_id", referencedColumnName="id", nullable=true)     
     */  
    private $plan;
    

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

    /**
     * Set name
     *
     * @param string $name
     * @return Constraint
     */
    public function setName($name)
    {
        $this->name = $name;
    
        return $this;
    }

    /**
     * Get name
     *
     * @return string 
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Set limit
     *
     * @param integer $limit
     * @return Constraint
     */
    public function setLimit($limit)
    {
        $this->limit = $limit;
    
        return $this;
    }

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

    /**
     * Set isAvailable
     *
     * @param boolean $isAvailable
     * @return Constraint
     */
    public function setIsAvailable($isAvailable)
    {
        $this->isAvailable = $isAvailable;
    
        return $this;
    }

    /**
     * Get isAvailable
     *
     * @return boolean 
     */
    public function getIsAvailable()
    {
        return $this->isAvailable;
    }

    /**
     * Set plan
     *
     * @param SimplyTestable\ApiBundle\Entity\Account\Plan\Plan $plan
     * @return Constraint
     */
    public function setPlan(\SimplyTestable\ApiBundle\Entity\Account\Plan\Plan $plan = null)
    {
        $this->plan = $plan;
    
        return $this;
    }

    /**
     * Get plan
     *
     * @return SimplyTestable\ApiBundle\Entity\Account\Plan\Plan 
     */
    public function getPlan()
    {
        return $this->plan;
    }
}
{'fraction_non_alphanumeric': 0.1356393315196269, 'fraction_numerical': 0.0, 'mean_word_length': 1.5981827359919232, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 19, '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': '6646726', 'n_tokens_mistral': 1673, 'n_tokens_neox': 1628, 'n_words': 281}