<commit_before><?php

namespace App\Transformers\Inbound\Collections;

use App\Transformers\Datum;
use App\Transformers\Inbound\CollectionsTransformer;

class Asset extends CollectionsTransformer
{

    protected function getIds(Datum $datum)
    {
        return  [
            'lake_guid' => $datum->id,
        ];
    }

    protected function getDates(Datum $datum)
    {
        $dates = parent::getDates($datum);

        return array_merge($dates, [
            'content_modified_at' => $datum->date('content_modified_at'),
        ]);
    }

    protected function getSync(Datum $datum, $test = false)
    {
        return [
            'imagedArtworks' => $this->getSyncAssetOf($datum, 'rep_of_artworks'),
            'imagedExhibitions' => $this->getSyncAssetOf($datum, 'rep_of_exhibitions'),
            'documentedArtworks' => $this->getSyncAssetOf($datum, 'doc_of_artworks'),
            'documentedExhibitions' => $this->getSyncAssetOf($datum, 'doc_of_exhibitions'),
        ];<commit_msg>Disable import of `content_modified_at` for assets [WEB-1870]<commit_after><?php

namespace App\Transformers\Inbound\Collections;

use App\Transformers\Datum;
use App\Transformers\Inbound\CollectionsTransformer;

class Asset extends CollectionsTransformer
{

    protected function getIds(Datum $datum)
    {
        return  [
            'lake_guid' => $datum->id,
        ];
    }

    // Unfortunately, NetX does not provide this data:
    // protected function getDates(Datum $datum)
    // {
    //     $dates = parent::getDates($datum);

    //     return array_merge($dates, [
    //         'content_modified_at' => $datum->date('content_modified_at'),
    //     ]);
    // }

    protected function getSync(Datum $datum, $test = false)
    {
        return [
            'imagedArtworks' => $this->getSyncAssetOf($datum, 'rep_of_artworks'),
            'imagedExhibitions' => $this->getSyncAssetOf($datum, 'rep_of_exhibitions'),
            'documentedArtworks' => $this->getSyncAssetOf($datum, 'doc_of_artworks'),
            'documentedExhibitions' => $this->getSyncAssetOf($datum, 'doc_of_exhibitions'),
        ];
{'fraction_non_alphanumeric': 0.13380281690140844, 'fraction_numerical': 0.0018779342723004694, 'mean_word_length': 2.953617810760668, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 27, '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': '969417', 'n_tokens_mistral': 678, 'n_tokens_neox': 665, 'n_words': 107}