<commit_before><?php

namespace Scavenger\WebserviceBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use \Doctrine\ORM\Mapping\OneToMany;
use \Doctrine\ORM\Mapping\ManyToMany;
use \Doctrine\ORM\Mapping\JoinTable;
use \Doctrine\ORM\Mapping\JoinColumn;

use \Scavenger\WebserviceBundle\Entity\UserLocation;

/**
 * Scavenger\WebserviceBundle\Entity\User
 *
 * @ORM\Table()
 * @ORM\Entity(repositoryClass="Scavenger\WebserviceBundle\Entity\UserRepository")
 */
class User
{
    /**
     * @var integer $id
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

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

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

    /**
     * @OneToMany(targetEntity="Scavenger\WebserviceBundle\Entity\UserLocation", mappedBy="user", cascade={"all"})
     * @JoinColumn(name="user_id", referencedColumnName="id")
     */
    private $locations;

    /**
     * @ManyToMany(targetEntity="Scavenger\WebserviceBundle\Entity\Session", inversedBy="users", cascade={"all"})
     */
    private $sessions;

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

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

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

    /**
     * Set device_id
     *
     * @param string $deviceId
     */
    public function setDeviceId($deviceId)
    {
        $this->device_id = $deviceId;
    }

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

    /**
     * @return \Scavenger\WebserviceBundle\Entity\Location[]
     */
    public function getLocations()
    {
        return $this->locations;
    }

    /**
     * @return \Scavenger\WebserviceBundle\Entity\Session[]
     */
    public function getSessions()
    {
        return $this->sessions;
    }

    public function setSessions($sessions)
    {
        $this->sessions = $sessions;
    }

    public function setLocations($location)
    {
        $this->locations = $location;
    }
}<commit_msg>add image as longtext in user entity<commit_after><?php

namespace Scavenger\WebserviceBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use \Doctrine\ORM\Mapping\OneToMany;
use \Doctrine\ORM\Mapping\ManyToMany;
use \Doctrine\ORM\Mapping\JoinTable;
use \Doctrine\ORM\Mapping\JoinColumn;

use \Scavenger\WebserviceBundle\Entity\UserLocation;

/**
 * Scavenger\WebserviceBundle\Entity\User
 *
 * @ORM\Table()
 * @ORM\Entity(repositoryClass="Scavenger\WebserviceBundle\Entity\UserRepository")
 */
class User
{
    /**
     * @var integer $id
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

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

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

    /**
     * @OneToMany(targetEntity="Scavenger\WebserviceBundle\Entity\UserLocation", mappedBy="user", cascade={"all"})
     * @JoinColumn(name="user_id", referencedColumnName="id")
     */
    private $locations;

    /**
     * @ManyToMany(targetEntity="Scavenger\WebserviceBundle\Entity\Session", inversedBy="users", cascade={"all"})
     */
    private $sessions;
    
    /**
     * @var string $image
     *
     * @ORM\Column(name="image", type="text", nullable="true")
     */
    private $image;

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

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

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

    /**
     * Set device_id
     *
     * @param string $deviceId
     */
    public function setDeviceId($deviceId)
    {
        $this->device_id = $deviceId;
    }

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

    /**
     * @return \Scavenger\WebserviceBundle\Entity\Location[]
     */
    public function getLocations()
    {
        return $this->locations;
    }

    /**
     * @return \Scavenger\WebserviceBundle\Entity\Session[]
     */
    public function getSessions()
    {
        return $this->sessions;
    }

    public function setSessions($sessions)
    {
        $this->sessions = $sessions;
    }

    public function setLocations($location)
    {
        $this->locations = $location;
    }
    
    public function getImage()
    {
        return $this->image;
    }
    
    public function setImage($image)
    {
        $this->image = $image;
    }
    
}
{'fraction_non_alphanumeric': 0.1468884320687722, 'fraction_numerical': 0.0022425714819659876, 'mean_word_length': 2.1519434628975267, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 23, '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': '406159', 'n_tokens_mistral': 1772, 'n_tokens_neox': 1718, 'n_words': 284}