<commit_before><?php

namespace CanalTP\MttBundle\Entity;

/**
 * AbstractEntity
 */
abstract class AbstractEntity
{
    /**
     * @var datetime $created
     */
    protected $created;

    /**
     * @var datetime $updated
     */
    protected $updated;

    /**
     * Get creation date
     *
     * @return DateTime
     */
    public function getCreated()
    {
        return $this->created;
    }

    /**
     * Get updated date
     *
     * @return DateTime
     */
    public function getUpdated()
    {
        return $this->updated;
    }

    public function __clone()
    {
        $this->created = new \DateTime();
        $this->updated = new \DateTime();
    }
}<commit_msg>added setUpdated method<commit_after><?php

namespace CanalTP\MttBundle\Entity;

/**
 * AbstractEntity
 */
abstract class AbstractEntity
{
    /**
     * @var datetime $created
     */
    protected $created;

    /**
     * @var datetime $updated
     */
    protected $updated;

    /**
     * Get creation date
     *
     * @return DateTime
     */
    public function getCreated()
    {
        return $this->created;
    }

    /**
     * Set updated date
     *
     * @param \Datetime $date The updated date
     */
    public function setUpdated($date)
    {
        $this->updated = $date;
    }

    /**
     * Get updated date
     *
     * @return DateTime
     */
    public function getUpdated()
    {
        return $this->updated;
    }

    public function __clone()
    {
        $this->created = new \DateTime();
        $this->updated = new \DateTime();
    }
}
{'fraction_non_alphanumeric': 0.12809131261889664, 'fraction_numerical': 0.0, 'mean_word_length': 1.7301038062283738, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 12, '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': '7427914', 'n_tokens_mistral': 462, 'n_tokens_neox': 453, 'n_words': 108}