<commit_before>h1
  | Order \#{{order.number}}

dl
  dt
    | {{:: 'orders.number' | translate }}
  dd
    | {{order.number}}

  dt
    | {{:: 'orders.state' | translate }}
  dd
    | {{order.state}}

  dt
    | {{:: 'orders.ordered_on' | translate }}
  dd
    | {{order.completedAt | date}}

  dt
    | {{:: 'orders.amount' | translate }}
  dd
    | {{order.total | currency : currencySymbol}}

  dt
    | {{:: 'orders.shipping_state' | translate }}
  dd
    | {{order.shipmentState}}

  dt
    | {{:: 'orders.tracking' | translate }}
  dd
    span(ng-repeat="shipment in order.shipments")
      | {{shipment.tracking || ('orders.no_tracking' | translate)}}

h2 Details

table.table.table-striped
  tr
    th
      | {{ :: 'checkout.name' | translate }}
    th(width="15%")
      | {{ :: 'checkout.quantity' | translate }}
    th
      | {{ :: 'checkout.amount' | translate }}

  tr.item(ng-repeat='item in order.items')
    td.name
      a(ng-href="#!/products/{{item.variant.product.slug}}")
        | {{item.variant.product.name}}
      span(ng-if='item.variant.product.hasVariants')
        | &nbsp;{{item.variant.options_text}}

    td.quantity.number(ng-bind='item.quantity')
    td.price.number(ng-bind='item.price * item.quantity | currency')

  tr.item-total
    td
      | {{ :: 'checkout.sub_total' | translate }}
    td.number(colspan=2 ng-bind='order.itemTotal | currency')
<commit_msg>Show line item adjustment on order complete<commit_after>h1
  | Order \#{{order.number}}

dl
  dt
    | {{:: 'orders.number' | translate }}
  dd
    | {{order.number}}

  dt
    | {{:: 'orders.state' | translate }}
  dd
    | {{order.state}}

  dt
    | {{:: 'orders.ordered_on' | translate }}
  dd
    | {{order.completedAt | date}}

  dt
    | {{:: 'orders.amount' | translate }}
  dd
    | {{order.total | currency : currencySymbol}}

  dt
    | {{:: 'orders.shipping_state' | translate }}
  dd
    | {{order.shipmentState}}

  dt
    | {{:: 'orders.tracking' | translate }}
  dd
    span(ng-repeat="shipment in order.shipments")
      | {{shipment.tracking || ('orders.no_tracking' | translate)}}

h2 Details

table.table.table-striped
  tr
    th
      | {{ :: 'checkout.name' | translate }}
    th(width="15%")
      | {{ :: 'checkout.quantity' | translate }}
    th
      | {{ :: 'checkout.amount' | translate }}

  tr.item(ng-repeat='item in order.items')
    td.name
      a(ng-href="#!/products/{{item.variant.product.slug}}")
        | {{item.variant.product.name}}
      span(ng-if='item.variant.product.hasVariants')
        | &nbsp;{{item.variant.options_text}}

    td.quantity.number(ng-bind='item.quantity')
    td.price.number(ng-bind='item.price * item.quantity | currency')

  tr.item-total
    td
      | {{ :: 'checkout.sub_total' | translate }}
    td.number(colspan=2 ng-bind='order.itemTotal | currency')

  tr.adjustment(ng-repeat='adjustment in order.line_item_adjustments')
    td(colspan=2)
      | {{adjustment.label}}

      a.remove(ng-click='removeAdjustment(adjustment)' ng-if='adjustment.isPromo()')
        span.glyphicon.glyphicon-remove
    td.number(colspan=2 ng-bind='adjustment.amount | currency : currencySymbol')

{'fraction_non_alphanumeric': 0.18536121673003803, 'fraction_numerical': 0.0038022813688212928, 'mean_word_length': 2.8783783783783785, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1357206', 'n_tokens_mistral': 1117, 'n_tokens_neox': 1063, 'n_words': 166}