<commit_before><?php

namespace Terramar\Packages\Model;

class Package implements \Serializable
{
    private $name;
    
    private $description;

    /**
     * @return mixed
     */
    public function getDescription()
    {
        return $this->description;
    }

    /**
     * @param mixed $description
     */
    public function setDescription($description)
    {
        $this->description = $description;
    }

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

    /**
     * @param mixed $name
     */
    public function setName($name)
    {
        $this->name = $name;
    }
    
    /**
     * @return string
     */
    public function serialize()
    {
        return serialize(array(
                'name' => $this->name,
                'description' => $this->description
            ));
    }

    /**
     * @param string $serialized
     */
    public function unserialize($serialized)
    {
        $data = unserialize($serialized);
        
        $this->name = $data['name'];<commit_msg>Added ID to Package model<commit_after><?php

namespace Terramar\Packages\Model;

class Package implements \Serializable
{
    private $id;
    
    private $name;
    
    private $description;

    /**
     * @param mixed $id
     */
    public function setId($id)
    {
        $this->id = $id;
    }

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

    /**
     * @return mixed
     */
    public function getDescription()
    {
        return $this->description;
    }

    /**
     * @param mixed $description
     */
    public function setDescription($description)
    {
        $this->description = $description;
    }

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

    /**
     * @param mixed $name
     */
    public function setName($name)
    {
        $this->name = $name;
    }
    
    /**
     * @return string
     */
    public function serialize()
    {
        return serialize(array(
                'id' => $this->id,
                'name' => $this->name,
                'description' => $this->description
            ));
    }

    /**
     * @param string $serialized
     */
    public function unserialize($serialized)
    {
        $data = unserialize($serialized);
        
        $this->id = $data['id'];
        $this->name = $data['name'];
{'fraction_non_alphanumeric': 0.1359773371104816, 'fraction_numerical': 0.0, 'mean_word_length': 1.5696465696465696, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 26, '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': '3939760', 'n_tokens_mistral': 725, 'n_tokens_neox': 711, 'n_words': 148}