<commit_before><%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<jsp:useBean id="promotion" type="com.sdl.ecommerce.api.model.ProductsPromotion" scope="request"/>
<jsp:useBean id="viewHelper" type="com.sdl.ecommerce.dxa.ECommerceViewHelper" scope="request"/>
<div>

    <!-- TODO: Add info about the name of the promotion when in edit mode -->

    <div class="row">
        <h3 class="promotion-title"><c:if test="${viewHelper.showEditControls(promotion)}"><i class="fa fa-arrow-circle-right"></i> ${promotion.title} <a class="xpm-button popup-iframe" style="margin: 0px 8px;font-size: 14px;" href="${promotion.editUrl}"><i class="fa fa-pencil-square"></i></a></c:if></h3>
    </div>
    <div class="row">
        <c:forEach var="product" items="${promotion.products}">
            <div class="col-sm-6 col-md-3 product-promo">
                <a href="${product.detailPageUrl}" class="product-teaser-link">
                    <div class="teaser">
                        <img src="${product.thumbnailUrl}" class="teaser-img loader-img"/>
                        <div class="product-promo-ribbon">
                            <p class="teaser-description product-promo-name">
                                    ${product.name}
                            </p>
                            <h4 class="teaser-heading product-price">${product.price.formattedPrice}</h4>
                        </div>
                    </div>
                </a>
            </div><commit_msg>Corrected a bug: promotion title did not show when not in XPM.<commit_after><%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<jsp:useBean id="promotion" type="com.sdl.ecommerce.api.model.ProductsPromotion" scope="request"/>
<jsp:useBean id="viewHelper" type="com.sdl.ecommerce.dxa.ECommerceViewHelper" scope="request"/>
<div>

    <!-- TODO: Add info about the name of the promotion when in edit mode -->

    <div class="row">
        <h3 class="promotion-title"><i class="fa fa-arrow-circle-right"></i> ${promotion.title} <c:if test="${viewHelper.showEditControls(promotion)}"><a class="xpm-button popup-iframe" style="margin: 0px 8px;font-size: 14px;" href="${promotion.editUrl}"><i class="fa fa-pencil-square"></i></a></c:if></h3>
    </div>
    <div class="row">
        <c:forEach var="product" items="${promotion.products}">
            <div class="col-sm-6 col-md-3 product-promo">
                <a href="${product.detailPageUrl}" class="product-teaser-link">
                    <div class="teaser">
                        <img src="${product.thumbnailUrl}" class="teaser-img loader-img"/>
                        <div class="product-promo-ribbon">
                            <p class="teaser-description product-promo-name">
                                    ${product.name}
                            </p>
                            <h4 class="teaser-heading product-price">${product.price.formattedPrice}</h4>
                        </div>
                    </div>
                </a>
            </div>
{'fraction_non_alphanumeric': 0.17491441020852785, 'fraction_numerical': 0.007469654528478058, 'mean_word_length': 2.303186022610483, 'pattern_counts': {'":': 0, '<': 69, '<?xml version=': 0, '>': 69, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5942294', 'n_tokens_mistral': 989, 'n_tokens_neox': 941, 'n_words': 174}