<commit_before><?php
class Vpc_ListChildPages_Teaser_Model extends Vps_Model_Abstract
{
    protected $_rowClass = 'Vps_Model_Row_Data_Abstract';
    private $_data = array();

    public function getPrimaryKey()
    {
        return 'id';
    }

    protected function _getOwnColumns()
    {
        return array('id', 'pos', 'target_page_id', 'name');
    }

    public function getRows($where=null, $order=null, $limit=null, $start=null)
    {
        if (!is_object($where) || $where instanceof Vps_Model_Select_Expr_Interface) {
            $select = $this->select($where, $order, $limit, $start);
        } else {
            $select = $where;
        }
        $dataKeys = array();
        $whereEquals = $select->getPart(Vps_Model_Select::WHERE_EQUALS);
        if (isset($whereEquals['parent_component_id'])) {
            $whereId = $select->getPart(Vps_Model_Select::WHERE_ID);
            $childPages = Vps_Component_Data_Root::getInstance()
                ->getComponentById($whereEquals['parent_component_id'], array(
                    Vps_Component_Select::IGNORE_VISIBLE => true
                ))->getPage()->getChildPages();
            foreach ($childPages as $childPage) {
                if (is_numeric($childPage->dbId)) {
                    $id = $childPage->dbId;
                } else {
                    $id = substr(md5($childPage->dbId), 0, 5);
                }
                if (!$whereId || $id == $whereId) {<commit_msg>ListChildPages zeigt im grid jetzt auch unsichtbare child-seiten an<commit_after><?php
class Vpc_ListChildPages_Teaser_Model extends Vps_Model_Abstract
{
    protected $_rowClass = 'Vps_Model_Row_Data_Abstract';
    private $_data = array();

    public function getPrimaryKey()
    {
        return 'id';
    }

    protected function _getOwnColumns()
    {
        return array('id', 'pos', 'target_page_id', 'name');
    }

    public function getRows($where=null, $order=null, $limit=null, $start=null)
    {
        if (!is_object($where) || $where instanceof Vps_Model_Select_Expr_Interface) {
            $select = $this->select($where, $order, $limit, $start);
        } else {
            $select = $where;
        }
        $dataKeys = array();
        $whereEquals = $select->getPart(Vps_Model_Select::WHERE_EQUALS);
        if (isset($whereEquals['parent_component_id'])) {
            $whereId = $select->getPart(Vps_Model_Select::WHERE_ID);

            $componentSelectArray = array(
                Vps_Component_Select::IGNORE_VISIBLE => true
            );
            $childPages = Vps_Component_Data_Root::getInstance()
                ->getComponentById($whereEquals['parent_component_id'], $componentSelectArray)
                ->getPage()
                ->getChildPages($componentSelectArray);
            foreach ($childPages as $childPage) {
                if (is_numeric($childPage->dbId)) {
                    $id = $childPage->dbId;
                } else {
                    $id = substr(md5($childPage->dbId), 0, 5);
                }
                if (!$whereId || $id == $whereId) {
{'fraction_non_alphanumeric': 0.13039247486214725, 'fraction_numerical': 0.0019461563412260785, 'mean_word_length': 2.3304535637149026, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 23, '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': '3292532', 'n_tokens_mistral': 918, 'n_tokens_neox': 884, 'n_words': 161}