<commit_before><?php
/*
 * Ladybug: Simple and Extensible PHP Dumper
 *
 * Object/DomDocument dumper
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Ladybug\Plugin\Symfony2\Inspector\Object\Symfony\Component\HttpFoundation;

use Ladybug\Inspector\AbstractInspector;
use Ladybug\Inspector\InspectorInterface;
use Ladybug\Inspector\InspectorDataWrapper;
use Ladybug\Type;

class Request extends AbstractInspector
{
    public function accept(InspectorDataWrapper $data)
    {
        return InspectorInterface::TYPE_CLASS == $data->getType() && 'Symfony\Component\HttpFoundation\Response' === $data->getId();
    }

    public function getData(InspectorDataWrapper $data)
    {
        /** @var $var Symfony\Component\HttpFoundation\Response */
        $var = $data->getData();

        /** @var $code Type\Extended\CodeType */
        $code = $this->extendedTypeFactory->factory('code', $this->level);

        $code->setLanguage('http');
        $code->setContent($var->__toString());
        $code->setTitle('HTTP Response');

        return $code;
    }

}
<commit_msg>Fixed class name<commit_after><?php
/*
 * Ladybug: Simple and Extensible PHP Dumper
 *
 * Object/DomDocument dumper
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Ladybug\Plugin\Symfony2\Inspector\Object\Symfony\Component\HttpFoundation;

use Ladybug\Inspector\AbstractInspector;
use Ladybug\Inspector\InspectorInterface;
use Ladybug\Inspector\InspectorDataWrapper;
use Ladybug\Type;

class Response extends AbstractInspector
{
    public function accept(InspectorDataWrapper $data)
    {
        return InspectorInterface::TYPE_CLASS == $data->getType() && 'Symfony\Component\HttpFoundation\Response' === $data->getId();
    }

    public function getData(InspectorDataWrapper $data)
    {
        /** @var $var Symfony\Component\HttpFoundation\Response */
        $var = $data->getData();

        /** @var $code Type\Extended\CodeType */
        $code = $this->extendedTypeFactory->factory('code', $this->level);

        $code->setLanguage('http');
        $code->setContent($var->__toString());
        $code->setTitle('HTTP Response');

        return $code;
    }

}

{'fraction_non_alphanumeric': 0.1311612364243943, 'fraction_numerical': 0.000835421888053467, 'mean_word_length': 3.705304518664047, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 29, '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': '3749215', 'n_tokens_mistral': 687, 'n_tokens_neox': 678, 'n_words': 152}