<commit_before><!DOCTYPE html>
<html lang="<?php echo DavBfr\CF\Lang::getLangHtml() ?>">
<head>
	<title><?php $this->out("title", "st", "CF " . CF_VERSION) ?></title>
	<?php if ($this->has("description")): ?>
	<meta name="description" content="<?php $this->out("description", "st") ?>">
	<?php endif ?>
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<?php if ($this->has("favicon")): ?>
	<link rel="shortcut icon" href="<?php echo $this->media($this->get("favicon")) ?>">
	<?php endif ?>
	<meta charset="UTF-8">
	<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" integrity="<KEY>" crossorigin="anonymous">
	<script type="text/javascript">
		window.cf_options = <?php $this->cf_options(); ?>;
	</script>
	<style type="text/css">
	.code {
		white-space: pre;
	}
	.code span {
		color: #000;
	}
	.code .red {
		font-weight: normal;
		background-color: #aed4e7;
		color: #31708f;
	}
	</style>
</head>
<body>
<?php // $this->insert("header.php"); ?>
<div class="container">
	<div class="page-header">
		<h1><?php echo $this->config("title") ?></h1>
	</div>

	<div class="alert alert-danger">
		<h2><span class="glyphicon glyphicon-wrench"></span> <?php $this->tr("core.error") ?> <?php $this->out("code") ?> <?php $this->out("message") ?></h2>
	</div>
	<?php if (trim($this->get("body")) != ""): ?>
	<p><?php $this->out("body") ?></p>
	<?php endif; ?>
	<?php if (trim($this->get("debug")) != ""): ?>
	<div class="well">
	<h2><?php $this->tr("core.debug_output") ?></h2>
	<pre><?php $this->out("debug") ?></pre>
	</div>
	<?php endif; ?>
<?php
	$bt = $this->get("backtrace");
	if (count($bt) > 0) {
		try {
			$file = file_get_contents($bt[0][0]);
			$file = explode("\n", $file);
			$start = max($bt[0][1] - 4, 0);
			$end = min($bt[0][1] + 3, count($file));
			echo $bt[0][0];
			echo "<div class=\"alert alert-info code\">";
			for($line = $start; $line < $end; $line++) {
				echo "<div" . ($line == $bt[0][1] - 1 ? " class=\"red\"" : "") . "><span>" . ($line + 1) . "</span> " . \DavBfr\CF\System::highlightCode($file[$line]) . "</div>";
			}
			echo "</div>";
		} catch (Exception $e) {
		}
	}
?>
	
	<?php if ($this->has("backtrace") && count($this->get("backtrace")) > 0): ?><commit_msg>Fix bug if no backtrace provided<commit_after><!DOCTYPE html>
<html lang="<?php echo DavBfr\CF\Lang::getLangHtml() ?>">
<head>
	<title><?php $this->out("title", "st", "CF " . CF_VERSION) ?></title>
	<?php if ($this->has("description")): ?>
	<meta name="description" content="<?php $this->out("description", "st") ?>">
	<?php endif ?>
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<?php if ($this->has("favicon")): ?>
	<link rel="shortcut icon" href="<?php echo $this->media($this->get("favicon")) ?>">
	<?php endif ?>
	<meta charset="UTF-8">
	<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" integrity="<KEY>" crossorigin="anonymous">
	<script type="text/javascript">
		window.cf_options = <?php $this->cf_options(); ?>;
	</script>
	<style type="text/css">
	.code {
		white-space: pre;
	}
	.code span {
		color: #000;
	}
	.code .red {
		font-weight: normal;
		background-color: #aed4e7;
		color: #31708f;
	}
	</style>
</head>
<body>
<?php // $this->insert("header.php"); ?>
<div class="container">
	<div class="page-header">
		<h1><?php echo $this->config("title") ?></h1>
	</div>

	<div class="alert alert-danger">
		<h2><span class="glyphicon glyphicon-wrench"></span> <?php $this->tr("core.error") ?> <?php $this->out("code") ?> <?php $this->out("message") ?></h2>
	</div>
	<?php if (trim($this->get("body")) != ""): ?>
	<p><?php $this->out("body") ?></p>
	<?php endif; ?>
	<?php if (trim($this->get("debug")) != ""): ?>
	<div class="well">
	<h2><?php $this->tr("core.debug_output") ?></h2>
	<pre><?php $this->out("debug") ?></pre>
	</div>
	<?php endif; ?>
<?php
	$bt = $this->get("backtrace");
	if (is_array($bt) && count($bt) > 1) {
		try {
			$file = file_get_contents($bt[0][0]);
			$file = explode("\n", $file);
			$start = max($bt[0][1] - 4, 0);
			$end = min($bt[0][1] + 3, count($file));
			echo $bt[0][0];
			echo "<div class=\"alert alert-info code\">";
			for($line = $start; $line < $end; $line++) {
				echo "<div" . ($line == $bt[0][1] - 1 ? " class=\"red\"" : "") . "><span>" . ($line + 1) . "</span> " . \DavBfr\CF\System::highlightCode($file[$line]) . "</div>";
			}
			echo "</div>";
		} catch (Exception $e) {
		}
	}
?>
	
	<?php if ($this->has("backtrace") && count($this->get("backtrace")) > 0): ?>
{'fraction_non_alphanumeric': 0.2863736263736264, 'fraction_numerical': 0.017142857142857144, 'mean_word_length': 4.379432624113475, 'pattern_counts': {'":': 0, '<': 135, '<?xml version=': 0, '>': 177, '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': '83638', 'n_tokens_mistral': 1878, 'n_tokens_neox': 1781, 'n_words': 350}