<commit_before><?php
class Vpc_Basic_LinkTag_Extern_Data extends Vps_Component_Data
{
    private $_linkRow;
    private function _getLinkRow()
    {
        if (!isset($this->_linkRow)) {
            $m = Vpc_Abstract::createModel($this->componentClass);
            $this->_linkRow = $m->getRow($this->dbId);
        }
        return $this->_linkRow;
    }
    public function __get($var)
    {
        if ($var == 'url') {
            return $this->_getLinkRow()->target;
        } else if ($var == 'rel') {
            $ret = '';
            $row = $this->_getLinkRow();
            if ($row->open_type == 'popup') {
                $pop = array();
                if ($row->width) $pop[] = 'width='.$row->width;
                if ($row->height) $pop[] = 'height='.$row->height;
                $pop[] = 'menubar='.($row->menubar ? 'yes' : 'no');
                $pop[] = 'toolbar='.($row->toolbar ? 'yes' : 'no');
                $pop[] = 'location='.($row->locationbar ? 'yes' : 'no');
                $pop[] = 'status='.($row->statusbar ? 'yes' : 'no');
                $pop[] = 'scrollbars='.($row->scrollbars ? 'yes' : 'no');
                $pop[] = 'resizable='.($row->resizable ? 'yes' : 'no');
                $ret = 'popup_'.implode(',', $pop);
            } else if ($row->open_type == 'blank') {
                $ret = 'popup_blank';
            }
            return $ret;
        } else {<commit_msg>LinkExtern: Falls es Row nicht gibt, bei Url nichts zurückgeben<commit_after><?php
class Vpc_Basic_LinkTag_Extern_Data extends Vps_Component_Data
{
    private $_linkRow;
    private function _getLinkRow()
    {
        if (!isset($this->_linkRow)) {
            $m = Vpc_Abstract::createModel($this->componentClass);
            $this->_linkRow = $m->getRow($this->dbId);
        }
        return $this->_linkRow;
    }
    public function __get($var)
    {
        if ($var == 'url') {
            $row = $this->_getLinkRow();
            if (!$row) return '';
            return $row->target;
        } else if ($var == 'rel') {
            $ret = '';
            $row = $this->_getLinkRow();
            if (!$row) return '';
            if ($row->open_type == 'popup') {
                $pop = array();
                if ($row->width) $pop[] = 'width='.$row->width;
                if ($row->height) $pop[] = 'height='.$row->height;
                $pop[] = 'menubar='.($row->menubar ? 'yes' : 'no');
                $pop[] = 'toolbar='.($row->toolbar ? 'yes' : 'no');
                $pop[] = 'location='.($row->locationbar ? 'yes' : 'no');
                $pop[] = 'status='.($row->statusbar ? 'yes' : 'no');
                $pop[] = 'scrollbars='.($row->scrollbars ? 'yes' : 'no');
                $pop[] = 'resizable='.($row->resizable ? 'yes' : 'no');
                $ret = 'popup_'.implode(',', $pop);
            } else if ($row->open_type == 'blank') {
                $ret = 'popup_blank';
            }
            return $ret;
        } else {
{'fraction_non_alphanumeric': 0.20409533400469956, 'fraction_numerical': 0.0, 'mean_word_length': 1.7465437788018434, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 45, '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': '6591825', 'n_tokens_mistral': 941, 'n_tokens_neox': 924, 'n_words': 181}