<commit_before><?php
$this->extend('/Common/admin_index');
$this->name = 'extensions-plugins';
?>

<?php $this->start('tabs'); ?>
<li><?php echo $this->Html->link(__('Upload'), array('action' => 'add')); ?></li>
<?php $this->end(); ?>

<table cellpadding="0" cellspacing="0">
<?php
	$tableHeaders =  $this->Html->tableHeaders(array(
		'',
		__('Alias'),
		__('Name'),
		__('Description'),
		__('Active'),
		__('Actions'),
	));
	echo $tableHeaders;

	$rows = array();
	foreach ($plugins AS $pluginAlias => $pluginData) {
		if (in_array($pluginAlias, $corePlugins)) {
			continue;
		}

		if ($pluginData['active']) {
			$icon = 'tick.png';
			$toggleText = __('Deactivate');
		} else {
			$icon = 'cross.png';
			$toggleText = __('Activate');
		}
		$iconImage = $this->Html->image('icons/'.$icon);

		$actions  = '';
		$actions .= ' ' . $this->Form->postLink($toggleText, array(
			'action' => 'toggle',
			$pluginAlias,
		));
		$actions .= ' ' . $this->Form->postLink(__('Delete'), array(
			'action' => 'delete',
			$pluginAlias,
		), null, __('Are you sure?'));

		if ($pluginData['needMigration']) {
			$actions .= ' ' . $this->Html->link(__('Migrate'), array(
				'action' => 'migrate',
				$pluginAlias,
			), null, __('Are you sure?'));<commit_msg>link changed by postLink for more security<commit_after><?php
$this->extend('/Common/admin_index');
$this->name = 'extensions-plugins';
?>

<?php $this->start('tabs'); ?>
<li><?php echo $this->Html->link(__('Upload'), array('action' => 'add')); ?></li>
<?php $this->end(); ?>

<table cellpadding="0" cellspacing="0">
<?php
	$tableHeaders =  $this->Html->tableHeaders(array(
		'',
		__('Alias'),
		__('Name'),
		__('Description'),
		__('Active'),
		__('Actions'),
	));
	echo $tableHeaders;

	$rows = array();
	foreach ($plugins AS $pluginAlias => $pluginData) {
		if (in_array($pluginAlias, $corePlugins)) {
			continue;
		}

		if ($pluginData['active']) {
			$icon = 'tick.png';
			$toggleText = __('Deactivate');
		} else {
			$icon = 'cross.png';
			$toggleText = __('Activate');
		}
		$iconImage = $this->Html->image('icons/'.$icon);

		$actions  = '';
		$actions .= ' ' . $this->Form->postLink($toggleText, array(
			'action' => 'toggle',
			$pluginAlias,
		));
		$actions .= ' ' . $this->Form->postLink(__('Delete'), array(
			'action' => 'delete',
			$pluginAlias,
		), null, __('Are you sure?'));

		if ($pluginData['needMigration']) {
			$actions .= ' ' . $this->Form->postLink(__('Migrate'), array(
				'action' => 'migrate',
				$pluginAlias,
			), null, __('Are you sure?'));
{'fraction_non_alphanumeric': 0.2504923198109492, 'fraction_numerical': 0.0015754233950374162, 'mean_word_length': 4.173116089613035, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 59, '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': '673932', 'n_tokens_mistral': 989, 'n_tokens_neox': 898, 'n_words': 165}