<commit_before><?php

namespace RIPS\Connector\Entities;

use Psr\Http\Message\ResponseInterface;

class Response
{
    /** @var ResponseInterface */
    private $response;

    /**
     * @param ResponseInterface $response
     */
    public function __construct(ResponseInterface $response)
    {
        $this->response = $response;
    }

    /**
     * Get original Guzzle response.
     * @return ResponseInterface
     */
    public function getResponse()
    {
        return $this->response;
    }

    /**
     * @return \Psr\Http\Message\StreamInterface
     */
    public function getRawData()
    {
        return $this->response->getBody();
    }

    /**
     * @return \stdClass[]|\stdClass
     */
    public function getDecodedData()
    {
        return json_decode($this->response->getBody());
    }
}<commit_msg>Change type-hint of getDecodedData to mixed<commit_after><?php

namespace RIPS\Connector\Entities;

use Psr\Http\Message\ResponseInterface;

class Response
{
    /** @var ResponseInterface */
    private $response;

    /**
     * @param ResponseInterface $response
     */
    public function __construct(ResponseInterface $response)
    {
        $this->response = $response;
    }

    /**
     * Get original Guzzle response.
     * @return ResponseInterface
     */
    public function getResponse()
    {
        return $this->response;
    }

    /**
     * @return \Psr\Http\Message\StreamInterface
     */
    public function getRawData()
    {
        return $this->response->getBody();
    }

    /**
     * @return mixed
     */
    public function getDecodedData()
    {
        return json_decode($this->response->getBody());
    }
}
{'fraction_non_alphanumeric': 0.125, 'fraction_numerical': 0.0, 'mean_word_length': 2.276803118908382, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '7288269', 'n_tokens_mistral': 481, 'n_tokens_neox': 475, 'n_words': 95}