<commit_before><div xmlns="http://www.w3.org/1999/xhtml" lang="en"
     xmlns:f="http://typo3.org/ns/TYPO3/Fluid/ViewHelpers">

    <f:layout name="Swiper" />

    <f:section name="Main">
        <div class="swiper-container{sliderCssClass}" id="{sliderCssId}">
            <div class="swiper-wrapper">
                <f:for each="{slides}" as="slide">
                    <div class="swiper-slide" style="{slideCss}{f:if(condition: slide.image, then: 'background-image: url({f:uri.image(image: slide.image, height: settings.show.image.height, width: settings.show.image.width)})')};">
                        <div class="overlay"></div>
                        <div class="content">{slide.content -> f:format.html()}</div>
                    </div>
                </f:for>
            </div>

            <f:if condition="{settings.pagination}">
                <div class="swiper-pagination"></div>
            </f:if>

            <f:if condition="{settings.buttons}">
                <div class="swiper-button-prev"></div>
                <div class="swiper-button-next"></div>
            </f:if>

            <f:if condition="{settings.scrollbar}">
                <div class="swiper-scrollbar"></div>
            </f:if>
        </div><commit_msg>[TASK] Only add overlay above image if there is text content<commit_after><div xmlns="http://www.w3.org/1999/xhtml" lang="en"
     xmlns:f="http://typo3.org/ns/TYPO3/Fluid/ViewHelpers">

    <f:layout name="Swiper" />

    <f:section name="Main">
        <div class="swiper-container{sliderCssClass}" id="{sliderCssId}">
            <div class="swiper-wrapper">
                <f:for each="{slides}" as="slide">
                    <div class="swiper-slide" style="{slideCss}{f:if(condition: slide.image, then: 'background-image: url({f:uri.image(image: slide.image, height: settings.show.image.height, width: settings.show.image.width)})')};">
                        <f:if condition="{slide.content}">
                            <div class="overlay"></div>
                            <div class="content">{slide.content -> f:format.html()}</div>
                        </f:if>
                    </div>
                </f:for>
            </div>

            <f:if condition="{settings.pagination}">
                <div class="swiper-pagination"></div>
            </f:if>

            <f:if condition="{settings.buttons}">
                <div class="swiper-button-prev"></div>
                <div class="swiper-button-next"></div>
            </f:if>

            <f:if condition="{settings.scrollbar}">
                <div class="swiper-scrollbar"></div>
            </f:if>
        </div>
{'fraction_non_alphanumeric': 0.18082706766917292, 'fraction_numerical': 0.005263157894736842, 'mean_word_length': 1.911378555798687, 'pattern_counts': {'":': 0, '<': 63, '<?xml version=': 0, '>': 65, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 4}, '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': '1449635', 'n_tokens_mistral': 837, 'n_tokens_neox': 779, 'n_words': 120}