<commit_before><?php
class Kwf_Component_Renderer extends Kwf_Component_Renderer_Abstract
{
    private $_renderMaster;
    public function renderMaster($component)
    {
        $this->_renderMaster = true;
        return parent::renderComponent($component);
    }

    public function renderComponent($component)
    {
        $this->_renderMaster = false;
        return parent::renderComponent($component);
    }

    protected function _renderComponentContent($component)
    {
        if ($this->_renderMaster) {
            if (!$this->_enableCache ||
                ($content = Kwf_Component_Cache::getInstance()->load($component, 'page')) === null) {
                $masterHelper = new Kwf_Component_View_Helper_Master();
                $masterHelper->setRenderer($this);
                $content = $masterHelper->master($component);
                if ($this->_enableCache) {
                    Kwf_Component_Cache::getInstance()
                        ->save($component, $content, 'page', '', true);
                }
            }
            if ($content == Kwf_Component_Cache::NO_CACHE) {<commit_msg>fix cache issue, renderer and type were not seperated in master rendering<commit_after><?php
class Kwf_Component_Renderer extends Kwf_Component_Renderer_Abstract
{
    private $_renderMaster;
    public function renderMaster($component)
    {
        $this->_renderMaster = true;
        return parent::renderComponent($component);
    }

    public function renderComponent($component)
    {
        $this->_renderMaster = false;
        return parent::renderComponent($component);
    }

    protected function _renderComponentContent($component)
    {
        if ($this->_renderMaster) {
            if (!$this->_enableCache ||
                ($content = Kwf_Component_Cache::getInstance()->load($component, 'page')) === null) {
                $masterHelper = new Kwf_Component_View_Helper_Master();
                $masterHelper->setRenderer($this);
                $content = $masterHelper->master($component);
                if ($this->_enableCache) {
                    Kwf_Component_Cache::getInstance()
                        ->save($component, $content, 'component', 'master', true);
                }
            }
            if ($content == Kwf_Component_Cache::NO_CACHE) {
{'fraction_non_alphanumeric': 0.11639982691475552, 'fraction_numerical': 0.0, 'mean_word_length': 2.43026706231454, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 21, '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': '5971013', 'n_tokens_mistral': 582, 'n_tokens_neox': 553, 'n_words': 108}