<commit_before><?php

namespace Nextras\Dbal\Bridges\NetteTracy;

?>
<style class="tracy-debug">
	#tracy-debug td.nextras-dbal-panel-sql { background: white !important }
</style>

<h1>Queries: <?php echo $count ?></h1>
<div class="tracy-inner nextras-dbal-panel">
	<table>
		<tr><th>SQL query</th><th>Time (ms)</th></tr>
		<?php
		foreach ($queries as $query):
			list($connection, $sql, $elapsedTime) = $query;
		?>
		<tr>
		<td class="nextras-dbal-panel-sql"><?php echo $sql ?></td>
		<td><?php echo $elapsedTime ? sprintf('%0.3f', $elapsedTime * 1000) : '' ?></td>
		</tr>
		<?php endforeach ?>
	</table>
	<?php if (count($queries) < $count): ?><p>...and more</p><?php endif ?>
</div><commit_msg>connection panel: better time rounding & alignment<commit_after><?php

namespace Nextras\Dbal\Bridges\NetteTracy;

?>
<style class="tracy-debug">
	#tracy-debug td.nextras-dbal-panel-sql { background: white !important; }
	#tracy-debug td.nextras-dbal-panel-time { text-align: right !important; }
</style>

<h1>Queries: <?php echo $count ?></h1>
<div class="tracy-inner nextras-dbal-panel">
	<table>
		<tr><th>SQL query</th><th>ms</th></tr>
		<?php
		foreach ($queries as $query):
			list($connection, $sql, $elapsedTime) = $query;
		?>
		<tr>
		<td class="nextras-dbal-panel-sql"><?php echo $sql ?></td>
		<td class="nextras-dbal-panel-time"><?php echo $elapsedTime ? sprintf('%0.2f', $elapsedTime * 1000) : '' ?></td>
		</tr>
		<?php endforeach ?>
	</table>
	<?php if (count($queries) < $count): ?><p>...and more</p><?php endif ?>
</div>
{'fraction_non_alphanumeric': 0.22721354166666666, 'fraction_numerical': 0.010416666666666666, 'mean_word_length': 4.568840579710145, 'pattern_counts': {'":': 0, '<': 65, '<?xml version=': 0, '>': 63, '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': '2135374', 'n_tokens_mistral': 632, 'n_tokens_neox': 608, 'n_words': 123}