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

<?php if (!$ak instanceof Concrete\Core\Entity\Attribute\Key\Key) { ?>
<div class="ccm-error"><?php echo t('Error: The required page attribute with the handle of: "%s" doesn\'t exist', $controller->attributeHandle)?><br/><br/></div>
<?php } else { ?>
<input type="hidden" name="attributeHandle" value="<?php echo $controller->attributeHandle?>" />
	<div class="form-group">
        <?php echo $form->label('title', t('Title'))?>
		<?php echo $form->text('title', $title); ?>
	</div>

    <div class="form-group">
        <label class="control-label"><?php echo t('Display a List of Tags From')?></label>
        <div class="radio">
            <label>
                <?php echo $form->radio('displayMode', 'page', $displayMode)?><?php echo t('The Current Page.')?>
            </label>
        </div>
        <div class="radio">
            <label>
                <?php echo $form->radio('displayMode', 'cloud', $displayMode)?><?php echo t('The Entire Site.')?>
            </label>
        </div>
    </div>

	<?php if (!$inStackDashboardPage) { ?>
	<div id="ccm-tags-display-page" class="form-group">
    	<label class="control-label"><?php echo $ak->getAttributeKeyDisplayName(); ?></label>
        <?php
        $av = $c->getAttributeValueObject($ak);
        $ak->render(new \Concrete\Core\Attribute\Context\StandardFormContext(), $av);
        ?>
	</div>
	<?php } ?>

	<div id="ccm-tags-display-cloud" class="form-group">
        <?php echo $form->label('cloudCount', t('Number to Display'))?>
		<?php echo $form->text('cloudCount', $cloudCount, array('size' => 4))?>
	</div>

	<div class="form-group">
    	<label class="control-label"><?php echo t('Link Tags to Filtered Page List')?></label>
		<?php
        $form_selector = Loader::helper('form/page_selector');
        echo $form_selector->selectPage('targetCID', $targetCID);
        ?>
	</div>
<?php } ?>

<script>
    $(function(){ tags.init(); });
</script><commit_msg>use $app->make() instead of Loader:helper()<commit_after><?php defined('C5_EXECUTE') or die('Access Denied.');
$app = \Concrete\Core\Support\Facade\Application::getFacadeApplication();
$form = $app->make('helper/form');
$c = Page::getCurrentPage();
?>

<?php if (!$ak instanceof Concrete\Core\Entity\Attribute\Key\Key) { ?>
<div class="ccm-error"><?php echo t('Error: The required page attribute with the handle of: "%s" doesn\'t exist', $controller->attributeHandle)?><br/><br/></div>
<?php } else { ?>
<input type="hidden" name="attributeHandle" value="<?php echo $controller->attributeHandle?>" />
	<div class="form-group">
        <?php echo $form->label('title', t('Title'))?>
		<?php echo $form->text('title', $title); ?>
	</div>

    <div class="form-group">
        <label class="control-label"><?php echo t('Display a List of Tags From')?></label>
        <div class="radio">
            <label>
                <?php echo $form->radio('displayMode', 'page', $displayMode)?><?php echo t('The Current Page.')?>
            </label>
        </div>
        <div class="radio">
            <label>
                <?php echo $form->radio('displayMode', 'cloud', $displayMode)?><?php echo t('The Entire Site.')?>
            </label>
        </div>
    </div>

	<?php if (!$inStackDashboardPage) { ?>
	<div id="ccm-tags-display-page" class="form-group">
    	<label class="control-label"><?php echo $ak->getAttributeKeyDisplayName(); ?></label>
        <?php
        $av = $c->getAttributeValueObject($ak);
        $ak->render(new \Concrete\Core\Attribute\Context\StandardFormContext(), $av);
        ?>
	</div>
	<?php } ?>

	<div id="ccm-tags-display-cloud" class="form-group">
        <?php echo $form->label('cloudCount', t('Number to Display'))?>
		<?php echo $form->text('cloudCount', $cloudCount, array('size' => 4))?>
	</div>

	<div class="form-group">
    	<label class="control-label"><?php echo t('Link Tags to Filtered Page List')?></label>
		<?php
        $form_selector = $app->make('helper/form/page_selector');
        echo $form_selector->selectPage('targetCID', $targetCID);
        ?>
	</div>
<?php } ?>

<script>
    $(function(){ tags.init(); });
</script>
{'fraction_non_alphanumeric': 0.21552941176470589, 'fraction_numerical': 0.0009411764705882353, 'mean_word_length': 3.4936575052854124, 'pattern_counts': {'":': 0, '<': 107, '<?xml version=': 0, '>': 136, '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': '2115764', 'n_tokens_mistral': 1348, 'n_tokens_neox': 1363, 'n_words': 299}