<commit_before><?php
$controller = Mage::registry('controller');
$request = $controller->getRequest();
$cookies = $_COOKIE;
$session = Mage::getSingleton('core/session');
?>
<h4><?php $this->__('Controller information') ?></h4>
<table>
	<thead>
		<tr>
			<th><?php echo $this->__('Variable') ?></th>
			<th><?php echo $this->__('Value') ?></th>
		</tr>
	</thead>
	<tbody>
		<tr class="djDebugOdd">
			<td><?php echo $this->__('Route Name') ?></td>
			<td><?php echo $request->getRouteName() ?></td>
		</tr>
		<tr class="djDebugEven">
			<td><?php echo $this->__('Controller Module/Name') ?></td>
			<td><?php echo $request->getControllerModule() ?> / <?php echo $request->getControllerName() ?></td>
		</tr>
		<tr class="djDebugOdd">
			<td><?php echo $this->__('Action Name') ?></td>
			<td><?php echo $request->getActionName() ?></td>
		</tr>
		<tr class="djDebugEven">
			<td><?php echo $this->__('Request Path') ?></td>
			<td><?php echo $request->getPathInfo() ?></td>
		</tr>
	</tbody>
</table>

<h4><?php echo $this->__('COOKIES Variables') ?></h4>
<?php if( $cookies ): ?>
	<table>
		<colgroup>
			<col style="width:20%"/>
			<col/>
		</colgroup>
		<thead>
			<tr>
				<th><?php echo $this->__("Variable") ?></th>
				<th><?php echo $this->__("Value") ?></th>
			</tr>
		</thead>
		<tbody>
			<?php $row = 0; ?>
			<?php foreach( $cookies as $key=>$value ): ?>
				<tr class="<?php echo ( ($row % 2 ? 'djDebugOdd' : 'djDebugEven')) ?>">
					<td><?php echo htmlspecialchars($key) ?></td>
					<td><?php echo htmlspecialchars($value) ?></td>
				</tr>
				<?php $row++; ?>
			<?php endforeach ?>
		</tbody>
	</table>
<?php else: ?>
	<p><?php echo $this->__("No COOKIE data") ?></p>
<?php endif ?>

<h4><?php echo $this->__('SESSION Variables') ?></h4>
<?php if( count($_SESSION)): ?>
	<table>
		<colgroup>
			<col style="width:20%"/>
			<col/>
		</colgroup>
		<thead>
			<tr>
				<th><?php echo $this->__("Variable") ?></th>
				<th><?php echo $this->__("Value") ?></th>
			</tr>
		</thead>
		<?php foreach( $_SESSION as $namespace => $data): ?>
		<tbody>
			<tr><th colspan="2" style="text-align: center; font-size: 120%; font-weight: bold;"><?php echo $namespace ?></th></tr>
			<?php $row = 0; ?>
			<?php foreach( $data as $key => $value ): ?>
				<tr class="<?php echo ( ($row % 2 ? 'djDebugOdd' : 'djDebugEven')) ?>">
					<td><?php echo htmlspecialchars($key) ?></td>
					<td><commit_msg>Invalid argument supplied for foreach() in controller.phtml<commit_after><?php
$controller = Mage::registry('controller');
$request = $controller->getRequest();
$cookies = $_COOKIE;
$session = Mage::getSingleton('core/session');
?>
<h4><?php $this->__('Controller information') ?></h4>
<table>
	<thead>
		<tr>
			<th><?php echo $this->__('Variable') ?></th>
			<th><?php echo $this->__('Value') ?></th>
		</tr>
	</thead>
	<tbody>
		<tr class="djDebugOdd">
			<td><?php echo $this->__('Route Name') ?></td>
			<td><?php echo $request->getRouteName() ?></td>
		</tr>
		<tr class="djDebugEven">
			<td><?php echo $this->__('Controller Module/Name') ?></td>
			<td><?php echo $request->getControllerModule() ?> / <?php echo $request->getControllerName() ?></td>
		</tr>
		<tr class="djDebugOdd">
			<td><?php echo $this->__('Action Name') ?></td>
			<td><?php echo $request->getActionName() ?></td>
		</tr>
		<tr class="djDebugEven">
			<td><?php echo $this->__('Request Path') ?></td>
			<td><?php echo $request->getPathInfo() ?></td>
		</tr>
	</tbody>
</table>

<h4><?php echo $this->__('COOKIES Variables') ?></h4>
<?php if( $cookies ): ?>
	<table>
		<colgroup>
			<col style="width:20%"/>
			<col/>
		</colgroup>
		<thead>
			<tr>
				<th><?php echo $this->__("Variable") ?></th>
				<th><?php echo $this->__("Value") ?></th>
			</tr>
		</thead>
		<tbody>
			<?php $row = 0; ?>
			<?php foreach( $cookies as $key=>$value ): ?>
				<tr class="<?php echo ( ($row % 2 ? 'djDebugOdd' : 'djDebugEven')) ?>">
					<td><?php echo htmlspecialchars($key) ?></td>
					<td><?php echo htmlspecialchars($value) ?></td>
				</tr>
				<?php $row++; ?>
			<?php endforeach ?>
		</tbody>
	</table>
<?php else: ?>
	<p><?php echo $this->__("No COOKIE data") ?></p>
<?php endif ?>

<h4><?php echo $this->__('SESSION Variables') ?></h4>
<?php if( count($_SESSION)): ?>
	<table>
		<colgroup>
			<col style="width:20%"/>
			<col/>
		</colgroup>
		<thead>
			<tr>
				<th><?php echo $this->__("Variable") ?></th>
				<th><?php echo $this->__("Value") ?></th>
			</tr>
		</thead>
		<?php foreach( $_SESSION as $namespace => $data): ?>
        <?php if(!is_array($data)) { continue; } ?>
		<tbody>
			<tr><th colspan="2" style="text-align: center; font-size: 120%; font-weight: bold;"><?php echo $namespace ?></th></tr>
			<?php $row = 0; ?>
			<?php foreach( $data as $key => $value ): ?>
				<tr class="<?php echo ( ($row % 2 ? 'djDebugOdd' : 'djDebugEven')) ?>">
					<td><?php echo htmlspecialchars($key) ?></td>
					<td>
{'fraction_non_alphanumeric': 0.26835236541598695, 'fraction_numerical': 0.00734094616639478, 'mean_word_length': 3.8564356435643563, 'pattern_counts': {'":': 0, '<': 254, '<?xml version=': 0, '>': 300, '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': '5510810', 'n_tokens_mistral': 2079, 'n_tokens_neox': 1892, 'n_words': 432}