<commit_before><?php /* Copyright © 2011-2012 <NAME> <<EMAIL>> */ ?>

<div id="actions">
	<h2><?php __('Actions'); ?></h2>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Bookmark', true),
			array('action' => 'edit', $bookmark['Bookmark']['id'])); ?></li>
		<li><?php echo $this->Html->link(__('Delete Bookmark', true),
			array('action' => 'delete', $bookmark['Bookmark']['id']), null,
			sprintf(__('Are you sure you want to delete # %s?', true),
			$bookmark['Bookmark']['id'])); ?></li>
		<li><?php echo $this->Html->link(__('New Bookmark', true),
			array('action' => 'add')); ?></li>
	</ul>
</div>

<div id="content" class="bookmark_view">
	<h2><?php __('View Bookmark'); ?></h2>

	<dl>
		<dt><?php __('Title'); ?></dt>
		<dd><?php echo $bookmark['Bookmark']['title']; ?></dd>

		<dt><?php __('URL'); ?></dt>
		<dd><?php echo $this->Html->link($bookmark['Bookmark']['url'],
			array('action' => 'visit', $bookmark['Bookmark']['id'])); ?></dd>


		<?php if (!empty($bookmark['Bookmark']['revisit'])): ?>
			<dt><?php __('Revisit'); ?></dt>
			<dd><?php printf(__('every %d hours', true),
				$bookmark['Bookmark']['revisit']); ?></dd>
			<dt><?php __('Next Scheduled Visit'); ?></dt>
			<!-- XXX This cannot be localized, bug in CakePHP. -->
			<dd><?php echo $this->Time->timeAgoInWords($next_visit, array(), true); ?></dd>
		<?php endif; ?>

		<?php if ($bookmark['Bookmark']['reading_list']): ?>
			<dt><?php __('Reading List'); ?></dt>
			<dd><?php __('This is on your reading list.'); ?></dd>
		<?php endif; ?>

		<?php if (!empty($bookmark['Keyword'])): ?>
		<dt><?php __('Related Keywords'); ?></dt>
		<?php foreach ($bookmark['Keyword'] as $keyword): ?>
			<dd><?php echo $this->Html->link($keyword['title'],
				array('controller' => 'keywords', 'action' => 'view',
				$keyword['id'])); ?></dd>
		<?php endforeach; ?>
		<?php endif; ?>

		<dt><?php __('Visit Count'); ?></dt>
		<dd><?php echo $visits; ?></dd>

		<dt><?php __('Last Visit'); ?></dt>
		<dd><?php echo $this->Time->timeAgoInWords($last_visit, array(), true); ?></dd>

		<?php if ($visits > 1): ?>
			<dt><?php __('visits by interval'); ?><dt>
			<dd>
			<?php echo $this->element('visit_graph', array("id" => $bookmark["Bookmark"]["id"])); ?>
			</dd>
		<?php endif; ?>

		<dt><?php __('Created'); ?></dt>
		<dd><?php echo $bookmark['Bookmark']['created']; ?></dd>

		<dt><?php __('Modified'); ?></dt>
		<dd><?php echo $bookmark['Bookmark']['modified']; ?></dd>
	</dl>
</div>
<commit_msg>Show mobile status<commit_after><?php /* Copyright © 2011-2013 <NAME> <<EMAIL>> */ ?>

<div id="actions">
	<h2><?php __('Actions'); ?></h2>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Bookmark', true),
			array('action' => 'edit', $bookmark['Bookmark']['id'])); ?></li>
		<li><?php echo $this->Html->link(__('Delete Bookmark', true),
			array('action' => 'delete', $bookmark['Bookmark']['id']), null,
			sprintf(__('Are you sure you want to delete # %s?', true),
			$bookmark['Bookmark']['id'])); ?></li>
		<li><?php echo $this->Html->link(__('New Bookmark', true),
			array('action' => 'add')); ?></li>
	</ul>
</div>

<div id="content" class="bookmark_view">
	<h2><?php __('View Bookmark'); ?></h2>

	<dl>
		<dt><?php __('Title'); ?></dt>
		<dd><?php echo $bookmark['Bookmark']['title']; ?></dd>

		<dt><?php __('URL'); ?></dt>
		<dd><?php echo $this->Html->link($bookmark['Bookmark']['url'],
			array('action' => 'visit', $bookmark['Bookmark']['id'])); ?></dd>


		<?php if (!empty($bookmark['Bookmark']['revisit'])): ?>
			<dt><?php __('Revisit'); ?></dt>
			<dd><?php printf(__('every %d hours', true),
				$bookmark['Bookmark']['revisit']); ?></dd>
			<dt><?php __('Next Scheduled Visit'); ?></dt>
			<!-- XXX This cannot be localized, bug in CakePHP. -->
			<dd><?php echo $this->Time->timeAgoInWords($next_visit, array(), true); ?></dd>
		<?php endif; ?>

		<?php if ($bookmark['Bookmark']['reading_list']): ?>
			<dt><?php __('Reading List'); ?></dt>
			<dd><?php __('This is on your reading list.'); ?></dd>
		<?php endif; ?>

		<?php if ($bookmark['Bookmark']['mobile']): ?>
			<dt><?php __('Mobile'); ?></dt>
			<dd><?php __('This is a mobile bookmark.'); ?></dd>
		<?php endif; ?>

		<?php if (!empty($bookmark['Keyword'])): ?>
		<dt><?php __('Related Keywords'); ?></dt>
		<?php foreach ($bookmark['Keyword'] as $keyword): ?>
			<dd><?php echo $this->Html->link($keyword['title'],
				array('controller' => 'keywords', 'action' => 'view',
				$keyword['id'])); ?></dd>
		<?php endforeach; ?>
		<?php endif; ?>

		<dt><?php __('Visit Count'); ?></dt>
		<dd><?php echo $visits; ?></dd>

		<dt><?php __('Last Visit'); ?></dt>
		<dd><?php echo $this->Time->timeAgoInWords($last_visit, array(), true); ?></dd>

		<?php if ($visits > 1): ?>
			<dt><?php __('visits by interval'); ?><dt>
			<dd>
			<?php echo $this->element('visit_graph', array("id" => $bookmark["Bookmark"]["id"])); ?>
			</dd>
		<?php endif; ?>

		<dt><?php __('Created'); ?></dt>
		<dd><?php echo $bookmark['Bookmark']['created']; ?></dd>

		<dt><?php __('Modified'); ?></dt>
		<dd><?php echo $bookmark['Bookmark']['modified']; ?></dd>
	</dl>
</div>

{'fraction_non_alphanumeric': 0.3025671173819322, 'fraction_numerical': 0.005095042132079169, 'mean_word_length': 4.839816933638444, 'pattern_counts': {'":': 0, '<': 219, '<?xml version=': 0, '>': 265, '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': '4093710', 'n_tokens_mistral': 1991, 'n_tokens_neox': 1899, 'n_words': 427}