<commit_before><?php

namespace GenyBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use JMS\Serializer\Annotation as Serializer;

/**
 * Data
 *
 * @ORM\Table("geny_data")
 * @ORM\Entity(repositoryClass="GenyBundle\Repository\DataRepository")
 */
class Data {

    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var Form
     *
     * @ORM\ManyToOne(targetEntity="Form", inversedBy="datas")
     * @ORM\JoinColumn(name="form_id", referencedColumnName="id", onDelete="cascade")
     * @Serializer\Exclude
     */
    protected $form;

    /**
     * @var array
     *
     * @ORM\Column(name="data", type="json_array", nullable=true)
     * 
     * @Serializer\Type("array")
     */
    protected $data = [];

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="updated_at", type="datetime")
     */
    private $updatedAt;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="created_at", type="datetime")
     */
    private $createdAt;

    public function __construct() {
        $this->createdAt = new \Datetime();
    }

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

    /**
     * Get form
     *
     * @return Form
     */
    public function getForm() {
        return $this->form;
    }

    /**
     * Set form
     *
     * @param Form $form
     *
     * @return Data
     */
    public function setForm($form) {
        $this->form = $form;

        return $this;
    }

    /**
     * Get data
     *
     * @return array
     */
    public function getData() {
        return $this->data;
    }

    /**
     * Set set_id
     *
     * @param array $data
     *
     * @return Data
     */
    public function setData($data = null) {
        $this->data = $data;

        return $this;
    }

    /**
     * Set updatedAt
     *
     * @param \DateTime $updatedAt
     *
     * @return Data
     */
    public function setUpdatedAt($updatedAt) {
        $this->updatedAt = $updatedAt;

        return $this;
    }

    /**
     * Get updatedAt<commit_msg>setData of Data entity sets the updatedAt as well<commit_after><?php

namespace GenyBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use JMS\Serializer\Annotation as Serializer;

/**
 * Data
 *
 * @ORM\Table("geny_data")
 * @ORM\Entity(repositoryClass="GenyBundle\Repository\DataRepository")
 */
class Data {

    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var Form
     *
     * @ORM\ManyToOne(targetEntity="Form", inversedBy="datas")
     * @ORM\JoinColumn(name="form_id", referencedColumnName="id", onDelete="cascade")
     * @Serializer\Exclude
     */
    protected $form;

    /**
     * @var array
     *
     * @ORM\Column(name="data", type="json_array", nullable=true)
     * 
     * @Serializer\Type("array")
     */
    protected $data = [];

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="updated_at", type="datetime")
     */
    private $updatedAt;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="created_at", type="datetime")
     */
    private $createdAt;

    public function __construct() {
        $this->createdAt = new \Datetime();
    }

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

    /**
     * Get form
     *
     * @return Form
     */
    public function getForm() {
        return $this->form;
    }

    /**
     * Set form
     *
     * @param Form $form
     *
     * @return Data
     */
    public function setForm($form) {
        $this->form = $form;

        return $this;
    }

    /**
     * Get data
     *
     * @return array
     */
    public function getData() {
        return $this->data;
    }

    /**
     * Set set_id
     *
     * @param array $data
     *
     * @return Data
     */
    public function setData($data = null) {
        $this->updatedAt = new \Datetime();
        $this->data = $data;

        return $this;
    }

    /**
     * Set updatedAt
     *
     * @param \DateTime $updatedAt
     *
     * @return Data
     */
    public function setUpdatedAt($updatedAt) {
        $this->updatedAt = $updatedAt;

        return $this;
    }

    /**
     * Get updatedAt
{'fraction_non_alphanumeric': 0.15357142857142858, 'fraction_numerical': 0.0, 'mean_word_length': 1.7711811997526283, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 18, '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': '1624774', 'n_tokens_mistral': 1472, 'n_tokens_neox': 1435, 'n_words': 274}