<commit_before><div>
<?php
$html = "";
$html .= "<h4>Today 50% discount for the following pictures!</h4>";
foreach($options['offer']->pictures() as $picture){
	$html .= "<div><a href='/detail/". $picture->getId(). "'>
	<img src='/" . $picture->getThumbnailPath() . "' />
	<br>
	<span>" . $picture->getTitle() . " *** " . money_format('%.2n CHF', $picture->getPrice()*0.5)."</span>
	</a>
	</div>";
}
echo $html;
?>
</div><commit_msg>prevent from null pointer if null<commit_after><div>
<?php
$html = "";
$html .= "<h4>Today 50% discount for the following pictures!</h4>";
if(isset($options['offer']) && !is_null($options['offer'])) {
	foreach ($options['offer']->pictures() as $picture) {
		$html .= "<div><a href='/detail/" . $picture->getId() . "'>
	<img src='/" . $picture->getThumbnailPath() . "' />
	<br>
	<span>" . $picture->getTitle() . " *** " . money_format('%.2n CHF', $picture->getPrice() * 0.5) . "</span>
	</a>
	</div>";
	}
}
echo $html;
?>
</div>
{'fraction_non_alphanumeric': 0.2909280500521376, 'fraction_numerical': 0.014598540145985401, 'mean_word_length': 4.274725274725275, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 39, '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': '7472771', 'n_tokens_mistral': 377, 'n_tokens_neox': 363, 'n_words': 73}