<commit_before><?php

/**
 * Spotify API Bundle for Symfony2
 * 
 * @author <NAME> <<EMAIL>>
 * @since 2013
 */

namespace Mmoreram\SpotifyApiBundle\Entity;


/**
 * Spotify Track entity
 */
class SpotifyTrack extends SpotifyEntityBase
{

    /**
     * Artist
     * 
     * @var Mmoreram\SpotifyApiBundle\Entity\SpotifyArtist
     */
    protected $artist;


    /**
     * Track Album
     * 
     * @var Mmoreram\SpotifyApiBundle\Entity\SpotifyAlbum
     */
    protected $album;


    /**
     * Territories
     * 
     * @var array
     */
    protected $territories;


    /**
     * Track number
     * 
     * @var integer
     */
    protected $trackNumber;


    /**
     * Lnegth
     * 
     * @var integer
     */
    protected $length;


    /**
     * Return Artist
     * 
     * @return SpotifyArtist Artist stored
     */
    public function getArtist()
    {

        return $this->artist;
    }


    /**
     * Store locally Artist
     * 
     * @param SpotifyAlbum $artist Artist to set
     * 
     * @return SpotifyAlbum self Object
     */
    public function setArtist(SpotifyArtist $artist = null)
    {
        $this->artist = $artist;

        return $this;
    }


    /**
     * Get artist album
     * 
     * @return SpotifyAlbum album
     */
    public function getAlbum()
    {
        return $this->album;
    }


    /**
     * Set album
     * 
     * @param SpotifyAlbum $album Album to set
     * 
     * @return SpotifyTrack self Object
     */
    public function setAlbum($album)
    {
        $this->album = $album;

        return $this;
    }


    /**
     * Get territories where this album is available
     * 
     * @return array Territories
     */
    public function getTerritories()
    {

        return $this->territories;
    }


    /**
     * Return if Albus is available to desired territory
     * 
     * @param String $territory Territory
     * 
     * @return boolean Is available
     */
    public function hasTerritory($territory)
    {

        return is_array($this->territories) && in_array($territory, $this->territories);
    }


    /**
     * Store locally territories
     * 
     * @param array $territories Territories to set
     * 
     * @return SpotifyTrack self Object
     */
    public function setTerritories($territories)
    {
        $this->territories = $territories;

        return $this;
    }


    /**
     * Return track number
     * 
     * @return integer track number
     */
    public function getTrackNumber()
    {

        return $this->trackNumber;
    }

    /**
     * Sets track number
     * 
     * @param integer $trackNumber Track number
     * 
     * @return SpotifyTrack self Object
     */
    public function setTrackNumber($trackNumber)
    {
        $this->trackNumber = $trackNumber;

        return $this;
    }


    /**
     * Return length
     * 
     * @return integer Length
     */
    public function getLength()
    {
        return $this->length;
    }

    /**
     * Sets lentgh
     * 
     * @param integer $length Track length
     * 
     * @return SpotifyTrack self Object
     */
    public function setLength($length)
    {
        $this->length = $lentgh;

        return $this;
    }

}<commit_msg>Correct  in<commit_after><?php

/**
 * Spotify API Bundle for Symfony2
 * 
 * @author <NAME> <<EMAIL>>
 * @since 2013
 */

namespace Mmoreram\SpotifyApiBundle\Entity;


/**
 * Spotify Track entity
 */
class SpotifyTrack extends SpotifyEntityBase
{

    /**
     * Artist
     * 
     * @var Mmoreram\SpotifyApiBundle\Entity\SpotifyArtist
     */
    protected $artist;


    /**
     * Track Album
     * 
     * @var Mmoreram\SpotifyApiBundle\Entity\SpotifyAlbum
     */
    protected $album;


    /**
     * Territories
     * 
     * @var array
     */
    protected $territories;


    /**
     * Track number
     * 
     * @var integer
     */
    protected $trackNumber;


    /**
     * Lnegth
     * 
     * @var integer
     */
    protected $length;


    /**
     * Return Artist
     * 
     * @return SpotifyArtist Artist stored
     */
    public function getArtist()
    {

        return $this->artist;
    }


    /**
     * Store locally Artist
     * 
     * @param SpotifyAlbum $artist Artist to set
     * 
     * @return SpotifyAlbum self Object
     */
    public function setArtist(SpotifyArtist $artist = null)
    {
        $this->artist = $artist;

        return $this;
    }


    /**
     * Get artist album
     * 
     * @return SpotifyAlbum album
     */
    public function getAlbum()
    {
        return $this->album;
    }


    /**
     * Set album
     * 
     * @param SpotifyAlbum $album Album to set
     * 
     * @return SpotifyTrack self Object
     */
    public function setAlbum($album)
    {
        $this->album = $album;

        return $this;
    }


    /**
     * Get territories where this album is available
     * 
     * @return array Territories
     */
    public function getTerritories()
    {

        return $this->territories;
    }


    /**
     * Return if Albus is available to desired territory
     * 
     * @param String $territory Territory
     * 
     * @return boolean Is available
     */
    public function hasTerritory($territory)
    {

        return is_array($this->territories) && in_array($territory, $this->territories);
    }


    /**
     * Store locally territories
     * 
     * @param array $territories Territories to set
     * 
     * @return SpotifyTrack self Object
     */
    public function setTerritories($territories)
    {
        $this->territories = $territories;

        return $this;
    }


    /**
     * Return track number
     * 
     * @return integer track number
     */
    public function getTrackNumber()
    {

        return $this->trackNumber;
    }

    /**
     * Sets track number
     * 
     * @param integer $trackNumber Track number
     * 
     * @return SpotifyTrack self Object
     */
    public function setTrackNumber($trackNumber)
    {
        $this->trackNumber = $trackNumber;

        return $this;
    }


    /**
     * Return length
     * 
     * @return integer Length
     */
    public function getLength()
    {
        return $this->length;
    }

    /**
     * Sets lentgh
     * 
     * @param integer $length Track length
     * 
     * @return SpotifyTrack self Object
     */
    public function setLength($length)
    {
        $this->length = $length;

        return $this;
    }

}
{'fraction_non_alphanumeric': 0.10570107858243452, 'fraction_numerical': 0.0015408320493066256, 'mean_word_length': 1.676701030927835, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 33, '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': '80769', 'n_tokens_mistral': 2072, 'n_tokens_neox': 1883, 'n_words': 455}