<commit_before><?php

namespace App\Models\Structs;

use Nette\Application\Responses\JsonResponse;
use Nette\Http;
use Nette\Utils\Json;


class CachingJsonResponse extends JsonResponse
{

	/**
	 * Sends response to output.
	 *
	 * @param Http\IRequest $httpRequest
	 * @param Http\IResponse $httpResponse
	 * @throws \Nette\Utils\JsonException
	 */
	public function send(Http\IRequest $httpRequest, Http\IResponse $httpResponse)
	{
		echo Json::encode($this->payload);
	}

}<commit_msg>fix caching response missing content type<commit_after><?php

namespace App\Models\Structs;

use Nette\Application\Responses\JsonResponse;
use Nette\Http;
use Nette\Utils\Json;


class CachingJsonResponse extends JsonResponse
{

	/**
	 * Sends response to output.
	 *
	 * @param Http\IRequest $httpRequest
	 * @param Http\IResponse $httpResponse
	 * @throws \Nette\Utils\JsonException
	 */
	public function send(Http\IRequest $httpRequest, Http\IResponse $httpResponse)
	{
		$httpResponse->setContentType($this->contentType);
		echo Json::encode($this->payload);
	}

}
{'fraction_non_alphanumeric': 0.11658767772511848, 'fraction_numerical': 0.0, 'mean_word_length': 4.770491803278689, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '7138561', 'n_tokens_mistral': 347, 'n_tokens_neox': 327, 'n_words': 72}