<commit_before><?php
class Vps_View_Helper_ComponentLink
{
    public function componentLink($m, $text = null)
    {
        if ($m instanceof Vps_Dao_Row_TreeCache) {
            $si = $m->getTable()->showInvisible();
            $m = array(
                'href' => $si ? $m->url_preview : $m->url,
                'rel' => $si ? $m->rel_preview : $m->rel,
                'text' => $m->name
            );
        }
        if (!$text) $text = $m['text'];
        return '<a href="'.$m['href'].'" rel="'.$m['rel'].'">'.$text.'</a>';
    }
}
<commit_msg>wenn nicht page dann page suchen<commit_after><?php
class Vps_View_Helper_ComponentLink
{
    public function componentLink($m, $text = null)
    {
        if ($m instanceof Vps_Dao_Row_TreeCache) {
            if (!$m->url) $m = $m->findPage();
            $si = $m->getTable()->showInvisible();
            $m = array(
                'href' => $si ? $m->url_preview : $m->url,
                'rel' => $si ? $m->rel_preview : $m->rel,
                'text' => $m->name
            );
        }
        if (!$text) $text = $m['text'];
        return '<a href="'.$m['href'].'" rel="'.$m['rel'].'">'.$text.'</a>';
    }
}

{'fraction_non_alphanumeric': 0.21694915254237288, 'fraction_numerical': 0.0, 'mean_word_length': 1.8595641646489105, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 29, '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': '501249', 'n_tokens_mistral': 399, 'n_tokens_neox': 403, 'n_words': 77}