<commit_before><?php
	echo '<div class="category-title">
			<div class="title">'.$category->getName().'</div>
			<div class="meta">
				<a href="#" title="Refresh" data-id="'.$category->getId().'" class="category-refresh"><i class="icon-refresh"> </i></a>
			</div>
		</div>';
	echo '<div class="list-entries">';
	$today = new DateTime(date('Y-m-d'));
	$currentDay = -1;
	$olderThan2 = false;
	foreach ($entries as $entry) {
		$entryAge = $today->diff(new DateTime($entry->getUpdated('Y-m-d')))->days;
		if ($entryAge != $currentDay)
		{
			$currentDay = $entryAge;
			switch ($entryAge) {
				case 0:
					echo '<div class="entries-date">Today</div>';
					break;
				case 1:
					echo '<div class="entries-date">Yesterday</div>';
					break;
				case 2:
					echo '<div class="entries-date">2 days ago</div>';
					break;
				default:
					if (!$olderThan2)
					{
						$olderThan2 = true;
						echo '<div class="entries-date">More than 2 days ago</div>';
					}
					break;
			}
			
		}
		echo '
			<div class="entry-container" id="entry-container-'.$entry->getId().'">
				<div class="entry-link-container'.($entry->getRead() == 1 ? ' read' : '').'">
					<div class="remove-entry" data-id="'.$entry->getId().'">
						<a href="#" data-id="'.$entry->getId().'" title="Remove this entry">
							<i class="icon-remove-sign"> </i>
						</a>
					</div>
					<div 	id="load-entry-link-'.$entry->getId().'" 
							class="load-entry-link" 
							data-id="'.$entry->getId().'" 
							data-href="'.$entry->getLink().'"
							data-feed-id="'.$entry->getFeed()->getId().'"
							data-viewtype="'.($entry->getFeed()->getViewFrame() == 0 ? 'rss' : 'www').'">
						<div class="title-wrapper">
							<div class="feed-title">'.$entry->getFeed()->getTitle().'</div>
							<div class="title">'.$entry->getTitle().'</div>
						</div>
						<div class="date">'.$entry->getUpdated('Y-m-d').'</div>
					</div>
				</div>
				<div class="load-entry-div" id="load-entry-div-'.$entry->getId().'">
					<div class="entry-content"></div>
				</div>
			</div>';
	}
	echo '</div>';
?><commit_msg>Replaced "Remove entry" icon by a "Mark read/unread" icon on the category screen.<commit_after><?php
	echo '<div class="category-title">
			<div class="title">'.$category->getName().'</div>
			<div class="meta">
				<a href="#" title="Refresh" data-id="'.$category->getId().'" class="category-refresh"><i class="icon-refresh"> </i></a>
			</div>
		</div>';
	echo '<div class="list-entries">';
	$today = new DateTime(date('Y-m-d'));
	$currentDay = -1;
	$olderThan2 = false;
	foreach ($entries as $entry) {
		$entryAge = $today->diff(new DateTime($entry->getUpdated('Y-m-d')))->days;
		if ($entryAge != $currentDay)
		{
			$currentDay = $entryAge;
			switch ($entryAge) {
				case 0:
					echo '<div class="entries-date">Today</div>';
					break;
				case 1:
					echo '<div class="entries-date">Yesterday</div>';
					break;
				case 2:
					echo '<div class="entries-date">2 days ago</div>';
					break;
				default:
					if (!$olderThan2)
					{
						$olderThan2 = true;
						echo '<div class="entries-date">More than 2 days ago</div>';
					}
					break;
			}
			
		}
		echo '
			<div class="entry-container" id="entry-container-'.$entry->getId().'">
				<div class="entry-link-container'.($entry->getRead() == 1 ? ' read' : '').'">
					<div class="toggle-read">
						<a href="#" class="mark-read" data-id="'.$entry->getId().'" title="Mark read">
							<i class="icon-check"> </i>
						</a>
						<a href="#" class="mark-unread" data-id="'.$entry->getId().'" title="Mark unread">
							<i class="icon-check-empty"> </i>
						</a>
					</div>
					<div 	id="load-entry-link-'.$entry->getId().'" 
							class="load-entry-link" 
							data-id="'.$entry->getId().'" 
							data-href="'.$entry->getLink().'"
							data-feed-id="'.$entry->getFeed()->getId().'"
							data-viewtype="'.($entry->getFeed()->getViewFrame() == 0 ? 'rss' : 'www').'">
						<div class="title-wrapper">
							<div class="feed-title">'.$entry->getFeed()->getTitle().'</div>
							<div class="title">'.$entry->getTitle().'</div>
						</div>
						<div class="date">'.$entry->getUpdated('Y-m-d').'</div>
					</div>
				</div>
				<div class="load-entry-div" id="load-entry-div-'.$entry->getId().'">
					<div class="entry-content"></div>
				</div>
			</div>';
	}
	echo '</div>';
?>
{'fraction_non_alphanumeric': 0.2537896187413872, 'fraction_numerical': 0.005052824988516307, 'mean_word_length': 2.9447463768115942, 'pattern_counts': {'":': 0, '<': 97, '<?xml version=': 0, '>': 139, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4613043', 'n_tokens_mistral': 1942, 'n_tokens_neox': 1543, 'n_words': 273}