<commit_before><?php
	declare(strict_types = 1);

	namespace Edde\Common\Http;

	use Edde\Api\Container\ILazyInject;
	use Edde\Api\Converter\IConverterManager;
	use Edde\Api\Http\IBody;
	use Edde\Common\AbstractObject;

	class Body extends AbstractObject implements IBody, ILazyInject {
		/**
		 * @var string|callable
		 */
		protected $body;
		/**
		 * @var string
		 */
		protected $mime;
		/**
		 * @var IConverterManager
		 */
		protected $converterManager;

		public function __construct($body, string $mime = '') {
			$this->body = $body;
		}

		public function lazyConverterManager(IConverterManager $converterManager) {
			$this->converterManager = $converterManager;
		}

		public function convert(string $target) {
			return $this->converterManager->convert($this->getBody(), $this->mime, $target);
		}<commit_msg>- forgot mime constructor parameter in Body<commit_after><?php
	declare(strict_types = 1);

	namespace Edde\Common\Http;

	use Edde\Api\Container\ILazyInject;
	use Edde\Api\Converter\IConverterManager;
	use Edde\Api\Http\IBody;
	use Edde\Common\AbstractObject;

	class Body extends AbstractObject implements IBody, ILazyInject {
		/**
		 * @var string|callable
		 */
		protected $body;
		/**
		 * @var string
		 */
		protected $mime;
		/**
		 * @var IConverterManager
		 */
		protected $converterManager;

		public function __construct($body, string $mime = '') {
			$this->body = $body;
			$this->mime = $mime;
		}

		public function lazyConverterManager(IConverterManager $converterManager) {
			$this->converterManager = $converterManager;
		}

		public function convert(string $target) {
			return $this->converterManager->convert($this->getBody(), $this->mime, $target);
		}
{'fraction_non_alphanumeric': 0.13086854460093897, 'fraction_numerical': 0.0011737089201877935, 'mean_word_length': 4.0294985250737465, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 16, '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': '3601975', 'n_tokens_mistral': 608, 'n_tokens_neox': 525, 'n_words': 114}