<commit_before>{* Filter properites *}
{block name="frontend_listing_filter_properties"}
	{if $sPropertiesOptionsOnly|@count}
		{block name="frontend_listing_filter_properties_box"}
			{if $sPropertiesGrouped|@count > 1 && $sCategoryContent.showFilterGroups}
				{foreach from=$sPropertiesGrouped item=sPropertyGroup key=name}
					<a href="{$sPropertyGroup.default.linkSelect}" title="{$sCategoryInfo.name}">
						<div{if $activeFilterGroup == $name} class="active"{/if}>{$name}</div>
					</a>
					{if $activeFilterGroup == $name}
						{foreach from=$sPropertiesOptionsOnly item=value key=option}
							{if $value.properties.group === $name}
								<h5 class="bold">{$option}</h5>
								<ul class="active">
									{foreach from=$value.values item=optionValue}
										{if $optionValue.active}
											<li>{if $optionValue.valueTranslation}{$optionValue.valueTranslation}{else}{$optionValue.value}{/if}
												({$optionValue.count})
											</li>
										{else}
											<li><a href="{$optionValue.link}"
												   title="{$sCategoryInfo.name}">{if $optionValue.valueTranslation}{$optionValue.valueTranslation}{else}{$optionValue.value}{/if} {if $optionValue.count > 0}({$optionValue.count}){/if}</a>
											</li>
										{/if}
									{/foreach}
									{if $value.properties.active}
										<li class="close"><a href="{$value.properties.linkRemoveProperty}"
															 title="{$sCategoryInfo.name}">{s name='FilterLinkDefault'}{/s}</a>
										</li>
									{/if}
								</ul>
							{/if}
						{/foreach}
					{/if}
				{/foreach}
			{else}
				{foreach from=$sPropertiesOptionsOnly item=value key=option}
					{if $value|@count}
						<div{if $value.properties.active} class="active"{/if}>{$option} <span
									class="expandcollapse">+</span></div>
						<div class="slideContainer">
							<ul>
								{foreach from=$value.values item=optionValue}
									{if $optionValue.active}
										<li class="active">
											{if $optionValue.valueTranslation}{$optionValue.valueTranslation}{else}{$optionValue.value}{/if} {if $optionValue.count > 0}({$optionValue.count}){/if}
										</li>
									{else}
										<li>
											<a href="{$optionValue.link}" title="{$sCategoryInfo.name}">
												{if $optionValue.valueTranslation}{$optionValue.valueTranslation}{else}{$optionValue.value}{/if} {if $optionValue.count > 0}({$optionValue.count}){/if}
											</a>
										</li>
									{/if}
								{/foreach}
								{if $value.properties.active}
									<li class="close">
										<a href="{$value.properties.linkRemoveProperty}" title="{$sCategoryInfo.name}">
											{se name='FilterLinkDefault'}{/se}
										</a>
									</li>
								{/if}
							</ul>
						</div>
					{/if}
				{/foreach}
			{/if}
		{/block}
	{/if}
{/block}<commit_msg>SW-7855 Refactored: The HTML structure of the filter properties in the listing<commit_after>{* Filter properites *}
{block name="frontend_listing_filter_properties"}
	{if $sPropertiesOptionsOnly|@count}
		{block name="frontend_listing_filter_properties_box"}
			{if $sPropertiesGrouped|@count > 1 && $sCategoryContent.showFilterGroups}
				{foreach from=$sPropertiesGrouped item=sPropertyGroup key=name}
					<a class="filter--link" href="{$sPropertyGroup.default.linkSelect}" title="{$sCategoryInfo.name}">
						<span{if $activeFilterGroup == $name} class="filter--indicator is--active"{/if}>{$name}</span>
					</a>
					{if $activeFilterGroup == $name}
						{foreach from=$sPropertiesOptionsOnly item=value key=option}
							{if $value.properties.group === $name}
								<h5 class="filter--headline">{$option}</h5>
								<ul class="filter--list is-active">
									{foreach from=$value.values item=optionValue}
										{if $optionValue.active}
											<li class="filter--entry">
                                                {if $optionValue.valueTranslation}{$optionValue.valueTranslation}{else}{$optionValue.value}{/if}
												({$optionValue.count})
											</li>
										{else}
											<li class="filter--entry">
                                                <a class="filter--link" href="{$optionValue.link}" title="{$sCategoryInfo.name}">
                                                    {if $optionValue.valueTranslation}{$optionValue.valueTranslation}{else}{$optionValue.value}{/if} {if $optionValue.count > 0}({$optionValue.count}){/if}
                                                </a>
											</li>
										{/if}
									{/foreach}
									{if $value.properties.active}
										<li class="filter--entry">
                                            <a class="filter--link link--close" href="{$value.properties.linkRemoveProperty}" title="{$sCategoryInfo.name}">
                                                {s name='FilterLinkDefault'}{/s}
                                            </a>
										</li>
									{/if}
								</ul>
							{/if}
						{/foreach}
					{/if}
				{/foreach}
			{else}
				{foreach from=$sPropertiesOptionsOnly item=value key=option}
					{if $value|@count}
						<span{if $value.properties.active} class="filter--indicator is--active"{/if}>
                            {$option} <span class="filter--expand-collapse">+</span>
                        </span>
						<div class="filter--content">
							<ul class="filter--list">
								{foreach from=$value.values item=optionValue}
									{if $optionValue.active}
										<li class="filter--entry is--active">
											{if $optionValue.valueTranslation}{$optionValue.valueTranslation}{else}{$optionValue.value}{/if}
                                            {if $optionValue.count > 0}({$optionValue.count}){/if}
										</li>
									{else}
										<li class="filter--entry">
											<a class="filter--link" href="{$optionValue.link}" title="{$sCategoryInfo.name}">
												{if $optionValue.valueTranslation}{$optionValue.valueTranslation}{else}{$optionValue.value}{/if} {if $optionValue.count > 0}({$optionValue.count}){/if}
											</a>
										</li>
									{/if}
								{/foreach}
								{if $value.properties.active}
									<li class="filter--entry">
										<a class="filter--link link--close" href="{$value.properties.linkRemoveProperty}" title="{$sCategoryInfo.name}">
											{s name='FilterLinkDefault'}{/s}
										</a>
									</li>
								{/if}
							</ul>
						</div>
					{/if}
				{/foreach}
			{/if}
		{/block}
	{/if}
{/block}
{'fraction_non_alphanumeric': 0.16775092936802974, 'fraction_numerical': 0.0024783147459727386, 'mean_word_length': 2.2496225465525916, 'pattern_counts': {'":': 0, '<': 75, '<?xml version=': 0, '>': 83, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 16, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7252130', 'n_tokens_mistral': 2771, 'n_tokens_neox': 1898, 'n_words': 304}