<commit_before><?php

namespace TuneMaps\RecommendationBundle\Entity;

use FOS\UserBundle\Entity\User as BaseUser;
use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\ArrayCollection as ArrayCollection;

/**
 * @ORM\Entity
 * @ORM\Table(name="tunemaps_artist")
 */
class Artist implements \JsonSerializable 
{
    /**
     * @ORM\Id
     * @ORM\Column(type="string", length=40)
     */
    protected $id;
	
	/**
	 * @ORM\Column(type="string", length=255, unique=true)
	 */
	protected $name;
	
	/**
	 * @ORM\OneToMany(targetEntity="Song", mappedBy="artist")
	 */
	protected $songs;
	
	/**
	 * @ORM\ManyToMany(targetEntity="Event", mappedBy="attendingArtists")
	 */
	protected $events;
	
	public function __construct() {
		$songs = new ArrayCollection();
	}
	
	public function getName() {
		return $this->name;
	}
	
	public function setName($name) {
		$this->name = $name;
	}
	
	public function getSongs() {
		return $this->songs;
	}
	
	public function setSongs($songs) {
		$this->songs = $songs;
	}
	
	public function getEvents() {
		return $this->events;
	}
	
	public function setEvents($events) {<commit_msg>Restored getters and setters for id<commit_after><?php

namespace TuneMaps\RecommendationBundle\Entity;

use FOS\UserBundle\Entity\User as BaseUser;
use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\ArrayCollection as ArrayCollection;

/**
 * @ORM\Entity
 * @ORM\Table(name="tunemaps_artist")
 */
class Artist implements \JsonSerializable 
{
    /**
     * @ORM\Id
     * @ORM\Column(type="string", length=40)
     */
    protected $id;
	
	/**
	 * @ORM\Column(type="string", length=255, unique=true)
	 */
	protected $name;
	
	/**
	 * @ORM\OneToMany(targetEntity="Song", mappedBy="artist")
	 */
	protected $songs;
	
	/**
	 * @ORM\ManyToMany(targetEntity="Event", mappedBy="attendingArtists")
	 */
	protected $events;
	
	public function getId() {
		return $this->id;
	}
	
	public function setId($id) {
		$this->id = $id;
	}
	
	public function __construct() {
		$songs = new ArrayCollection();
	}
	
	public function getName() {
		return $this->name;
	}
	
	public function setName($name) {
		$this->name = $name;
	}
	
	public function getSongs() {
		return $this->songs;
	}
	
	public function setSongs($songs) {
		$this->songs = $songs;
	}
	
	public function getEvents() {
		return $this->events;
	}
	
	public function setEvents($events) {
{'fraction_non_alphanumeric': 0.1538785834738617, 'fraction_numerical': 0.0042158516020236085, 'mean_word_length': 3.755511022044088, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '3865822', 'n_tokens_mistral': 883, 'n_tokens_neox': 800, 'n_words': 161}