<commit_before><?php
namespace Concrete\Core\Application\UserInterface\Sitemap;


class FlatSitemapProvider extends StandardSitemapProvider
{

    public function getRequestedNodes()
    {
        $dh = $this->getSitemapDataProvider();
        $cParentID = 0;
        if ($this->request->query->has('cParentID')) {
            $cParentID = $this->request->query->get('cParentID');
        }
        if ($cParentID > 0) {
            $c = \Page::getByID($cParentID);
            $parent = \Page::getByID($c->getCollectionParentID());
        }<commit_msg>Avoid accessing undefined var in FlatSitemapProvider<commit_after><?php
namespace Concrete\Core\Application\UserInterface\Sitemap;


class FlatSitemapProvider extends StandardSitemapProvider
{

    public function getRequestedNodes()
    {
        $dh = $this->getSitemapDataProvider();
        $cParentID = 0;
        $parent = null;
        if ($this->request->query->has('cParentID')) {
            $cParentID = $this->request->query->get('cParentID');
        }
        if ($cParentID > 0) {
            $c = \Page::getByID($cParentID);
            $parent = \Page::getByID($c->getCollectionParentID());
        }
{'fraction_non_alphanumeric': 0.1426131511528608, 'fraction_numerical': 0.0034158838599487617, 'mean_word_length': 2.817589576547231, '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': '5034792', 'n_tokens_mistral': 362, 'n_tokens_neox': 350, 'n_words': 57}