<commit_before><?php
/** @var \WEEEOpen\Tarallo\Feature[] $features */
/** @var \WEEEOpen\Tarallo\Feature[] $product */
$groups = $this->getGroupedFeatures($this->getUltraFeatures($features));

if(count($features) > 0): ?>
	<?php foreach($groups as $groupTitle => $group): ?>
	<section>
		<h3><?=$groupTitle?></h3>
		<ul>
			<?php foreach($group as $feature): /** @var $feature \WEEEOpen\Tarallo\SSRv1\UltraFeature */ ?>
				<li>
					<div class="name"><span><?=$feature->pname /* The span is a <label> in edit mode, we need an element here in view mode for css to work */?></span></div>
                    <?php if(isset($product[$feature->name]) && $product[$feature->name]->value !== $feature->value): ?>
					    <div class="value"><div><del><?=$this->e(\WEEEOpen\Tarallo\SSRv1\FeaturePrinter::printableValue($product[$feature->name]))?></del>&nbsp;<?=$this->e($feature->pvalue)?></div></div>
                    <?php else: ?>
                        <div class="value"><?=$this->contentEditableWrap($this->e($feature->pvalue))?></div>
                    <?php endif ?>
				</li>
			<?php endforeach; ?>
		</ul>
	</section>
	<?php endforeach ?>
<?php endif; ?><commit_msg>Hide default variant when displaying items<commit_after><?php
/** @var \WEEEOpen\Tarallo\Feature[] $features */
/** @var \WEEEOpen\Tarallo\Feature[] $product */
if(isset($features['variant']) && $features['variant']->value === \WEEEOpen\Tarallo\Product::DEFAULT_VARIANT) {
	unset($features['variant']);
}
$groups = $this->getGroupedFeatures($this->getUltraFeatures($features));

if(count($features) > 0): ?>
	<?php foreach($groups as $groupTitle => $group): ?>
	<section>
		<h3><?=$groupTitle?></h3>
		<ul>
			<?php foreach($group as $feature): /** @var $feature \WEEEOpen\Tarallo\SSRv1\UltraFeature */ ?>
				<li>
					<div class="name"><span><?=$feature->pname /* The span is a <label> in edit mode, we need an element here in view mode for css to work */?></span></div>
                    <?php if(isset($product[$feature->name]) && $product[$feature->name]->value !== $feature->value): ?>
					    <div class="value"><div><del><?=$this->e(\WEEEOpen\Tarallo\SSRv1\FeaturePrinter::printableValue($product[$feature->name]))?></del>&nbsp;<?=$this->e($feature->pvalue)?></div></div>
                    <?php else: ?>
                        <div class="value"><?=$this->contentEditableWrap($this->e($feature->pvalue))?></div>
                    <?php endif ?>
				</li>
			<?php endforeach; ?>
		</ul>
	</section>
	<?php endforeach ?>
<?php endif; ?>
{'fraction_non_alphanumeric': 0.23152903990517582, 'fraction_numerical': 0.0039510075069142635, 'mean_word_length': 3.697588126159555, 'pattern_counts': {'":': 0, '<': 73, '<?xml version=': 0, '>': 106, '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': '2469214', 'n_tokens_mistral': 872, 'n_tokens_neox': 816, 'n_words': 151}