<commit_before><!DOCTYPE HTML>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  <title><%= @shipment %> Packing Slip</title>
  <style>
      body {
          background:white !important;
          color:black!important;
          width: 95%!important;
          margin: 0 auto!important;
          font-family:Arial, Helvetica, sans-serif!important;
          font-size:11px!important;
      }
      table {
          width: 100%!important;
          border-collapse:collapse;
      }
      table td{
          aborder: 1px solid #ccc;
          padding: 5px!important;
      }
      table.bordered, table.bordered td {
        border: solid 1px black;
      }
      table.bordered th {
        padding: 4px;
        border-bottom: solid 1px black;    
      }
      article {
          padding: 0px 0!important;
      }
      p {
          font-weight:normal !important;
          line-height:16px !important;
          margin-top: 0;
      }
      h2 {
          font-size:20px !important;
          margin-bottom: 0px;
      }
      .boxleft {
          float:left!important;
          width: 32%!important;
          margin-top:0px !important;
      }
      .boxcenter {
          float:left!important;
          width: 32%!important;
          margin-top:0px !important;
      }
      .boxright {
          float:left!important;
          width: 32%!important;
          margin-top:0px !important;
      }
      .textright{
          text-align:right !important;
      }
  </style>
</head>
<body>
<section>
  <article>
    <header>
      <table class="no-border" cellspacing="0" cellpadding="0" border="0">
        <thead>
        <tr valign="top">
          <th scope="col" style="text-align:left;">
            <% 
              loc_id = Cache.setting(@shipment.order.domain_id, :shipping, "Ship From Location ID")
              loc = Location.find(loc_id)
            %>
            
            <% if @shipment.order.affiliate %>
              <h2><%= @shipment.order.affiliate.name %></h2>
            <% elsif loc.pictures.length > 0 %>
              <h2><img src="<%= cdn_image_url loc.pictures[0].file_path, 250, 60, 0 %>" alt="Logo"></h2>
            <% else %>
              <h2><%= loc.name %></h2>
            <% end %>
            
            <p>
              <%= loc.to_text(skip_country: true, new_line: "<br>").html_safe %>
            </p>
            <p>
              <% unless loc.website.blank? %>
              <strong>Web:</strong> <%= loc.website %><br/>
              <% end %>
              <strong>Phone:</strong> <%= loc.phone %><br/>
              <strong>Email:</strong> <%= loc.email %>
            </p>
          </th>
          <th scope="col" style="text-align:right;"> <h2>PACKING SLIP</h2>
            <p>
              <strong>Order Date: </strong><%= sysdate @shipment.order.submitted %><br>
              <strong>Shipment ID: </strong> <%= @shipment %><br/>
              <img src="/barcode?code=<%= @shipment %>" />
            </p>
          </th>
        </tr>
        </thead>
      </table>

      <div class="boxleft">
        <h2>
          Billing address            </h2>
        <p><%= @shipment.order.billing_name %><br/>
          <%= raw @shipment.order.billing_company + '<br/>' unless @shipment.order.billing_company.blank? %><commit_msg>updates<commit_after><!DOCTYPE HTML>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  <title><%= @shipment %> Packing Slip</title>
  <style>
      body {
          background:white !important;
          color:black!important;
          width: 95%!important;
          margin: 0 auto!important;
          font-family:Arial, Helvetica, sans-serif!important;
          font-size:11px!important;
      }
      table {
          width: 100%!important;
          border-collapse:collapse;
      }
      table td{
          aborder: 1px solid #ccc;
          padding: 5px!important;
      }
      table.bordered, table.bordered td {
        border: solid 1px black;
      }
      table.bordered th {
        padding: 4px;
        border-bottom: solid 1px black;    
      }
      article {
          padding: 0px 0!important;
      }
      p {
          font-weight:normal !important;
          line-height:16px !important;
          margin-top: 0;
      }
      h2 {
          font-size:20px !important;
          margin-bottom: 0px;
      }
      .boxleft {
          float:left!important;
          width: 32%!important;
          margin-top:0px !important;
      }
      .boxcenter {
          float:left!important;
          width: 32%!important;
          margin-top:0px !important;
      }
      .boxright {
          float:left!important;
          width: 32%!important;
          margin-top:0px !important;
      }
      .textright{
          text-align:right !important;
      }
  </style>
</head>
<body>
<section>
  <article>
    <header>
      <table class="no-border" cellspacing="0" cellpadding="0" border="0">
        <thead>
        <tr valign="top">
          <th scope="col" style="text-align:left;">
            <% 
              loc_id = Cache.setting(@shipment.order.domain_id, :shipping, "Ship From Location ID")
              loc = Location.find(loc_id)
              aff = @shipment.order.affiliate
            %>
            
            <% if aff %>
              <h2><%= aff.name %></h2>
              <p> 
                <% unless aff.phone.blank? %>
                <strong>Phone:</strong> <%= aff.phone %><br/>
                <% end %>
                <% unless aff.email.blank? %>
                <strong>Email:</strong> <%= aff.email %><br/>
                <% end %>
                <% unless aff.website.blank? %>
                <strong>Web:</strong> <%= aff.website %><br/>
                <% end %>
              </p>
            <% elsif loc.pictures.length > 0 %>
              <h2><img src="<%= cdn_image_url loc.pictures[0].file_path, 250, 60, 0 %>" alt="Logo"></h2>
            <% else %>
              <h2><%= loc.name %></h2>
              <p>
                <%= loc.to_text(skip_country: true, new_line: "<br>").html_safe %>
              </p>
              <p>
                <% unless loc.website.blank? %>
                <strong>Web:</strong> <%= loc.website %><br/>
                <% end %>
                <strong>Phone:</strong> <%= loc.phone %><br/>
                <strong>Email:</strong> <%= loc.email %>
              </p>
            <% end %>
            
          </th>
          <th scope="col" style="text-align:right;"> <h2>PACKING SLIP</h2>
            <p>
              <strong>Order Date: </strong><%= sysdate @shipment.order.submitted %><br>
              <strong>Shipment ID: </strong> <%= @shipment %><br/>
              <img src="/barcode?code=<%= @shipment %>" />
            </p>
          </th>
        </tr>
        </thead>
      </table>

      <div class="boxleft">
        <h2>
          Billing address            </h2>
        <p><%= @shipment.order.billing_name %><br/>
          <%= raw @shipment.order.billing_company + '<br/>' unless @shipment.order.billing_company.blank? %>
{'fraction_non_alphanumeric': 0.15545276142416597, 'fraction_numerical': 0.01485842444631343, 'mean_word_length': 1.5176429075511644, 'pattern_counts': {'":': 0, '<': 183, '<?xml version=': 0, '>': 185, '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': '3014103', 'n_tokens_mistral': 2363, 'n_tokens_neox': 2167, 'n_words': 414}