<commit_before>
<div id="notice">
<?php foreach($notifications as $type => $notification): ?>
	<?php if ( ! empty($notification)): ?>

	<?php foreach ($notification as $notice): ?>
	<div class="<?php echo $type ?>">
		<h6><?php echo __(UTF8::ucfirst($type)) ?></h6>

		<?php if ($notice['message'] !== NULL): ?>
		<p><?php echo $notice['message'] ?></p>
		<?php endif; ?>

		<?php if ( ! empty($notice['items'])): ?>
		<ul>
			<?php foreach($notice['items'] as $item): ?>
			<li><?php echo __($item) ?></li>
			<?php endforeach; ?>
		</ul>
		<?php endif; ?>
	</div>
	<?php endforeach; ?>

	<?php endif; ?>
<?php endforeach; ?>
</div><commit_msg>Update the view for new notice handling<commit_after><div id="notice">
<?php foreach($notices as $type => $set): ?>
	<?php if ( ! empty($set)): ?>

	<?php foreach ($set as $notice): ?>
	<div class="<?php echo $type; ?>">
		<h6><?php echo UTF8::ucfirst($notice['type']); ?></h6>

		<?php if ($notice['message'] !== NULL): ?>
		<p><?php echo HTML::chars($notice['message']); ?></p>
		<?php endif; ?>

		<?php if ( ! empty($notice['items'])): ?>
		<ul>
			<?php foreach($notice['items'] as $item): ?>
			<li><?php echo HTML::chars($item); ?></li>
			<?php endforeach; ?>
		</ul>
		<?php endif; ?>
	</div>
	<?php endforeach; ?>

	<?php endif; ?>
<?php endforeach; ?>
</div>
{'fraction_non_alphanumeric': 0.2770167427701674, 'fraction_numerical': 0.0045662100456621, 'mean_word_length': 4.433884297520661, 'pattern_counts': {'":': 0, '<': 59, '<?xml version=': 0, '>': 61, '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': '7353234', 'n_tokens_mistral': 500, 'n_tokens_neox': 471, 'n_words': 122}