<commit_before><?php
class Kwc_Basic_ImageEnlarge_Trl_Image_Component
    extends Kwc_Abstract_Image_Trl_Image_Component
{
    public function getImageData()
    {
        $c = $this->getData()->parent->getChildComponent('-linkTag');
        if (is_instance_of($c->componentClass, 'Kwc_Basic_LinkTag_Trl_Component')) {
            $c = $c->getChildComponent('-link');
        }
        if (is_instance_of($c->componentClass, 'Kwc_Basic_ImageEnlarge_EnlargeTag_Trl_Component')
            && Kwc_Abstract::getSetting($c->chained->componentClass, 'alternativePreviewImage')
        ) {
            if ($c->getComponent()->getRow()->own_image) {
                return $c->getChildComponent('-image')->getComponent()->getOwnImageData();
            }
            if ($c->chained->getComponent()->getRow()->preview_image) {
                return $this->getData()->parent->chained->getComponent()->getImageData();
            }
        }

        if ($this->getData()->parent->getComponent()->getRow()->own_image) {
            return parent::getImageData();
        }
<commit_msg>fix trl: child-component name has changed<commit_after><?php
class Kwc_Basic_ImageEnlarge_Trl_Image_Component
    extends Kwc_Abstract_Image_Trl_Image_Component
{
    public function getImageData()
    {
        $c = $this->getData()->parent->getChildComponent('-linkTag');
        if (is_instance_of($c->componentClass, 'Kwc_Basic_LinkTag_Trl_Component')) {
            $c = $c->getChildComponent('-child');
        }
        if (is_instance_of($c->componentClass, 'Kwc_Basic_ImageEnlarge_EnlargeTag_Trl_Component')
            && Kwc_Abstract::getSetting($c->chained->componentClass, 'alternativePreviewImage')
        ) {
            if ($c->getComponent()->getRow()->own_image) {
                return $c->getChildComponent('-image')->getComponent()->getOwnImageData();
            }
            if ($c->chained->getComponent()->getRow()->preview_image) {
                return $this->getData()->parent->chained->getComponent()->getImageData();
            }
        }

        if ($this->getData()->parent->getComponent()->getRow()->own_image) {
            return parent::getImageData();
        }

{'fraction_non_alphanumeric': 0.1548327989005955, 'fraction_numerical': 0.0, 'mean_word_length': 2.9637023593466423, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 59, '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': '5208278', 'n_tokens_mistral': 630, 'n_tokens_neox': 633, 'n_words': 69}