<commit_before><?php
/**
 * Benchmark template to show results
 *
 * @package ChavBenchmarkPHP
 * @author <NAME>
 * @since 1.0.0
 * @license Apache 2.0 License
 *
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements. See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership. The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied. See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */
?>


<?php foreach(Benchmark::getInstance()->getSectionList() AS $section): ?>
	<h1> <?= $section->getName() ?> </h1>
	<?= $section->getDescription() ?>
	<table>
		<?php foreach($section->getCommandList() AS $command): ?>
		<tr>
			<td><?= $command; ?></td>
			<td><?= $command->getTime(); ?></td>
			<td>Ratio</td>
		</tr>
		<?php endforeach; ?>
	</table>
	

<?php endforeach; ?><commit_msg>Update template with new features.<commit_after><?php
/**
 * Benchmark template to show results
 *
 * @package ChavBenchmarkPHP
 * @author <NAME>
 * @since 1.0.0
 * @license Apache 2.0 License
 *
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements. See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership. The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied. See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */
?>
<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	
	<title>PHP Benchmark</title>
	
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
	
	<!-- Main design -->
	<link href="style/jumbotron-narrow.css" rel="stylesheet">
	
	<!-- Bootstrap -->
	<link href="plugin/bootstrap/css/bootstrap.min.css" rel="stylesheet">

	<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
	<!--[if lt IE 9]>
		<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
		<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
	<![endif]-->
</head>
<body>
	<div class="container">
		<div class="header">
			<h3 class="text-muted">ChavBenchmarkPHP</h3>
		</div>

		<div class="jumbotron">
			<h1>PHP Benchmark</h1>
			<p class="lead">
				...
			</p>
		</div>
		
		<?php foreach(Benchmark::getInstance()->getSectionList() AS $section): ?>
			<?php
			list($factor, $unity) = $section->getDivisionFactor();
			?>
			<h1> <?= $section->getName() ?> </h1>
			<?= $section->getDescription() ?>
			<table class="table table-striped">
				<?php foreach($section->getCommandList() AS $command): ?>
				<tr>
					<td><?= round($command->getTime() / $factor, 5) ?> <?= $unity ?></td>
					<td><?= round(($command->getTime() / $section->getFatestTime()) * 100, 1) ?>%</td>
					<td><?= nl2br($command) ?></td>
				</tr>
				<?php endforeach; ?>
			</table>
		<?php endforeach; ?>

		<div class="footer">
			<p>By <a href="http://www.chavjoh.ch"><NAME></a>, under Apache 2.0 license.</p>
		</div>

	</div>
</body>
</html>
{'fraction_non_alphanumeric': 0.1622905726431608, 'fraction_numerical': 0.012003000750187547, 'mean_word_length': 3.8367593712212815, 'pattern_counts': {'":': 0, '<': 92, '<?xml version=': 0, '>': 105, 'https://': 2, 'lorem ipsum': 0, 'www.': 3, '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': '605738', 'n_tokens_mistral': 1352, 'n_tokens_neox': 1243, 'n_words': 403}