<commit_before>{namespace name="frontend/listing/listing_actions"}

{block name="frontend_listing_filter_facet_media_list"}
    <div class="filter-panel filter--media facet--{$facet->getFacetName()}"
         data-filter-type="media"
         data-field-name="{$facet->getFieldName()}">

        {block name="frontend_listing_filter_facet_media_list_flyout"}
            <div class="filter-panel--flyout">

                {block name="frontend_listing_filter_facet_media_list_title"}
                    <label class="filter-panel--title">
                        {$facet->getLabel()}
                    </label>
                {/block}

                {block name="frontend_listing_filter_facet_media_list_icon"}
                    <span class="filter-panel--icon"></span>
                {/block}

                {block name="frontend_listing_filter_facet_media_list_content"}
                    <div class="filter-panel--content">

                        {block name="frontend_listing_filter_facet_media_list_list"}
                            <ul class="filter-panel--media-list">

                                {foreach $facet->getValues() as $option}

                                    {block name="frontend_listing_filter_facet_media_list_option"}
                                        <li class="filter-panel--media-option">

                                            {block name="frontend_listing_filter_facet_media_list_input"}
                                                <input type="checkbox"
                                                       id="__{$facet->getFieldName()}__{$option->getId()}"
                                                       name="__{$facet->getFieldName()}__{$option->getId()}"
                                                       value="{$option->getId()}"
                                                       {if $option->isActive()}checked="checked" {/if}/>
                                            {/block}

                                            {block name="frontend_listing_filter_facet_media_list_label"}
                                                {$mediaFile = {link file='frontend/_public/src/img/no-picture.jpg'}}
                                                {if $option->getMedia()}
                                                    {$mediaFile = $option->getMedia()->getFile()}
                                                {/if}

                                                <label class="filter-panel--media-label"
                                                       for="__{$facet->getFieldName()}__{$option->getId()}">
                                                    <img class="filter-panel--media-image"
                                                         src="{$mediaFile}"
                                                         alt="{$option->getLabel()}" />
                                                </label>

                                            {/block}
                                        </li><commit_msg>SW-8742 added title attribute to image filter<commit_after>{namespace name="frontend/listing/listing_actions"}

{block name="frontend_listing_filter_facet_media_list"}
    <div class="filter-panel filter--media facet--{$facet->getFacetName()}"
         data-filter-type="media"
         data-field-name="{$facet->getFieldName()}">

        {block name="frontend_listing_filter_facet_media_list_flyout"}
            <div class="filter-panel--flyout">

                {block name="frontend_listing_filter_facet_media_list_title"}
                    <label class="filter-panel--title">
                        {$facet->getLabel()}
                    </label>
                {/block}

                {block name="frontend_listing_filter_facet_media_list_icon"}
                    <span class="filter-panel--icon"></span>
                {/block}

                {block name="frontend_listing_filter_facet_media_list_content"}
                    <div class="filter-panel--content">

                        {block name="frontend_listing_filter_facet_media_list_list"}
                            <ul class="filter-panel--media-list">

                                {foreach $facet->getValues() as $option}

                                    {block name="frontend_listing_filter_facet_media_list_option"}
                                        <li class="filter-panel--media-option">

                                            {block name="frontend_listing_filter_facet_media_list_input"}
                                                <input type="checkbox"
                                                       id="__{$facet->getFieldName()}__{$option->getId()}"
                                                       name="__{$facet->getFieldName()}__{$option->getId()}"
                                                       value="{$option->getId()}"
                                                       title="{$option->getLabel()}"
                                                       {if $option->isActive()}checked="checked" {/if}/>
                                            {/block}

                                            {block name="frontend_listing_filter_facet_media_list_label"}
                                                {$mediaFile = {link file='frontend/_public/src/img/no-picture.jpg'}}
                                                {if $option->getMedia()}
                                                    {$mediaFile = $option->getMedia()->getFile()}
                                                {/if}

                                                <label class="filter-panel--media-label"
                                                       for="__{$facet->getFieldName()}__{$option->getId()}">
                                                    <img class="filter-panel--media-image"
                                                         src="{$mediaFile}"
                                                         alt="{$option->getLabel()}" />
                                                </label>

                                            {/block}
                                        </li>
{'fraction_non_alphanumeric': 0.1081819643144189, 'fraction_numerical': 0.0006429834431763383, 'mean_word_length': 0.974611234528721, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 64, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 86, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5220687', 'n_tokens_mistral': 1287, 'n_tokens_neox': 1232, 'n_words': 152}