<commit_before><table>
	<thead>
		<tr>
			<th>Description</th>
			<th>Amount</th>
		</tr>
	</thead>

	<tbody>

		<?php foreach ($details_keys as $title => $key) { ?>
			<?php if (empty($data->get('totals')[$key])) { continue; } ?>
			<tr class="<?php echo (end($details_keys) === $key ? 'last' : '') ?>">
				<td><?php echo ucfirst($title); ?></td>
				<td><?php echo '$' . number_format($data->get('totals')[$key]['before_vat'], 2); ?></td>
			</tr>
		<?php } ?>

		<tr class="total">
			<td >SUBTOTAL</td>
			<td><strong><?php echo '$' . number_format($data->get('totals')['before_vat'], 2); ?></strong></td>
		</tr>
		<?php echo $this->render($this->tax_template,array('data' => $data->get('totals')))	?>

		<tr class="grand-total">
			<td colspan="2">GRAND TOTAL</td>
			<td><?php echo '$' . number_format($data->get('totals')['after_vat'], 2); ?></td>
		</tr>
	</tbody>
</table><commit_msg>Fixed foramting  issue with old invoice sumup<commit_after><table>
	<thead>
		<tr>
			<th>Description</th>
			<th>Amount</th>
		</tr>
	</thead>

	<tbody>

		<?php foreach ($details_keys as $title => $key) { ?>
			<?php if (empty($data->get('totals')[$key])) { continue; } ?>
			<tr class="<?php echo (end($details_keys) === $key ? 'last' : '') ?>">
				<td><?php echo ucfirst($title); ?></td>
				<td><?php echo '$' . number_format($data->get('totals')[$key]['before_vat'], 2); ?></td>
			</tr>
		<?php } ?>

		<tr class="total">
			<td >SUBTOTAL</td>
			<td><strong><?php echo '$' . number_format($data->get('totals')['before_vat'], 2); ?></strong></td>
		</tr>
		<?php echo $this->render($this->tax_template,array('data' => $data->get('totals'),'col_count'=>2))	?>

		<tr class="grand-total">
			<td colspan="1">GRAND TOTAL</td>
			<td><?php echo '$' . number_format($data->get('totals')['after_vat'], 2); ?></td>
		</tr>
	</tbody>
</table>
{'fraction_non_alphanumeric': 0.28470332063146436, 'fraction_numerical': 0.004899292324442025, 'mean_word_length': 4.281609195402299, 'pattern_counts': {'":': 0, '<': 85, '<?xml version=': 0, '>': 104, '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': '6339902', 'n_tokens_mistral': 796, 'n_tokens_neox': 713, 'n_words': 129}