<commit_before><?php

namespace ChartBlocks\Entity;

use ChartBlocks\Chart\Config;

class Chart extends AbstractEntity {

    protected $id;
    protected $config;
    protected $creator;
    protected $images;
    protected $totalViews;
    protected $createdAt;
    protected $updatedAt;
    protected $publicUrl;

    public function setData($data) {
        if (array_key_exists('id', $data)) {
            $this->setId($data['id']);
        }

        if (array_key_exists('name', $data)) {
            $this->setName($data['name']);
        }

        if (array_key_exists('images', $data)) {
            $this->setImages($data['images']);
        }

        if (array_key_exists('config', $data)) {
            $this->setConfig($data['config']);
        }

        if (array_key_exists('totalViews', $data)) {
            $this->setTotalViews($data['totalViews']);
        }

        if (array_key_exists('publicUrl', $data)) {
            $this->setPublicUrl($data['publicUrl']);
        }

        if (array_key_exists('createdAt', $data)) {
            $this->setCreatedAt($data['createdAt']);
        }

        if (array_key_exists('creator', $data)) {
            $this->setCreator(new Profile($this->getRepository(), $data['creator']));
        }

        return parent::setData($data);
    }

    public function setPublicUrl($publicUrl) {
        $this->publicUrl = $publicUrl;
        return $this;<commit_msg>set updatedAt on config set<commit_after><?php

namespace ChartBlocks\Entity;

use ChartBlocks\Chart\Config;

class Chart extends AbstractEntity {

    protected $id;
    protected $config;
    protected $creator;
    protected $images;
    protected $totalViews;
    protected $createdAt;
    protected $updatedAt;
    protected $publicUrl;

    public function setData($data) {
        if (array_key_exists('id', $data)) {
            $this->setId($data['id']);
        }

        if (array_key_exists('name', $data)) {
            $this->setName($data['name']);
        }

        if (array_key_exists('images', $data)) {
            $this->setImages($data['images']);
        }

        if (array_key_exists('config', $data)) {
            $this->setConfig($data['config']);
        }

        if (array_key_exists('totalViews', $data)) {
            $this->setTotalViews($data['totalViews']);
        }

        if (array_key_exists('publicUrl', $data)) {
            $this->setPublicUrl($data['publicUrl']);
        }

        if (array_key_exists('createdAt', $data)) {
            $this->setCreatedAt($data['createdAt']);
        }
        if (array_key_exists('updatedAt', $data)) {
            $this->setUpdatedAt($data['updatedAt']);
        }

        if (array_key_exists('creator', $data)) {
            $this->setCreator(new Profile($this->getRepository(), $data['creator']));
        }

        return parent::setData($data);
    }

    public function setPublicUrl($publicUrl) {
        $this->publicUrl = $publicUrl;
        return $this;
{'fraction_non_alphanumeric': 0.1585652028159571, 'fraction_numerical': 0.0, 'mean_word_length': 2.469767441860465, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 24, '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': '5428162', 'n_tokens_mistral': 884, 'n_tokens_neox': 862, 'n_words': 149}