<commit_before>!!!
%html
  %head
    %title= @title
  %body
    %div{style: 'font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; padding: 20px; border: 1px solid #ccc; border-radius: 10px;'}

      %div{style: "float: left; width: 75%; padding-right: 5%;"}
        %h1= @title
        %p
          For services provided between
          %strong #{@invoice.date_start.strftime("%A")}, #{@invoice.date_start}
          and
          %strong #{@invoice.date_end.strftime("%A")}, #{@invoice.date_end}

      %div{style: "float: left; width: 20%;"}
        %p{style: "white-space: nowrap;"}
          <em>From</em> <br>
          <strong><NAME></strong><br>
          15 <NAME> Ln<br>
          Florence, MA 01062<br>
          (802) 236 6073

        %p
          <em>Billed to</em> <br>
          <strong>#{@invoice.client.name}</strong>

      %br{style: "clear: both;"}

      %table
        %tr
          %td{style: "padding: 5px;"} <strong>Date</strong>
          %td{style: "padding: 5px;"} <strong>Project</strong>
          %td{style: "padding: 5px;"} <strong>Description</strong>
          %td{style: "padding: 5px;"} <strong>Rate</strong>
          %td{style: "padding: 5px; white-space: nowrap;"} <strong># hrs</strong>
          %td{style: "padding: 5px;"} <strong>Cost</strong>

        - @invoice.work_entries.each do |entry|
          %tr{style: "background-color: ##{cycle "fff", "f6f6f6"};"}
            %td{style: "padding: 5px; white-space: nowrap;"}= date entry.date
            %td{style: "padding: 5px; white-space: nowrap;"}= entry.project.name
            %td{style: "padding: 5px;"}= entry.invoice_notes
            %td{style: "padding: 5px;"}= @invoice.rate.format
            %td{style: "padding: 5px;"}= entry.duration
            %td{style: "padding: 5px;"}= (@invoice.rate * entry.duration).format

        %tr
          %td &nbsp;<commit_msg>Tweak headers in invoice printout<commit_after>!!!
%html
  %head
    %title= @title
  %body
    %div{style: 'font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; padding: 20px; border: 1px solid #ccc; border-radius: 10px;'}

      %div{style: "float: left; width: 75%; padding-right: 5%;"}
        %h1= @title
        %p
          For services provided between
          %strong #{@invoice.date_start.strftime("%A")}, #{@invoice.date_start}
          and
          %strong #{@invoice.date_end.strftime("%A")}, #{@invoice.date_end}

      %div{style: "float: left; width: 20%;"}
        %p{style: "white-space: nowrap;"}
          <em>From</em> <br>
          <strong><NAME></strong><br>
          15 <NAME> Ln<br>
          Florence, MA 01062<br>
          (802) 236 6073

        %p
          <em>Billed to</em> <br>
          <strong>#{@invoice.client.name}</strong>

      %br{style: "clear: both;"}

      %table
        %tr
          %td{style: "padding: 5px;"} <strong>Date</strong>
          %td{style: "padding: 5px;"} <strong>Project</strong>
          %td{style: "padding: 5px;"} <strong>Description</strong>
          %td{style: "padding: 5px;"} <strong>Rate</strong>
          %td{style: "padding: 5px;"} <strong>Hours</strong>
          %td{style: "padding: 5px;"} <strong>Cost</strong>

        - @invoice.work_entries.each do |entry|
          %tr{style: "background-color: ##{cycle "fff", "f6f6f6"};"}
            %td{style: "padding: 5px; white-space: nowrap;"}= date entry.date
            %td{style: "padding: 5px; white-space: nowrap;"}= entry.project.name
            %td{style: "padding: 5px;"}= entry.invoice_notes
            %td{style: "padding: 5px;"}= @invoice.rate.format
            %td{style: "padding: 5px;"}= entry.duration
            %td{style: "padding: 5px;"}= (@invoice.rate * entry.duration).format

        %tr
          %td &nbsp;
{'fraction_non_alphanumeric': 0.18472185254192175, 'fraction_numerical': 0.022890604205483098, 'mean_word_length': 2.463594470046083, 'pattern_counts': {'":': 0, '<': 57, '<?xml version=': 0, '>': 57, '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': '3368382', 'n_tokens_mistral': 1376, 'n_tokens_neox': 1296, 'n_words': 280}