<commit_before><ul id="album_list">
	<?php foreach ($albums as $album):?>
	<?php
		$photos = $album->find_related('photos');
		$photo = count($photos) ? $photos->current() : Auto_Modeler_ORM::factory('photo');
	?>
	<li>
	<div class="album">
		<?=html::anchor('album/view/'.$album->url_name, 
	                         html::image('photo/thumbnail/'.$album->url_name.'/'.$photo->photo_filename, $album->url_name, TRUE))?><br />
	    <div class="album_caption">
	    	<?=$album->album_name?>
	    	<?php if (Auth::instance()->logged_in('admin')):?><br />
			<?=html::anchor('admin/album/edit/'.$album->id,
				html::image('images/fam_silk/wrench_orange.png',
				array('alt' => 'Edit', 'title' => 'Edit')))?>
			<?=html::anchor('admin/album/delete/'.$album->id,
				html::image('images/fam_silk/cross.png', 
				array('alt' => 'Delete', 'title' => 'Delete')))?>
			<?php endif;?>
		</div>
	</div>
	</li>
	<?php endforeach;?>
</ul>
<?php if (Auth::instance()->logged_in('admin')):?><h2 style="clear: both;"><?=html::anchor('admin/album/create', 'Add album', array('rel' => 'facebox'))?></h2><?php endif;?><commit_msg>Fixing album highlight to be first photo in the album instead of first uploaded photo.<commit_after><ul id="album_list">
	<?php foreach ($albums as $album):?>
	<?php
		$photos = $album->find_related('photos', array(), 'order');
		$photo = count($photos) ? $photos->current() : Auto_Modeler_ORM::factory('photo');
	?>
	<li>
	<div class="album">
		<?=html::anchor('album/view/'.$album->url_name, 
	                         html::image('photo/thumbnail/'.$album->url_name.'/'.$photo->photo_filename, $album->url_name, TRUE))?><br />
	    <div class="album_caption">
	    	<?=$album->album_name?>
	    	<?php if (Auth::instance()->logged_in('admin')):?><br />
			<?=html::anchor('admin/album/edit/'.$album->id,
				html::image('images/fam_silk/wrench_orange.png',
				array('alt' => 'Edit', 'title' => 'Edit')))?>
			<?=html::anchor('admin/album/delete/'.$album->id,
				html::image('images/fam_silk/cross.png', 
				array('alt' => 'Delete', 'title' => 'Delete')))?>
			<?php endif;?>
		</div>
	</div>
	</li>
	<?php endforeach;?>
</ul>
<?php if (Auth::instance()->logged_in('admin')):?><h2 style="clear: both;"><?=html::anchor('admin/album/create', 'Add album', array('rel' => 'facebox'))?></h2><?php endif;?>
{'fraction_non_alphanumeric': 0.26433807675722293, 'fraction_numerical': 0.0017248814144027599, 'mean_word_length': 4.631067961165049, 'pattern_counts': {'":': 0, '<': 51, '<?xml version=': 0, '>': 83, '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': '3717158', 'n_tokens_mistral': 896, 'n_tokens_neox': 834, 'n_words': 129}