<commit_before><?php
class Vpc_Paging_Component extends Vpc_Abstract
    implements Vps_Component_Partial_Interface
{
    private $_entries;
    public static function getSettings()
    {
        $ret = parent::getSettings();
        $ret['pagesize'] = 10;
        $ret['maxPagingLinks'] = 13;
        $ret['bigPagingSteps'] = array(10, 50);
        $ret['cssClass'] = 'webPaging webStandard';
        return $ret;
    }

    public function getViewCacheSettings()
    {
        $ret = parent::getViewCacheSettings();
        if ($this->getData()->parent->getComponent() instanceof Vpc_Directories_List_View_Component &&
            $this->getData()->parent->getComponent()->hasSearchForm())
        {
            $ret['enabled'] = false;
        }
        return $ret;
    }

    public function getCount()
    {
        if (!isset($this->_entries)) {
            $this->_entries = $this->getData()->parent->getComponent()->getPagingCount();
            if (!$this->_entries) {
                $this->_entries = 0;
            } else if ($this->_entries instanceof Vps_Component_Select) {
                $this->_entries = $this->getData()->parent->countChildComponents($this->_entries);
            } else if ($this->_entries instanceof Vps_Model_Select) {
                throw new Vps_Exception("Not yet implemented, probably not really possible");
            } else if ($this->_entries instanceof Zend_Db_Select) {
                $select = $this->_entries;
                $select->setIntegrityCheck(false);
                $select->reset(Zend_Db_Select::COLUMNS);
                if ($select instanceof Vps_Db_Table_Select) {
                    $table = $select->getTableName().'.';
                } else {
                    $table = '';
                }
                $select->from(null, array('count' => "COUNT(DISTINCT {$table}id)"));
                $r = $select->query()->fetchAll();
                if (!isset($r[0])) {<commit_msg>view-cache deaktivieren wenn Vps_Component_Partial_Id verwendet wird - flexibler als nur wenn form:<commit_after><?php
class Vpc_Paging_Component extends Vpc_Abstract
    implements Vps_Component_Partial_Interface
{
    private $_entries;
    public static function getSettings()
    {
        $ret = parent::getSettings();
        $ret['pagesize'] = 10;
        $ret['maxPagingLinks'] = 13;
        $ret['bigPagingSteps'] = array(10, 50);
        $ret['cssClass'] = 'webPaging webStandard';
        return $ret;
    }

    public function getViewCacheSettings()
    {
        $ret = parent::getViewCacheSettings();
        if ($this->getData()->parent->getComponent() instanceof Vpc_Directories_List_View_Component &&
            is_instance_of($this->getData()->parent->getComponent()->getPartialClass(), 'Vps_Component_Partial_Id'))
        {
            $ret['enabled'] = false;
        }
        return $ret;
    }

    public function getCount()
    {
        if (!isset($this->_entries)) {
            $this->_entries = $this->getData()->parent->getComponent()->getPagingCount();
            if (!$this->_entries) {
                $this->_entries = 0;
            } else if ($this->_entries instanceof Vps_Component_Select) {
                $this->_entries = $this->getData()->parent->countChildComponents($this->_entries);
            } else if ($this->_entries instanceof Vps_Model_Select) {
                throw new Vps_Exception("Not yet implemented, probably not really possible");
            } else if ($this->_entries instanceof Zend_Db_Select) {
                $select = $this->_entries;
                $select->setIntegrityCheck(false);
                $select->reset(Zend_Db_Select::COLUMNS);
                if ($select instanceof Vps_Db_Table_Select) {
                    $table = $select->getTableName().'.';
                } else {
                    $table = '';
                }
                $select->from(null, array('count' => "COUNT(DISTINCT {$table}id)"));
                $r = $select->query()->fetchAll();
                if (!isset($r[0])) {
{'fraction_non_alphanumeric': 0.14122893954410307, 'fraction_numerical': 0.004955401387512388, 'mean_word_length': 2.211614956245028, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 65, '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': '3793624', 'n_tokens_mistral': 1113, 'n_tokens_neox': 1077, 'n_words': 207}