<commit_before>Dear <%= @order.bill_address.firstname %>,

Please review and retain the following order information for your records.

============================================================
Order Summary
============================================================
Order for: <%= @order.bill_address.full_name %>
<% @order.line_items.each do |item| %>
  <%= item.variant.sku %> <%= raw(item.variant.product.supplier.name) %> <%= raw(item.variant.product.name) %> <%= raw(item.variant.options_text) -%> (<%=item.quantity%>) @ <%= item.single_money %> = <%= item.display_amount %>
<% end %>
============================================================
Subtotal: <%= @order.display_item_total %>
<% checkout_adjustments_for_summary(@order).each do |adjustment| %>
  <%= raw(adjustment.label) %> <%= adjustment.display_amount %>
<% end %>
Order Total: <%= @order.display_total %>

<% if @order.payments.first.andand.payment_method.andand.name.andand.include? "EFT" %>
============================================================
Payment Details
============================================================
<%= @order.payments.first.andand.payment_method.andand.description.andand.html_safe %>

<% end %>

<%- if @order.shipping_method.andand.require_ship_address %>
============================================================
Delivery Details
============================================================
Your order will be delivered to:
<%= @order.ship_address.to_s %>

<% if @order.order_cycle.andand.pickup_time_for(@order.distributor) %>
Delivery on: <%= @order.order_cycle.pickup_time_for(@order.distributor) %>
<% end %>
<% else %>
============================================================
Collection Details
============================================================
<% if @order.shipping_method.description %>
<%= @order.shipping_method.description.html_safe %>
<% end %>

<% if @order.order_cycle.andand.pickup_time_for(@order.distributor) %>
Ready for collection: <%= @order.order_cycle.pickup_time_for(@order.distributor) %>
<% end %>

<% if @order.order_cycle.andand.pickup_instructions_for(@order.distributor) %>
Collection instructions: <%= @order.order_cycle.pickup_instructions_for(@order.distributor) %>
<% end %>

Thanks for your support.

<%= @order.distributor.contact %>,
<%= @order.distributor.name %>
<%= @order.distributor.phone %>
<%= @order.distributor.email %>
<%= @order.distributor.website %><commit_msg>Further tidy-up for order confirmation email<commit_after>Dear <%= @order.bill_address.firstname %>,

Please review and retain the following order information for your records.

============================================================
Order Summary
============================================================
Order for: <%= @order.bill_address.full_name %>
<% @order.line_items.each do |item| %>
  <%= item.variant.sku %> <%= raw(item.variant.product.supplier.name) %> <%= raw(item.variant.product.name) %> <%= raw(item.variant.options_text) -%> (QTY: <%=item.quantity%>) @ <%= item.single_money %> = <%= item.display_amount %>
<% end %>
============================================================
Subtotal: <%= @order.display_item_total %>
<% checkout_adjustments_for_summary(@order).each do |adjustment| %>
  <%= raw(adjustment.label) %> <%= adjustment.display_amount %>
<% end %>
Order Total: <%= @order.display_total %>

<% if @order.payments.first.andand.payment_method.andand.name.andand.include? "EFT" %>
============================================================
Payment Details
============================================================
<%= @order.payments.first.andand.payment_method.andand.description.andand.html_safe %>

<% end %>
<% if @order.shipping_method.andand.require_ship_address %>
============================================================
Delivery Details
============================================================
Your order will be delivered to:
<%= @order.ship_address.to_s %>

<% if @order.order_cycle.andand.pickup_time_for(@order.distributor) %>
Delivery on: <%= @order.order_cycle.pickup_time_for(@order.distributor) %>

<% end %>
<% if @order.order_cycle.andand.pickup_instructions_for(@order.distributor) %>
Other delivery information: <%= @order.order_cycle.pickup_instructions_for(@order.distributor) %>

<% end %>
<% else %>
============================================================
Collection Details
============================================================
<% if @order.shipping_method.andand.description %>
<%= @order.shipping_method.description.html_safe %>

<% end %>
<% if @order.order_cycle.andand.pickup_time_for(@order.distributor) %>
Ready for collection: <%= @order.order_cycle.pickup_time_for(@order.distributor) %>

<% end %>
<% if @order.order_cycle.andand.pickup_instructions_for(@order.distributor) %>
Collection instructions: <%= @order.order_cycle.pickup_instructions_for(@order.distributor) %>

<% end %>
<% end %>

Thanks for your support.

<%= @order.distributor.contact %>,
<%= @order.distributor.name %>
<%= @order.distributor.phone %>
<%= @order.distributor.email %>
<%= @order.distributor.website %>
{'fraction_non_alphanumeric': 0.3520796719390744, 'fraction_numerical': 0.0, 'mean_word_length': 7.608403361344537, 'pattern_counts': {'":': 0, '<': 87, '<?xml version=': 0, '>': 87, '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': '7243741', 'n_tokens_mistral': 1628, 'n_tokens_neox': 1360, 'n_words': 200}