<commit_before><?php
class Vpc_Menu_BreadCrumbs_Component extends Vpc_Menu_Abstract
{
    public static function getSettings()
    {
        $ret = parent::getSettings();
        $ret['separator'] = '»';
        $ret['showHome'] = false;
        return $ret;
    }

    public function getTemplateVars()
    {
        $ret = parent::getTemplateVars();
        $ret['separator'] = $this->_getSetting('separator');
        $ret['links'] = array();
        $page = $this->getData();
        do {
            $ret['links'][] = $page;
        } while ($page = $page->getParentPage());
        $page = $this->getData()->getPage();
        if ($this->_getParam('showHome') && $page) {
            if (!$page->isHome) {
                $home = Vps_Component_Data_Root::getInstance()->getRecursiveChildComponents(array(
                    'home' => true,
                    'subRoot' => $this->getData()
                ), array());
                if ($home) {
                    $ret['links'][] = $home[0];
                }
            }
        }
        $ret['links'] = array_reverse($ret['links']);
        return $ret;
    }

    public static function getStaticCacheVars()
    {
        $ret = array();
        foreach (Vpc_Abstract::getComponentClasses() as $componentClass) {<commit_msg>fix showHome, das konnte ja nie funktionieren<commit_after><?php
class Vpc_Menu_BreadCrumbs_Component extends Vpc_Menu_Abstract
{
    public static function getSettings()
    {
        $ret = parent::getSettings();
        $ret['separator'] = '»';
        $ret['showHome'] = false;
        return $ret;
    }

    public function getTemplateVars()
    {
        $ret = parent::getTemplateVars();
        $ret['separator'] = $this->_getSetting('separator');
        $ret['links'] = array();
        $page = $this->getData();
        do {
            $ret['links'][] = $page;
        } while ($page = $page->getParentPage());
        $page = $this->getData()->getPage();
        if ($this->_getSetting('showHome') && $page) {
            if (!isset($page->isHome) || !$page->isHome) {
                $home = Vps_Component_Data_Root::getInstance()->getRecursiveChildComponents(array(
                    'home' => true,
                    'subRoot' => $this->getData()
                ), array());
                if ($home) {
                    $ret['links'][] = $home[0];
                }
            }
        }
        $ret['links'] = array_reverse($ret['links']);
        return $ret;
    }

    public static function getStaticCacheVars()
    {
        $ret = array();
        foreach (Vpc_Abstract::getComponentClasses() as $componentClass) {
{'fraction_non_alphanumeric': 0.16471033699356305, 'fraction_numerical': 0.0007572889057175312, 'mean_word_length': 1.98868778280543, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 26, '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': '4420473', 'n_tokens_mistral': 757, 'n_tokens_neox': 749, 'n_words': 139}