<commit_before><?php
defined('C5_EXECUTE') or die("Access Denied.");
$form = Loader::helper('form');

$cParentID = 0;
$selectorFormFactor = '';
if (is_object($pagetype) && $pagetype->getPageTypePublishTargetTypeID() == $type->getPageTypePublishTargetTypeID()) {
    $configuredTarget = $pagetype->getPageTypePublishTargetObject();
    $cID = $configuredTarget->getParentPageID();
}

?>
	<div class="control-group">
		<?=$form->label('cParentID', t('Publish Beneath Page'))?>
		<div class="controls">
			<?php
            $pf = Loader::helper('form/page_selector');
            echo $pf->selectPage('cParentID', $cID);
            ?>
		</div>
	</div><commit_msg>Avoid accessing undefined var in page_types/target_types/parent_page<commit_after><?php
defined('C5_EXECUTE') or die("Access Denied.");
$form = Loader::helper('form');

$cParentID = 0;
$selectorFormFactor = '';
if (is_object($pagetype) && $pagetype->getPageTypePublishTargetTypeID() == $type->getPageTypePublishTargetTypeID()) {
    $configuredTarget = $pagetype->getPageTypePublishTargetObject();
    $cID = $configuredTarget->getParentPageID();
} elseif (!isset($cID)) {
    $cID = null;
}

?>
	<div class="control-group">
		<?=$form->label('cParentID', t('Publish Beneath Page'))?>
		<div class="controls">
			<?php
            $pf = Loader::helper('form/page_selector');
            echo $pf->selectPage('cParentID', $cID);
            ?>
		</div>
	</div>
{'fraction_non_alphanumeric': 0.1908450704225352, 'fraction_numerical': 0.0028169014084507044, 'mean_word_length': 4.753036437246964, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 29, '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': '1788631', 'n_tokens_mistral': 491, 'n_tokens_neox': 476, 'n_words': 76}