<commit_before><html>
    <head>
        <style>
            body {
                width: 7in;
                height; 9in;
                margin-top: 1in;
                margin-bottom: 1in;
                /*margin-left: 0.5in;*/
                margin-right: 0.5in;
            }
            h1 {
                text-align: center;
                margin: 0px;
                color: #999;
            }
            .contact_row {
                font-size: 0.1in;
                border-bottom: solid 1px black;
            }
            .contact_row .left {
                float: left;
                width: 2in;

            }
            .contact_row .center {
                float: left;
                text-align: center;
                width: 3in;
            }
            .contact_row .right {
                float: left;
                text-align: right;
                width: 2in;
            }
            .clearfix {
                clear: both;
            }
            .bill_to {
                border: solid 1px black;
                width: 2.5in;
                margin-left: 0.5in;
                margin-top: 0.5in;
                padding: 0.25in;
            }
            .date {
                border-bottom: solid 1px black;
                border-left: solid 1px black;
                border-right: solid 1px black;
                width: 2.5in;
                margin-left: 0.5in;
                padding-left: 0.25in;
                padding-right: 0.25in;
            }
            table.invoice {
                width: 7in;
                border: solid 3px black;
                border-collapse: collapse;
                margin-top: 1in;
                margin-bottom: 1in;
            }
            table.invoice td, table.invoice th {
                border: solid 1px black;
            }

        </style>
    </head>
    <body onload="window.print();">
        <h1><NAME></h1>
        <div class="contact_row">
            <div class="left">
                403-957-0733
            </div>
            <div class="center">
                298 Somerset Way SE&nbsp;
                Unit 38&nbsp;
                Medicine Hat AB&nbsp;
                T1B 0E9
            </div>
            <div class="right">
                <EMAIL>
            </div>
            <div class="clearfix"></div>
        </div>
        <strong>GST Registration: 840532550 RT0001</strong><br />
        Invoice #{{c.invoice.id}}
        <div class="bill_to">
            <strong>Bill To:</strong><br />
            {{h.nl2br(c.invoice.bill_to)}}
        </div>
        <div class="date">
            <strong>Date:</strong> {{c.invoice.date.strftime("%B %d, %Y")}}
        </div>
    
        <table class="invoice">
            <tr>
                <th>Project</th>
                <th>Hours</th>
                <th>Rate</th>
                <th>Total</th>
            </tr>
            <tr>
                <td>{{c.project.id}}</td>
                <td>{{c.total_time}}</td>
                <td>${{"%.2f" % (c.project.rate)}}</td>
                <td>${{c.total_fee}}</td>
            </tr>
            {% if c.invoice.tax %}<commit_msg>Format long lines in invoice better.<commit_after><html>
    <head>
        <style>
            body {
                width: 7in;
                height; 9in;
                margin-top: 1in;
                margin-bottom: 1in;
                /*margin-left: 0.5in;*/
                margin-right: 0.5in;
            }
            h1 {
                text-align: center;
                margin: 0px;
                color: #999;
            }
            .contact_row {
                font-size: 0.1in;
                border-bottom: solid 1px black;
            }
            .contact_row .left {
                float: left;
                width: 2in;

            }
            .contact_row .center {
                float: left;
                text-align: center;
                width: 3in;
            }
            .contact_row .right {
                float: left;
                text-align: right;
                width: 2in;
            }
            .clearfix {
                clear: both;
            }
            .bill_to {
                border: solid 1px black;
                width: 2.5in;
                margin-left: 0.5in;
                margin-top: 0.5in;
                padding: 0.25in;
            }
            .date {
                border-bottom: solid 1px black;
                border-left: solid 1px black;
                border-right: solid 1px black;
                width: 2.5in;
                margin-left: 0.5in;
                padding-left: 0.25in;
                padding-right: 0.25in;
            }
            table.invoice {
                width: 7in;
                border: solid 3px black;
                border-collapse: collapse;
                margin-top: 1in;
                margin-bottom: 1in;
            }
            table.invoice td, table.invoice th {
                border: solid 1px black;
            }

        </style>
    </head>
    <body onload="window.print();">
        <h1><NAME></h1>
        <div class="contact_row">
            <div class="left">
                403-957-0733
            </div>
            <div class="center">
                298 Somerset Way SE&nbsp;
                Unit 38&nbsp;
                Medicine Hat AB&nbsp;
                T1B 0E9
            </div>
            <div class="right">
                <EMAIL>
            </div>
            <div class="clearfix"></div>
        </div>
        <strong>GST Registration: 840532550 RT0001</strong><br />
        Invoice #{{c.invoice.id}}
        <div class="bill_to">
            <strong>Bill To:</strong><br />
            {{h.nl2br(c.invoice.bill_to)}}
        </div>
        <div class="date">
            <strong>Date:</strong> {{c.invoice.date.strftime("%B %d, %Y")}}
        </div>
    
        <table class="invoice">
            <tr>
                <th>Project</th>
                <th>Hours</th>
                <th>Rate</th>
                <th>Total</th>
            </tr>
            <tr>
                <td>{{c.project.id}}</td>
                <td>{{"%.2f" % (c.total_time)}}</td>
                <td>${{"%.2f" % (c.project.rate)}}</td>
                <td>${{"%.2f" % (c.total_fee)}}</td>
            </tr>
            {% if c.invoice.tax %}
{'fraction_non_alphanumeric': 0.1249804473643047, 'fraction_numerical': 0.025965900203347412, 'mean_word_length': 0.8889217134416544, 'pattern_counts': {'":': 0, '<': 109, '<?xml version=': 0, '>': 109, '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': '5977394', 'n_tokens_mistral': 2010, 'n_tokens_neox': 1775, 'n_words': 363}