<commit_before><?php if (!empty($bookmarks)): ?>
	<?
	if (isset($bookmarks['Bookmark'][0]['id'])) {
		$bookmarks = $bookmarks['Bookmark'];
	}
	?>
	<div class="bookmark_view">
	<ul>
	<?php foreach ($bookmarks as $bookmark): ?>
		<?
		if (isset($bookmark['Bookmark'])) {
			$bookmark = $bookmark['Bookmark'];
		}
		?>
		
		<li>
			<?php echo $this->Html->link($bookmark['title'],
				array('controller' => 'bookmarks', 'action' => 'visit', $bookmark['id']),
				array('title' => $bookmark['url'])); ?>

			<?php echo $this->Html->link(__('View', true),
				array('controller' => 'bookmarks', 'action' => 'view', $bookmark['id']),
				array('class' => 'edit_option')); ?>
			<?php echo $this->Html->link(__('Edit', true),
				array('controller' => 'bookmarks', 'action' => 'edit', $bookmark['id']),
				array('class' => 'edit_option')); ?>
			<?php echo $this->Html->link(__('Delete', true),
				array('controller' => 'bookmarks', 'action' => 'delete', $bookmark['id']),
				null,
				sprintf(__('Are you sure you want to delete # %s?', true),
				$bookmark['id']),
				array('class' => 'edit_option')); ?>
		</li>
	<?php endforeach; ?>
	</ul>
	</div>
<?php endif; ?><commit_msg>fixed unset var error<commit_after><?php if (!empty($bookmarks)): ?>
	<?
	if (isset($bookmarks['Bookmark'][0]['id'])) {
		$bookmarks = $bookmarks['Bookmark'];
	}
	?>
	<div class="bookmark_view">
	<ul>
	<?php foreach ($bookmarks as $bookmark): ?>
		<?
		if (isset($bookmark['Bookmark'])) {
			$bookmark = $bookmark['Bookmark'];
		}
		?>
		
		<?php if (!empty($bookmark) && !empty($bookmark['id']) && !empty($bookmark['title']) && !empty($bookmark['url'])): ?>
		<li>
			<?php echo $this->Html->link($bookmark['title'],
				array('controller' => 'bookmarks', 'action' => 'visit', $bookmark['id']),
				array('title' => $bookmark['url'])); ?>

			<?php echo $this->Html->link(__('View', true),
				array('controller' => 'bookmarks', 'action' => 'view', $bookmark['id']),
				array('class' => 'edit_option')); ?>
			<?php echo $this->Html->link(__('Edit', true),
				array('controller' => 'bookmarks', 'action' => 'edit', $bookmark['id']),
				array('class' => 'edit_option')); ?>
			<?php echo $this->Html->link(__('Delete', true),
				array('controller' => 'bookmarks', 'action' => 'delete', $bookmark['id']),
				null,
				sprintf(__('Are you sure you want to delete # %s?', true),
				$bookmark['id']),
				array('class' => 'edit_option')); ?>
		</li>
		<?php endif; ?>
	<?php endforeach; ?>
	</ul>
	</div>
<?php endif; ?>
{'fraction_non_alphanumeric': 0.2714171337069656, 'fraction_numerical': 0.0008006405124099279, 'mean_word_length': 4.69248291571754, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 77, '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': '1189608', 'n_tokens_mistral': 982, 'n_tokens_neox': 875, 'n_words': 173}