<commit_before><?
defined('C5_EXECUTE') or die("Access Denied.");

$sh = Loader::helper('concrete/dashboard/sitemap');
$th = Loader::helper('text');
if (!$sh->canRead()) {
	die(t('Access Denied'));
}

$args = $_REQUEST;
foreach($args as $key => $value) {
	if (strpos($value, ',') !== -1) {
		$ids = array();
		foreach(explode(',', $value) as $id) {
			$ids[] = $th->entities(trim($id));
		}
		$args[$key] = implode(',', $ids);
	} else {
		$args[$key] = $th->entities($value);
	}
}
if (isset($select_mode)) {
	$args['select_mode'] = $select_mode;
}
$args['selectedPageID'] = $_REQUEST['cID'];
if (is_array($args['selectedPageID'])) {
	$args['selectedPageID'] = implode(',',$args['selectedPageID']);
}
$args['sitemapCombinedMode'] = $sitemapCombinedMode;
if (!isset($args['select_mode'])) {
	$args['select_mode'] = 'select_page';
}
if ($args['select_mode'] == 'select_page') {
	$args['reveal'] = $args['selectedPageID'];
}

$args['display_mode'] = 'full';
$args['instance_id'] = time();
Loader::element('dashboard/sitemap', $args);
?><commit_msg>mistakenly sanitized array as csv<commit_after><?
defined('C5_EXECUTE') or die("Access Denied.");

$sh = Loader::helper('concrete/dashboard/sitemap');
$th = Loader::helper('text');
if (!$sh->canRead()) {
	die(t('Access Denied'));
}

$args = $_REQUEST;
foreach($args as $key => $value) {
	if (is_array($value)) {
		foreach ($value as $index => $id) {
			$value[$index] = intval($id);
		}
	} else {
		$args[$key] = $th->entities($value);
	}
}
if (isset($select_mode)) {
	$args['select_mode'] = $select_mode;
}
$args['selectedPageID'] = $_REQUEST['cID'];
if (is_array($args['selectedPageID'])) {
	$args['selectedPageID'] = implode(',',$args['selectedPageID']);
}
$args['sitemapCombinedMode'] = $sitemapCombinedMode;
if (!isset($args['select_mode'])) {
	$args['select_mode'] = 'select_page';
}
if ($args['select_mode'] == 'select_page') {
	$args['reveal'] = $args['selectedPageID'];
}

$args['display_mode'] = 'full';
$args['instance_id'] = time();
Loader::element('dashboard/sitemap', $args);
?>
{'fraction_non_alphanumeric': 0.25589390962671904, 'fraction_numerical': 0.0014734774066797642, 'mean_word_length': 6.988235294117647, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '2963640', 'n_tokens_mistral': 785, 'n_tokens_neox': 778, 'n_words': 125}