<commit_before><?
defined('C5_EXECUTE') or die("Access Denied.");
$h = Loader::helper('concrete/dashboard');
$ih = Loader::helper('concrete/interface');
$form = Loader::helper('form');
if ($downloadableUpgradeAvailable) { ?>
	<?=$h->getDashboardPaneHeaderWrapper(t('Download Update'));?>
		<span class="label"><?=t('Current Version %s',config::get('SITE_APP_VERSION'))?></span>
		<form method="post" action="<?=$this->action('download_update')?>" id="ccm-download-update-form">
		
			<?=Loader::helper('validation/token')->output('download_update')?>
			<?=Loader::helper('concrete/interface')->submit(t('Download'), 'ccm-download-update-form', 'right', 'primary')?>
		
			<h3><?=t('Version: %s', $update->version)?>. <?=t('Release Date: %s', date(t('F d, Y'), strtotime($update->date)))?></h3>
			<hr/>
			<div id="ccm-release-notes">
			<?=$update->notes?>
			</div>
			<hr/>
			<span class="notes"><?=t('Note: Downloading an update will NOT automatically install it.')?></span>
		
		</form>
	<?=$h->getDashboardPaneFooterWrapper();?>
<? } else if (count($updates)) { ?>
	<?=$h->getDashboardPaneHeaderWrapper(t('Install Local Update'),false,false,false);?>
		<div class="ccm-pane-body">
			<?print '<strong>' . t('Make sure you <a href="%s">backup your database</a> before updating.', $this->url('/dashboard/system/backup_restore/backup')) . '</strong><br/>';
			$ih = Loader::helper('concrete/interface');

			if (count($updates) == 1) { ?>
					<p><?=t('An update is available. Click below to update to <strong>%s</strong>.', $updates[0]->getUpdateVersion())?></p>
					<span class="label"><?=t('Current Version %s',config::get('SITE_APP_VERSION'))?></span>
				</div>
				<div class="ccm-pane-footer">
					<form method="post" action="<?=$this->action('do_update')?>" id="ccm-update-form">
						<input type="hidden" name="updateVersion" value="<?=$updates[0]->getUpdateVersion()?>" />
						<?=$ih->submit(t('Update'), 'maintenance-mode-form', 'right', 'primary')?>
					</form>
				</div>
			<? } else { ?>
				<p><?=t('Several updates are available. Please choose the desired update from the list below.')?></p>
					<span class="label"><?=t('Current Version')?> <?=config::get('SITE_APP_VERSION')?></span>
				<form method="post" action="<?=$this->action('do_update')?>" id="ccm-update-form">
				<?  $checked = true;
					foreach($updates as $upd) { ?>
						<div class="ccm-dashboard-radio"><input type="radio" name="updateVersion" value="<?=$upd->getUpdateVersion()?>" <?=(!$checked?:"checked")?> /><commit_msg>fix error for update<commit_after><?
defined('C5_EXECUTE') or die("Access Denied.");
$h = Loader::helper('concrete/dashboard');
$ih = Loader::helper('concrete/interface');
$form = Loader::helper('form');
if ($downloadableUpgradeAvailable) { ?>
	<?=$h->getDashboardPaneHeaderWrapper(t('Download Update'));?>
		<span class="label"><?=t('Current Version %s',config::get('SITE_APP_VERSION'))?></span>
		<form method="post" action="<?=$this->action('download_update')?>" id="ccm-download-update-form">
		
			<?=Loader::helper('validation/token')->output('download_update')?>
			<?=Loader::helper('concrete/interface')->submit(t('Download'), 'ccm-download-update-form', 'right', 'primary')?>
		
			<h3><?=t('Version: %s', $update->version)?>. <?=t('Release Date: %s', date(t('F d, Y'), strtotime($update->date)))?></h3>
			<hr/>
			<div id="ccm-release-notes">
			<?=$update->notes?>
			</div>
			<hr/>
			<span class="notes"><?=t('Note: Downloading an update will NOT automatically install it.')?></span>
		
		</form>
	<?=$h->getDashboardPaneFooterWrapper();?>
<? } else if (count($updates)) { ?>
	<?=$h->getDashboardPaneHeaderWrapper(t('Install Local Update'),false,false,false);?>
		<div class="ccm-pane-body">
			<?print '<strong>' . t('Make sure you <a href="%s">backup your database</a> before updating.', $this->url('/dashboard/system/backup_restore/backup')) . '</strong><br/>';
			$ih = Loader::helper('concrete/interface');

			if (count($updates) == 1) { ?>
					<p><?=t('An update is available. Click below to update to <strong>%s</strong>.', $updates[0]->getUpdateVersion())?></p>
					<span class="label"><?=t('Current Version %s',config::get('SITE_APP_VERSION'))?></span>
				</div>
				<div class="ccm-pane-footer">
					<form method="post" action="<?=$this->action('do_update')?>" id="ccm-update-form">
						<input type="hidden" name="updateVersion" value="<?=$updates[0]->getUpdateVersion()?>" />
						<?=$ih->submit(t('Update'), 'maintenance-mode-form', 'right', 'primary')?>
					</form>
				</div>
			<? } else { ?>
				<p><?=t('Several updates are available. Please choose the desired update from the list below.')?></p>
					<span class="label"><?=t('Current Version')?> <?=config::get('SITE_APP_VERSION')?></span>
				<form method="post" action="<?=$this->action('do_update')?>" id="ccm-update-form">
				<?  $checked = true;
					foreach($updates as $upd) { ?>
						<div class="ccm-dashboard-radio"><input type="radio" name="updateVersion" value="<?=$upd->getUpdateVersion()?>" <?=(!$checked?'':"checked")?> />
{'fraction_non_alphanumeric': 0.2544015825914936, 'fraction_numerical': 0.002373887240356083, 'mean_word_length': 5.635170603674541, 'pattern_counts': {'":': 0, '<': 131, '<?xml version=': 0, '>': 163, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 16, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7661021', 'n_tokens_mistral': 1865, 'n_tokens_neox': 1703, 'n_words': 297}