<commit_before><?php
use \Gbox\helpers\Url;
use \Gbox\base\Session;
?>
<div class="row">
	<h3>File: <?=Session::get('files-debug-current')?></h3>
	<div class="col-md-3">
		<div class="list-group">
			<a href="<?=Url::to('@web-module', ['id' => Session::get('files-debug-current')])?>" class="list-group-item <?php if (empty(\Gbox::getRequest()->get('type'))) echo 'active'; ?>">Summary</a>
			<a href="<?=Url::to('@web-module', ['id' => Session::get('files-debug-current'), 'type' => 'router'])?>" class="list-group-item <?php if (\Gbox::getRequest()->get('type') == 'router') echo 'active'; ?>">Router</a>
			<a href="<?=Url::to('@web-module', ['id' => Session::get('files-debug-current'), 'type' => 'orm'])?>" class="list-group-item <?php if (\Gbox::getRequest()->get('type') == 'orm') echo 'active'; ?>">Orm</a>
			<a href="<?=Url::to('@web-module', ['id' => Session::get('files-debug-current'), 'type' => 'model'])?>" class="list-group-item <?php if (\Gbox::getRequest()->get('type') == 'model') echo 'active'; ?>">Model</a>
			<a href="<?=Url::to('@web-module', ['id' => Session::get('files-debug-current'), 'type' => 'sendmail'])?>" class="list-group-item <?php if (\Gbox::getRequest()->get('type') == 'sendmail') echo 'active'; ?>">Sendmail</a>
		</div>
	</div>
	<div class="col-md-9">
		<div class="panel-group" id="accordion-debug" role="tablist" aria-multiselectable="true">
			<?php $i = 0; ?>
			<?php foreach (\Gbox::$components->debug->getData(Session::get('files-debug-current')) as $record): ?>
				<?php $i++; ?>
				<?php if (!empty(\Gbox::getRequest()->get('type')) && $record['type'] != \Gbox::getRequest()->get('type')) continue; ?>
				<div class="panel panel-default">
					<div class="panel-heading" role="tab" id="heading-<?=$i?>">
						<h4 class="panel-title">
							<a role="button" data-toggle="collapse" data-parent="#accordion-debug" href="#collapse-<?=$i?>" aria-expanded="true" aria-controls="collapse-<?=$i?>">
								<?=ucfirst($record['type'])?>: <?=$record['message']?> <?php if (!empty($record['subtype'])) echo '(' . $record['subtype'] . ')' ?>
							</a>
						</h4>
					</div>
					<div id="collapse-<?=$i?>" class="panel-collapse collapse" role="tabpanel" aria-expanded="true" aria-labelledby="heading-<?=$i?>">
						<ul class="list-group">
							<?php foreach ($record as $item => $value): ?>
								<li class="list-group-item"><strong><?=ucfirst($item)?>:</strong> <?=$value?></li>
							<?php endforeach; ?>
						</ul>
					</div>
				</div>
			<?php endforeach; ?>
		</div>
		<div class="panel-group" id="accordion-debug-summary-parse" role="tabpanel" aria-multiselectable="true">
			<div class="panel panel-default">
				<div class="panel-heading" role="tab" id="heading-summary-parse-<?=$i?>">
					<h4 class="panel-title">
						<a role="button" data-toggle="collapse" data-parent="#accordion-debug-summary-parse" href="#collapse-summary-parse-<?=$i?>" aria-expanded="true" aria-controls="collapse-summary-parse-<?=$i?>">
							Parse summary
						</a>
					</h4>
				</div>
				<div id="collapse-summary-parse-<?=$i?>" class="panel-collapse collapse" role="tabpanel" aria-labelledby="heading-summary-parse-<?=$i?>">
					<div class="panel-body">
						<pre><?php print_r(\Gbox::$components->debug->getData(Session::get('files-debug-current'))) ?></pre>
					</div>
				</div>
			</div>
		</div>
	</div>
</div><commit_msg>Errors minimums solved<commit_after><?php
use \Gbox\helpers\Url;
use \Gbox\base\Session;
?>
<div class="row">
	<h3>File: <?=Session::get('files-debug-current')?></h3>
	<div class="col-md-3">
		<div class="list-group">
			<a href="<?=Url::to('@web-module', ['id' => Session::get('files-debug-current')])?>" class="list-group-item <?php if (\Gbox::getRequest()->get('type') == '') echo 'active'; ?>">Summary</a>
			<a href="<?=Url::to('@web-module', ['id' => Session::get('files-debug-current'), 'type' => 'router'])?>" class="list-group-item <?php if (\Gbox::getRequest()->get('type') == 'router') echo 'active'; ?>">Router</a>
			<a href="<?=Url::to('@web-module', ['id' => Session::get('files-debug-current'), 'type' => 'orm'])?>" class="list-group-item <?php if (\Gbox::getRequest()->get('type') == 'orm') echo 'active'; ?>">Orm</a>
			<a href="<?=Url::to('@web-module', ['id' => Session::get('files-debug-current'), 'type' => 'model'])?>" class="list-group-item <?php if (\Gbox::getRequest()->get('type') == 'model') echo 'active'; ?>">Model</a>
			<a href="<?=Url::to('@web-module', ['id' => Session::get('files-debug-current'), 'type' => 'sendmail'])?>" class="list-group-item <?php if (\Gbox::getRequest()->get('type') == 'sendmail') echo 'active'; ?>">Sendmail</a>
		</div>
	</div>
	<div class="col-md-9">
		<div class="panel-group" id="accordion-debug" role="tablist" aria-multiselectable="true">
			<?php $i = -1; ?>
			<?php foreach (\Gbox::$components->debug->getData(Session::get('files-debug-current')) as $record): ?>
				<?php if (\Gbox::getRequest()->get('type') != '' && $record['type'] != \Gbox::getRequest()->get('type')) continue; ?>
				<?php $i++; ?>
				<div class="panel panel-default">
					<div class="panel-heading" role="tab" id="heading-<?=$i?>">
						<h4 class="panel-title">
							<a role="button" data-toggle="collapse" data-parent="#accordion-debug" href="#collapse-<?=$i?>" aria-expanded="true" aria-controls="collapse-<?=$i?>">
								<?=ucfirst($record['type'])?>: <?=$record['message']?> <?php if (!empty($record['subtype'])) echo '(' . $record['subtype'] . ')' ?>
							</a>
						</h4>
					</div>
					<div id="collapse-<?=$i?>" class="panel-collapse collapse" role="tabpanel" aria-expanded="true" aria-labelledby="heading-<?=$i?>">
						<ul class="list-group">
							<?php foreach ($record as $item => $value): ?>
								<li class="list-group-item"><strong><?=ucfirst($item)?>:</strong> <?=$value?></li>
							<?php endforeach; ?>
						</ul>
					</div>
				</div>
			<?php endforeach; ?>
			<?php if ($i == -1): ?>
				<div class="panel panel-default">
					<div class="panel-heading" role="tab" id="heading--1">
						<h4 class="panel-title">
							No activity
						</h4>
					</div>
				</div>
			<?php endif; ?>
		</div>
		<div class="panel-group" id="accordion-debug-summary-parse" role="tabpanel" aria-multiselectable="true">
			<div class="panel panel-default">
				<div class="panel-heading" role="tab" id="heading-summary-parse-<?=$i?>">
					<h4 class="panel-title">
						<a role="button" data-toggle="collapse" data-parent="#accordion-debug-summary-parse" href="#collapse-summary-parse-<?=$i?>" aria-expanded="true" aria-controls="collapse-summary-parse-<?=$i?>">
							Parse summary
						</a>
					</h4>
				</div>
				<div id="collapse-summary-parse-<?=$i?>" class="panel-collapse collapse" role="tabpanel" aria-labelledby="heading-summary-parse-<?=$i?>">
					<div class="panel-body">
						<pre><?php print_r(\Gbox::$components->debug->getData(Session::get('files-debug-current'))) ?></pre>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
{'fraction_non_alphanumeric': 0.27793655330094313, 'fraction_numerical': 0.003143755358673907, 'mean_word_length': 4.5680190930787585, 'pattern_counts': {'":': 0, '<': 189, '<?xml version=': 0, '>': 231, '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': '3002325', 'n_tokens_mistral': 2788, 'n_tokens_neox': 2447, 'n_words': 421}