<commit_before><table class="table data">
    <thead>
        <tr>
            <th><span>SKU</span></th>
            <th><span>Product Name</span></th>
            <th class="text-center"><span>Quantity</span></th>
            <th class="text-center"><span>Discount</span></th>
            <th class="text-center"><span>Price</span></th>
            <th class="text-right"><span>Subtotal</span></th>
        </tr>
    </thead>
    <tbody>
        <?php  ?>
        <?php foreach($model->products as $i => $product): ?>
        <tr>
            <td class="text-left"><?= $product->sku ?></td>
            <td class="text-left"><?= $product->pivot->name ?></td>
            <td class="text-center"><?= number_format($product->pivot->qty) ?></td>
            <td class="text-center"><?= Currency::format($product->pivot->discount) ?></td>
            <td class="text-right"><?= Currency::format($product->pivot->price) ?></td>
            <td class="text-right"><?= Currency::format(($product->pivot->price - $product->pivot->discount) * $product->pivot->qty) ?></td>
        </tr>

        <?php endforeach ?>
    </tbody>
    <tfoot>
        <tr>
            <th colspan="5">Subtotal</th>
            <th class="text-right"><?= Currency::format($model->subtotal) ?></th>
        </tr>
        <!--<tr>-->
            <!--<th colspan="4">Shipping Cost</th>-->
            <!--<th class="text-right"><?= Currency::format($model->shipping_cost) ?></th>-->
        <!--</tr>-->
        <tr>
            <th colspan="5">Discount</th>
            <th class="text-right"><?= Currency::format($model->discount) ?></th>
        </tr>
        <tr>
            <th colspan="5">Total</th>
            <th class="text-right"><?= Currency::format($model->subtotal - $model->discount) ?></th>
        </tr>
    </tfoot>
</table>
<commit_msg>Display shipping cost on order detail<commit_after><table class="table data">
    <thead>
        <tr>
            <th><span>SKU</span></th>
            <th><span>Product Name</span></th>
            <th class="text-center"><span>Quantity</span></th>
            <th class="text-center"><span>Discount</span></th>
            <th class="text-center"><span>Price</span></th>
            <th class="text-right"><span>Subtotal</span></th>
        </tr>
    </thead>
    <tbody>
        <?php  ?>
        <?php foreach($model->products as $i => $product): ?>
        <tr>
            <td class="text-left"><?= $product->sku ?></td>
            <td class="text-left"><?= $product->pivot->name ?></td>
            <td class="text-center"><?= number_format($product->pivot->qty) ?></td>
            <td class="text-center"><?= Currency::format($product->pivot->discount) ?></td>
            <td class="text-right"><?= Currency::format($product->pivot->price) ?></td>
            <td class="text-right"><?= Currency::format(($product->pivot->price - $product->pivot->discount) * $product->pivot->qty) ?></td>
        </tr>

        <?php endforeach ?>
    </tbody>
    <tfoot>
        <tr>
            <th colspan="5">Subtotal</th>
            <th class="text-right"><?= Currency::format($model->subtotal) ?></th>
        </tr>
        <tr>
            <th colspan="5">Shipping Cost</th>
            <th class="text-right"><?= Currency::format($model->shipping_cost) ?></th>
        </tr>
        <tr>
            <th colspan="5">Discount</th>
            <th class="text-right"><?= Currency::format($model->discount) ?></th>
        </tr>
        <tr>
            <th colspan="5">Total</th>
            <th class="text-right"><?= Currency::format($model->total) ?></th>
        </tr>
    </tfoot>
</table>

{'fraction_non_alphanumeric': 0.23509933774834438, 'fraction_numerical': 0.002207505518763797, 'mean_word_length': 2.1910211267605635, 'pattern_counts': {'":': 0, '<': 177, '<?xml version=': 0, '>': 220, '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': '3610935', 'n_tokens_mistral': 1151, 'n_tokens_neox': 1174, 'n_words': 190}