<commit_before>.row.hidden-print
  .col-12
    %ol.breadcrumb
      %li.breadcrumb-item= link_to @current_organization.name, organization_path(@current_organization)
      %li.breadcrumb-item= link_to 'Invoices', invoices_path
      %li.breadcrumb-item= "#" + @invoice.number.to_s
  .col-12
    .text-center
      = link_to '#', class: "btn btn-md btn-warning", onclick: "window.print();return false;" do
        %i.fa.fa-print
        PRINT THIS
%br
%section#InvoiceBody.card.card-default
  .card-block
    %br
    .row
      .col-11.col-centered
        .row
          .col-12
            %h1
              %i.fa.fa-comments-o
              TmT
        .row
          .col-6
            %h3
              - if @invoice.paid?
                Invoice
                %span.badge.badge-success{style: "font-size: 20px;"} PAID!
              - else
                Invoice
                %span.badge.badge-danger{style: "font-size: 20px;"} PAST DUE!
          .col-6
            .pull-right
              %h3= "#" + @invoice.number
        %hr
        .row
          .col-12
            %table.table.table-bordered
              %thead
                %tr
                  %th Description
                  %th Starts
                  %th Ends
                  %th Amount
                %tbody
                  - @stripe_invoice.lines.each do |line|
                    %tr
                      %td= line.plan.name
                      %td= local_time Time.at(line.period.start), format: "%m/%d/%Y"
                      %td= local_time Time.at(line.period.end), format: "%m/%d/%Y"
                      %td= number_to_currency line.amount / 100
                  - if @invoice.discount_code
                    %tr.table-success
                      %td{colspan: 3}
                        Discount Code:
                        = @invoice.discount_code
                      %td= number_to_percentage @stripe_invoice.discount.try(:coupon).try(:percent_off)
                  %tr.table-info
                    %td{colspan: 3}
                      %strong Total
                    %td
                      %strong= number_to_currency @invoice.amount_due / 100

        %hr<commit_msg>show both potential discount methods<commit_after>.row.hidden-print
  .col-12
    %ol.breadcrumb
      %li.breadcrumb-item= link_to @current_organization.name, organization_path(@current_organization)
      %li.breadcrumb-item= link_to 'Invoices', invoices_path
      %li.breadcrumb-item= "#" + @invoice.number.to_s
  .col-12
    .text-center
      = link_to '#', class: "btn btn-md btn-warning", onclick: "window.print();return false;" do
        %i.fa.fa-print
        PRINT THIS
%br
%section#InvoiceBody.card.card-default
  .card-block
    %br
    .row
      .col-11.col-centered
        .row
          .col-12
            %h1
              %i.fa.fa-comments-o
              TmT
        .row
          .col-6
            %h3
              - if @invoice.paid?
                Invoice
                %span.badge.badge-success{style: "font-size: 20px;"} PAID!
              - else
                Invoice
                %span.badge.badge-danger{style: "font-size: 20px;"} PAST DUE!
          .col-6
            .pull-right
              %h3= "#" + @invoice.number
        %hr
        .row
          .col-12
            %table.table.table-bordered
              %thead
                %tr
                  %th Description
                  %th Starts
                  %th Ends
                  %th Amount
                %tbody
                  - @stripe_invoice.lines.each do |line|
                    %tr
                      %td= line.plan.name
                      %td= local_time Time.at(line.period.start), format: "%m/%d/%Y"
                      %td= local_time Time.at(line.period.end), format: "%m/%d/%Y"
                      %td= number_to_currency line.amount / 100
                  - if @invoice.discount_code
                    %tr.table-success
                      %td{colspan: 3}
                        Discount Code:
                        = @invoice.discount_code
                      - if @stripe_invoice.discount.try(:coupon).try(:percent_off).present?
                        %td= number_to_percentage @stripe_invoice.discount.try(:coupon).try(:percent_off)
                      - else
                        %td= number_to_currency @stripe_invoice.discount.try(:coupon).try(:amount_off)
                  %tr.table-info
                    %td{colspan: 3}
                      %strong Total
                    %td
                      %strong= number_to_currency @invoice.amount_due / 100

        %hr
{'fraction_non_alphanumeric': 0.1082129769346842, 'fraction_numerical': 0.01164043974994611, 'mean_word_length': 1.1541318477251625, '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': '105814', 'n_tokens_mistral': 1450, 'n_tokens_neox': 1346, 'n_words': 241}