<commit_before><form $FormAttributes>
    <fieldset class="checkout-cart-items">
        $Fields.dataFieldByName(SecurityID)

        <table>
            <tr>
                <th class="image"></th>
                <th class="description">
                    <%t Checkout.Description "Description" %>
                </th>
                <th class="quantity">
                    <%t Checkout.Qty "Qty" %>
                </th>
                <th class="price">
                    <%t Checkout.ItemCost "Item Cost" %>
                </th>
                <th class="actions"></th>
            </tr>

            <% loop $Controller.Items %>
                <tr><% with $Object %>
                    <td>
                        <% if $Image %>$Image.CroppedImage(75,75)
                        <% else_if $Images && $Images.exists %>$Images.first.CroppedImage(75,75)<% end_if %>
                    </td>
                    <td>
                        <strong>$Title</strong><br/>
                        <% if $Content %>$Content.Summary(10)<br/><% end_if %>
                        <% if $Up.Customised.exists %><div class="small">
                            <% loop $Up.Customised %><div class="{$ClassName}">
                                <strong>{$Title}:</strong> {$Value}
                                <% if not $Last %></br><% end_if %>
                            </div><% end_loop %>
                        </div><% end_if %>
                    </td>
                    <td class="quantity">
                        <input type="text" name="Quantity_{$Up.Key}" value="{$Up.Quantity}" />
                    </td>
                    <td class="total">
                        {$Up.Price.nice}
                    </td>
                    <td class="remove">
                        <a href="{$Top.Controller.Link('remove')}/{$Up.Key}" class="btn btn-red">
                            x
                        </a>
                    </td>
                <% end_with %></tr>
            <% end_loop %>

            <tr class="subtotal">
                <td class="text-right" colspan="3">
                    <strong>
                        <%t Checkout.SubTotal "Sub Total" %>
                    </strong>
                </td>
                <td colspan="2">
                    {$Controller.SubTotalCost.Nice}
                </td>
            </tr>
        </table>
    </fieldset>

    <fieldset class="checkout-cart-actions Actions">
        <a href="$Controller.Link('emptycart')" class="btn btn-red">
            <%t Checkout.CartEmpty "Empty Cart" %>
        </a>
        
        $Actions.dataFieldByName(action_doUpdate)
    </fieldset>
</form>
<commit_msg>Add additional table formatting on shopping cart<commit_after><form $FormAttributes>
    <fieldset class="checkout-cart-items">
        $Fields.dataFieldByName(SecurityID)

        <table>
            <thead>
                <tr>
                    <th class="image"></th>
                    <th class="description">
                        <%t Checkout.Description "Description" %>
                    </th>
                    <th class="quantity">
                        <%t Checkout.Qty "Qty" %>
                    </th>
                    <th class="price">
                        <%t Checkout.ItemCost "Item Cost" %>
                    </th>
                    <th class="actions"></th>
                </tr>
            </thead>

            <tbody>
                <% loop $Controller.Items %>
                    <tr><% with $Object %>
                        <td>
                            <% if $Image %>$Image.CroppedImage(75,75)
                            <% else_if $Images && $Images.exists %>$Images.first.CroppedImage(75,75)<% end_if %>
                        </td>
                        <td>
                            <strong>$Title</strong><br/>
                            <% if $Content %>$Content.Summary(10)<br/><% end_if %>
                            <% if $Up.Customised.exists %><div class="small">
                                <% loop $Up.Customised %><div class="{$ClassName}">
                                    <strong>{$Title}:</strong> {$Value}
                                    <% if not $Last %></br><% end_if %>
                                </div><% end_loop %>
                            </div><% end_if %>
                        </td>
                        <td class="quantity">
                            <input type="text" name="Quantity_{$Up.Key}" value="{$Up.Quantity}" />
                        </td>
                        <td class="total">
                            {$Up.Price.nice}
                        </td>
                        <td class="remove">
                            <a href="{$Top.Controller.Link('remove')}/{$Up.Key}" class="btn btn-red">
                                x
                            </a>
                        </td>
                    <% end_with %></tr>
                <% end_loop %>
            </tbody>

            <tfoot>
                <tr class="subtotal">
                    <td class="text-right" colspan="3">
                        <strong>
                            <%t Checkout.SubTotal "Sub Total" %>
                        </strong>
                    </td>
                    <td colspan="2">
                        {$Controller.SubTotalCost.Nice}
                    </td>
                </tr>
            </tfoot>
        </table>
    </fieldset>

    <fieldset class="checkout-cart-actions Actions">
        <a href="$Controller.Link('emptycart')" class="btn btn-red">
            <%t Checkout.CartEmpty "Empty Cart" %>
        </a>
        
        $Actions.dataFieldByName(action_doUpdate)
    </fieldset>
</form>

{'fraction_non_alphanumeric': 0.14308012486992716, 'fraction_numerical': 0.004162330905306972, 'mean_word_length': 0.9456815114709851, 'pattern_counts': {'":': 0, '<': 161, '<?xml version=': 0, '>': 161, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3090904', 'n_tokens_mistral': 1573, 'n_tokens_neox': 1387, 'n_words': 270}