<commit_before><?php

namespace PhMap\Wrapper;

use \PhMap\Mapper,
    \PhMap\Wrapper,
    \PhMap\Mapper\Structure\Object as ObjectMapper,
    \PhMap\Exception\InvalidJson;

/**
 * Class Json
 * @package PhMap\Wrapper
 * @method ObjectMapper getMapper()
 */
class Json extends Wrapper {

    /**
     * @var string
     */
    private $inputJsonString;

    /**
     * @var object
     */
    private $inputObject;

    /**
     * @return string
     */
    public function getInputJsonString() {
        return $this->inputJsonString;
    }

    /**
     * @param string $inputJsonString
     * @return $this
     */
    public function setInputJsonString($inputJsonString) {
        if ($this->inputJsonString !== $inputJsonString) {
            $this->inputJsonString = $inputJsonString;

            $this->createInputObject();

            $this->getMapper()
                ->setInputObject($this->getInputObject());
        }

        return $this;
    }

    /**
     * @return object
     */
    private function getInputObject() {
        return $this->inputObject;
    }

    /**
     * @param object $inputObject
     * @return $this
     */
    private function setInputObject($inputObject) {
        $this->inputObject = $inputObject;

        return $this;
    }

    /**
     * @param string $inputJsonString
     * @param string|object $outputClassOrObject
     * @param integer $adapter
     */<commit_msg>fixed json get mapper<commit_after><?php

namespace PhMap\Wrapper;

use \PhMap\Mapper,
    \PhMap\Wrapper,
    \PhMap\Mapper\Structure\Object as ObjectMapper,
    \PhMap\Exception\InvalidJson;

/**
 * Class Json
 * @package PhMap\Wrapper
 */
class Json extends Wrapper {

    /**
     * @var string
     */
    private $inputJsonString;

    /**
     * @var object
     */
    private $inputObject;

    /**
     * @return string
     */
    public function getInputJsonString() {
        return $this->inputJsonString;
    }

    /**
     * @param string $inputJsonString
     * @return $this
     */
    public function setInputJsonString($inputJsonString) {
        if ($this->inputJsonString !== $inputJsonString) {
            $this->inputJsonString = $inputJsonString;

            $this->createInputObject();

            /** @var ObjectMapper $mapper */
            $mapper = $this->getMapper();
            $mapper->setInputObject($this->getInputObject());
        }

        return $this;
    }

    /**
     * @return object
     */
    private function getInputObject() {
        return $this->inputObject;
    }

    /**
     * @param object $inputObject
     * @return $this
     */
    private function setInputObject($inputObject) {
        $this->inputObject = $inputObject;

        return $this;
    }

    /**
     * @param string $inputJsonString
     * @param string|object $outputClassOrObject
     * @param integer $adapter
     */
{'fraction_non_alphanumeric': 0.1267801319902744, 'fraction_numerical': 0.0, 'mean_word_length': 2.0835117773019274, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 21, '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': '6471061', 'n_tokens_mistral': 839, 'n_tokens_neox': 817, 'n_words': 168}