<commit_before><?php

namespace Opifer\EavBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
* DateTimeValue
*
* @ORM\Entity
*/
class DateTimeValue extends Value
{
    /**
    * Turn value into string for form field value purposes
    *
    * @return string
    */
    public function __toString()
    {
        return (string) $this->getTimestamp();
    }

    /**
     * Get value
     *
     * @return \DateTime
     */
    public function getValue()
    {
        return new \DateTime("@".$this->value);
    }

    /**
     * Set value
     *
     * @param \DateTime $value
     *
     * @return DateTimeValue
     */
    public function setValue($value)
    {
        $this->value = $value->getTimestamp();

        return $this;
    }

    /**
     * Get raw value
     *
     * @return string
     */
    public function getTimestamp()
    {
        return $this->value;
    }
}<commit_msg>Fixed changing value to DateTime<commit_after><?php

namespace Opifer\EavBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
* DateTimeValue
*
* @ORM\Entity
*/
class DateTimeValue extends Value
{
    /**
    * Turn value into string for form field value purposes
    *
    * @return string
    */
    public function __toString()
    {
        return (string) $this->getTimestamp();
    }

    /**
     * Get value
     *
     * @return \DateTime
     */
    public function getValue()
    {
        $datetime = new \DateTime();

        return $datetime->setTimestamp($this->value);
    }

    /**
     * Set value
     *
     * @param \DateTime $value
     *
     * @return DateTimeValue
     */
    public function setValue($value)
    {
        $this->value = $value->getTimestamp();

        return $this;
    }

    /**
     * Get raw value
     *
     * @return string
     */
    public function getTimestamp()
    {
        return $this->value;
    }
}
{'fraction_non_alphanumeric': 0.12775093934514226, 'fraction_numerical': 0.0, 'mean_word_length': 1.8199697428139183, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 14, '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': '1273118', 'n_tokens_mistral': 562, 'n_tokens_neox': 553, 'n_words': 134}