<commit_before><commit_msg>Adds request section for request profile view #43<commit_after><?php
/** @var Sheep_Debug_Block_View $this */

$info = $this->getRequestInfo();
$controller = $info->getController();

?>
<div class="sf-tabs">
    <div class="tab">
        <h3 class="tab-title"><?php echo $this->__('Request'); ?></h3>

        <div class="tab-content">
            <h3><?php echo $this->__('GET Parameters'); ?></h3>
            <?php echo $this->renderArray($controller->getGetParameters(), 'No GET parameters'); ?>

            <h3><?php echo $this->__('POST Parameters'); ?></h3>
            <?php echo $this->renderArray($controller->getPostParameters(), 'No POST parameters'); ?>

            <h3><?php echo $this->__('Request Attributes'); ?></h3>
            <?php echo $this->renderArray($controller->getRequestAttributes()) ?>

            <h3><?php echo $this->__('Cookies'); ?></h3>
            <?php echo $this->renderArray($controller->getCookies()) ?>


            <h3><?php echo $this->__('Request Headers'); ?></h3>
            <?php echo $this->renderArray($controller->getRequestHeaders(), 'No Data', array('Header', 'Value')) ?>


            <h3><?php echo $this->__('Server Parameters'); ?></h3>
            <?php echo $this->renderArray($controller->getServerParameters()) ?>
        </div>
    </div>

    <div class="tab">
        <h3 class="tab-title"><?php echo $this->__('Response'); ?></h3>

        <div class="tab-content">
            <h3><?php echo $this->__('Response Headers'); ?></h3>
            <?php echo $this->renderArray($controller->getResponseHeaders(), 'No Data', array('Header', 'Value')) ?>
        </div>
    </div>

    <div class="tab">
        <h3 class="tab-title"><?php echo $this->__('Session'); ?></h3>

        <!-- TODO: Add session meta data -->

        <div class="tab-content">
            <h3><?php echo $this->__('Session Attributes'); ?></h3>
            <?php echo $this->renderArray($controller->getSession()) ?>
        </div>
    </div>

</div>

{'fraction_non_alphanumeric': 0.2189817103311913, 'fraction_numerical': 0.011863568956994563, 'mean_word_length': 2.8848368522072936, 'pattern_counts': {'":': 0, '<': 60, '<?xml version=': 0, '>': 89, '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': '6021327', 'n_tokens_mistral': 602, 'n_tokens_neox': 608, 'n_words': 133}