<commit_before><?
$page->title($inst_name.' Campus News')
     ->navbar_image('title-news')
     ->breadcrumbs('Campus News')
     ->breadcrumb_home();

$page->content_begin();
?>

	<div class="nonfocal">
		News items regarding events affecting the <?=$inst_name?> community.
	</div>
	
	<ul class="nav">
		<? $i = 0; ?>
		<? foreach($items->aItems as $item) { ?>
			<?
				$description = strip_tags($item->sDescription);
				$title = $item->sTitle;
				$date = article_date($item->sDate);
			?>
			<? if ($i < 3) { ?>
				<li>
					<? if (is_long_text($item)) { ?>
						<a href="<?=detailURL($title,$key)?>"><h3><?=$title?></h3><span class="smallprint"><?=html_entity_decode(summary($description))?> <span class="more">more</span> <? if ($date) { ?>(<?=$date?>)<? } ?></span></a>
					<? } else { ?>
						<div><h3><?=$title?></h3><span class="smallprint"><?=full($description)?> <? if ($date) { ?>(<?=$date?>)<? } ?></span></div>
					<? } ?>
				</li>
			<? } ?>
			<? $i++; ?>
		<? } ?>
	</ul>
	
	<ul class="nav">
		<? $i = 0;?>
		<? foreach ($news_srcs as $key => $news_src) { ?>
			<? if ($i == 0) { ?>
		    <li><a href="./?news=<?=$key?>">More from <? if ($news_src['need_the'] == true) { ?>the<? } ?><?=$news_src['title']?></a></li>
		    <? $i = 1; ?>
		  <? } else { ?>
		    <li><a href="./?news=<?=$key?>">News from <? if ($news_src['need_the'] == true) { ?>the<? } ?> <?=$news_src['title']?></a></li>
		  <? } ?>
	  <? } ?><commit_msg>Use the description field, not the full item, since it expects a string<commit_after><?
$page->title($inst_name.' Campus News')
     ->navbar_image('title-news')
     ->breadcrumbs('Campus News')
     ->breadcrumb_home();

$page->content_begin();
?>

	<div class="nonfocal">
		News items regarding events affecting the <?=$inst_name?> community.
	</div>
	
	<ul class="nav">
		<? $i = 0; ?>
		<? foreach($items->aItems as $item) { ?>
			<?
				$description = strip_tags($item->sDescription);
				$title = $item->sTitle;
				$date = article_date($item->sDate);
			?>
			<? if ($i < 3) { ?>
				<li>
					<? if (is_long_text($description)) { ?>
						<a href="<?=detailURL($title,$key)?>"><h3><?=$title?></h3><span class="smallprint"><?=html_entity_decode(summary($description))?> <span class="more">more</span> <? if ($date) { ?>(<?=$date?>)<? } ?></span></a>
					<? } else { ?>
						<div><h3><?=$title?></h3><span class="smallprint"><?=full($description)?> <? if ($date) { ?>(<?=$date?>)<? } ?></span></div>
					<? } ?>
				</li>
			<? } ?>
			<? $i++; ?>
		<? } ?>
	</ul>
	
	<ul class="nav">
		<? $i = 0;?>
		<? foreach ($news_srcs as $key => $news_src) { ?>
			<? if ($i == 0) { ?>
		    <li><a href="./?news=<?=$key?>">More from <? if ($news_src['need_the'] == true) { ?>the<? } ?><?=$news_src['title']?></a></li>
		    <? $i = 1; ?>
		  <? } else { ?>
		    <li><a href="./?news=<?=$key?>">News from <? if ($news_src['need_the'] == true) { ?>the<? } ?> <?=$news_src['title']?></a></li>
		  <? } ?>
	  <? } ?>
{'fraction_non_alphanumeric': 0.3044211947350658, 'fraction_numerical': 0.006074924063449207, 'mean_word_length': 3.5114155251141552, 'pattern_counts': {'":': 0, '<': 139, '<?xml version=': 0, '>': 157, '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': '5813667', 'n_tokens_mistral': 1255, 'n_tokens_neox': 1118, 'n_words': 190}