<commit_before><?php
// phpcs:disable Magento2.Security.LanguageConstruct.DirectOutput
// phpcs:disable Magento2.PHP.ShortEchoSyntax.ShortEchoTag

/** @var $block \Magento\Ui\Block\Wrapper */

//TODO: recently viewed list required - now grid template is used
?>
<section
    class="
        recently-viewed
        recently-viewed--grid
    "
>
    <div class="recently-viewed__block">
        <div
            class="
                recently-viewed__heading
                section__heading
            "
        >
            <h2
                class="
                    recently-viewed__title
                    heading--first-level
                    margin-0
                "
            >
                <?= $block->escapeHtml(__('Recently Viewed')) ?>
            </h2>
        </div>

        <?php
        $sliderSlidesToShow = $block->getSliderSlidesToShow();
        $sliderSlidesToShow767 = $block->getSliderSlidesToShow767();
        $sliderSlidesToShow1023 = $block->getSliderSlidesToShow1023();

        //slider config
        $sliderIsAjax           = true;
        $sliderArrows           = true;
        $sliderClass            = 'slider--products slider--nested';
        $sliderInfinite         = 'no';
        $sliderSlidesToShow     = $sliderSlidesToShow ? $sliderSlidesToShow : '2';
        $sliderSlidesToShow767  = $sliderSlidesToShow767 ? $sliderSlidesToShow767 : '3';
        $sliderSlidesToShow1023 = $sliderSlidesToShow1023 ? $sliderSlidesToShow1023 : '4';
        $sliderSlidesToScroll   = '1';
        $sliderResponsiveConfig = '[
            {
                "breakpoint": 767,
                "settings": {
                    "slidesToShow":' . $sliderSlidesToShow767 . ',
                    "slidesToScroll": 1,
                    "dots": false
                }
            },
            {
                "breakpoint": 1023,
                "settings": {
                    "slidesToShow":' . $sliderSlidesToShow1023 . ',
                    "slidesToScroll": 1,
                    "dots": false
                }
            }
        ]';
        ?>
        <?php
        $sliderBlockBefore = $this->getLayout()
            ->createBlock("Magento\Framework\View\Element\Template")
            ->setTemplate("Magento_Theme::html/slider.phtml");

        $sliderBlockBefore->setData([
            'is_ajax'           => $sliderIsAjax,
            'arrows'            => $sliderArrows,
            'slides_element'    => '.admin__data-grid-outer-wrap',
            'slider_html'       => 'before-slides',
            'slider_class'      => $sliderClass,
            'infinite'          => $sliderInfinite,
            'slides_to_show'    => $sliderSlidesToShow,
            'slides_to_scroll'  => $sliderSlidesToScroll,
            'responsive_config' => $sliderResponsiveConfig
        ]);
        ?>
        <?= $sliderBlockBefore->toHtml(); ?>

        <?= /* @noEscape */ $block->renderApp([
            'widget_columns' => [
                'displayMode' => 'grid',
                'displayAs' => 'slider',
                'itemWrapperClasses' => 'slider__item',
                'itemClasses' => 'product-grid-item product-grid-item--slider-item'
            ],
            'image' => [
                'imageCode' => 'recently_viewed_products_grid_content_widget'
            ]
        ]) ?>

        <?php $sliderBlockAfter = $this->getLayout()
            ->createBlock("Magento\Framework\View\Element\Template")
            ->setTemplate("Magento_Theme::html/slider.phtml"),
            $sliderBlockAfter->setData([
                'slider_html'   => 'after-slides'
            ])
        ?>
        <?=  /* @noEscape */ $sliderBlockAfter->toHtml(); ?>
    </div>
</section><commit_msg>#560 fix syntax error (unexpected ',')<commit_after><?php
// phpcs:disable Magento2.Security.LanguageConstruct.DirectOutput
// phpcs:disable Magento2.PHP.ShortEchoSyntax.ShortEchoTag

/** @var $block \Magento\Ui\Block\Wrapper */

//TODO: recently viewed list required - now grid template is used
?>
<section
    class="
        recently-viewed
        recently-viewed--grid
    "
>
    <div class="recently-viewed__block">
        <div
            class="
                recently-viewed__heading
                section__heading
            "
        >
            <h2
                class="
                    recently-viewed__title
                    heading--first-level
                    margin-0
                "
            >
                <?= $block->escapeHtml(__('Recently Viewed')) ?>
            </h2>
        </div>

        <?php
        $sliderSlidesToShow = $block->getSliderSlidesToShow();
        $sliderSlidesToShow767 = $block->getSliderSlidesToShow767();
        $sliderSlidesToShow1023 = $block->getSliderSlidesToShow1023();

        //slider config
        $sliderIsAjax           = true;
        $sliderArrows           = true;
        $sliderClass            = 'slider--products slider--nested';
        $sliderInfinite         = 'no';
        $sliderSlidesToShow     = $sliderSlidesToShow ? $sliderSlidesToShow : '2';
        $sliderSlidesToShow767  = $sliderSlidesToShow767 ? $sliderSlidesToShow767 : '3';
        $sliderSlidesToShow1023 = $sliderSlidesToShow1023 ? $sliderSlidesToShow1023 : '4';
        $sliderSlidesToScroll   = '1';
        $sliderResponsiveConfig = '[
            {
                "breakpoint": 767,
                "settings": {
                    "slidesToShow":' . $sliderSlidesToShow767 . ',
                    "slidesToScroll": 1,
                    "dots": false
                }
            },
            {
                "breakpoint": 1023,
                "settings": {
                    "slidesToShow":' . $sliderSlidesToShow1023 . ',
                    "slidesToScroll": 1,
                    "dots": false
                }
            }
        ]';
        ?>
        <?php
        $sliderBlockBefore = $this->getLayout()
            ->createBlock("Magento\Framework\View\Element\Template")
            ->setTemplate("Magento_Theme::html/slider.phtml");

        $sliderBlockBefore->setData([
            'is_ajax'           => $sliderIsAjax,
            'arrows'            => $sliderArrows,
            'slides_element'    => '.admin__data-grid-outer-wrap',
            'slider_html'       => 'before-slides',
            'slider_class'      => $sliderClass,
            'infinite'          => $sliderInfinite,
            'slides_to_show'    => $sliderSlidesToShow,
            'slides_to_scroll'  => $sliderSlidesToScroll,
            'responsive_config' => $sliderResponsiveConfig
        ]);
        ?>
        <?= $sliderBlockBefore->toHtml(); ?>

        <?= /* @noEscape */ $block->renderApp([
            'widget_columns' => [
                'displayMode' => 'grid',
                'displayAs' => 'slider',
                'itemWrapperClasses' => 'slider__item',
                'itemClasses' => 'product-grid-item product-grid-item--slider-item'
            ],
            'image' => [
                'imageCode' => 'recently_viewed_products_grid_content_widget'
            ]
        ]) ?>

        <?php $sliderBlockAfter = $this->getLayout()
            ->createBlock("Magento\Framework\View\Element\Template")
            ->setTemplate("Magento_Theme::html/slider.phtml");
            $sliderBlockAfter->setData([
                'slider_html'   => 'after-slides'
            ])
        ?>
        <?=  /* @noEscape */ $sliderBlockAfter->toHtml(); ?>
    </div>
</section>
{'fraction_non_alphanumeric': 0.12801064537591483, 'fraction_numerical': 0.016367265469061875, 'mean_word_length': 1.537474679270763, 'pattern_counts': {'":': 20, '<': 35, '<?xml version=': 0, '>': 99, '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': '7318232', 'n_tokens_mistral': 2191, 'n_tokens_neox': 2090, 'n_words': 284}