<commit_before><div class="row">
    <div class="col-xs-10 col-xs-offset-1">
        <div class="box">

            <div class="box-body">
                <?php if ($start_date): ?>
                    <h2>Summary from: <?=nice_date($start_date, 'd M Y');?> to <?=nice_date($end_date, 'd M Y');?></h2>
                <?php else: ?>
                    <h2>Summary from all time</h2>
                <?php endif; ?>
                <!-- Date and time range -->
                <div class="form-group">
                    <div class="input-group">
                        <button class="btn btn-default pull-right" id="daterange-btn">
                            <i class="fa fa-calendar"></i> Date range picker
                            <i class="fa fa-caret-down"></i>
                        </button>
                    </div>
                </div><!-- /.form group -->
                <table id="example1" class="table table-bordered table-striped">
                    <thead>
                    <tr>
                        <th>Date</th>
                        <th>Premium Visits</th>
                        <th>Non Premium Visits</th>
                        <th>Link</th>
                        <th>Revenue Generated</th>
                    </tr>
                    </thead>
                    <tbody>

                    <?php foreach($rows as $row): ?>
                    <tr>
                        <td><?=nice_date($row->date, 'd M Y');?></td>
                        <td><?=$row->premium_visit?></td>
                        <td><?=$row->normal_visit?></td>
                        <td><?=$row->link?></td>
                        <td>$<?=$row->revenue_generated?></td>
                    </tr>
                    <?php endforeach; ?>
                    </tbody>
                    <tfoot>
                    <tr>
                        <th>Date</th>
                        <th>Premium Visits</th>
                        <th>Non Premium Visits</th>
                        <th>Link</th>
                        <th>Revenue Generated</th>
                    </tr>
                    </tfoot>
                </table>
            </div><!-- /.box-body -->
        </div>
        <div class="box">
            <div class="box-body">
                <h1>Earnings Summary</h1>

                <hr />
                <div class="row">
                    <div class="col-xs-4">
                        <div class="callout callout-info">
                            <h4>Total Revenue Generated: $35</h4>
                        </div>
                    </div>
                    <div class="col-xs-4">
                        <div class="callout bg-maroon">
                            <h4>Total Premium Visits: 200</h4>
                        </div>
                    </div>
                    <div class="col-xs-4">
                        <div class="callout bg-aqua-active">
                            <h4>Total Non-premium Visits: 300</h4>
                        </div>
                    </div>
                </div>
                <hr />
                <h1>Payments Summary</h1>
                <div class="row">
                    <div class="col-xs-4">
                        <div class="callout callout-success">
                            <h4>Total Money Paid out: $400</h4>
                        </div>
                    </div>
                    <div class="col-xs-4">
                        <div class="callout callout-warning">
                            <h4>Total Money Not Paid Out: $400</h4>
                        </div>
                    </div>
                </div>
            </div><!-- /.box-body -->
        </div>
    </div>
</div><commit_msg>Added payment history all tabs<commit_after><div class="row">
    <div class="col-xs-10 col-xs-offset-1">
        <div class="box">

            <div class="box-body">
                <?php if ($start_date): ?>
                    <h2>Summary from: <?=nice_date($start_date, 'd M Y');?> to <?=nice_date($end_date, 'd M Y');?></h2>
                <?php else: ?>
                    <h2>Summary from all time</h2>
                <?php endif; ?>
                <div class="row">
                    <div class="col-xs-3">
                        <!-- Date and time range -->
                        <div class="form-group">
                            <div class="input-group">
                                <button class="btn btn-default pull-right" id="daterange-btn">
                                    <i class="fa fa-calendar"></i> Select Date Range
                                    <i class="fa fa-caret-down"></i>
                                </button>
                            </div>
                        </div><!-- /.form group -->
                    </div>
                </div>
                <hr />
                <table id="example1" class="table table-bordered table-striped">
                    <thead>
                    <tr>
                        <th>Date</th>
                        <th>Premium Visits</th>
                        <th>Non Premium Visits</th>
                        <th>Link</th>
                        <th>Revenue Generated</th>
                    </tr>
                    </thead>
                    <tbody>

                    <?php foreach($rows as $row): ?>
                    <tr>
                        <td><?=nice_date($row->date, 'd M Y');?></td>
                        <td><?=$row->premium_visit?></td>
                        <td><?=$row->normal_visit?></td>
                        <td><?=$row->link?></td>
                        <td>$<?=$row->revenue_generated?></td>
                    </tr>
                    <?php endforeach; ?>
                    </tbody>
                    <tfoot>
                    <tr>
                        <th>Date</th>
                        <th>Premium Visits</th>
                        <th>Non Premium Visits</th>
                        <th>Link</th>
                        <th>Revenue Generated</th>
                    </tr>
                    </tfoot>
                </table>
            </div><!-- /.box-body -->
        </div>
        <div class="box">
            <div class="box-body">
                <h1>Earnings Summary</h1>

                <hr />
                <div class="row">
                    <div class="col-xs-4">
                        <div class="callout callout-info">
                            <h4>Total Revenue Generated: $<?=$total_revenue?></h4>
                        </div>
                    </div>
                    <div class="col-xs-4">
                        <div class="callout bg-maroon">
                            <h4>Total Premium Visits: <?=$total_premium?></h4>
                        </div>
                    </div>
                    <div class="col-xs-4">
                        <div class="callout bg-aqua-active">
                            <h4>Total Non-premium Visits: <?=$total_normal?></h4>
                        </div>
                    </div>
                </div>
                <hr />
                <h1>Payments Summary</h1>
                <div class="row">
                    <div class="col-xs-4">
                        <div class="callout callout-success">
                            <h4>Total Money Paid out: $400</h4>
                        </div>
                    </div>
                    <div class="col-xs-4">
                        <div class="callout callout-warning">
                            <h4>Total Money Not Paid Out: $<?=$payment_left?></h4>
                        </div>
                    </div>
                </div>
            </div><!-- /.box-body -->
        </div>
    </div>
</div>
{'fraction_non_alphanumeric': 0.14475380252642434, 'fraction_numerical': 0.009280742459396751, 'mean_word_length': 0.7960648148148148, 'pattern_counts': {'":': 0, '<': 264, '<?xml version=': 0, '>': 274, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1214590', 'n_tokens_mistral': 2132, 'n_tokens_neox': 1935, 'n_words': 390}