<commit_before><?php

namespace G4\CleanCore\Service;

use G4\CleanCore\Response\Response;
use G4\CleanCore\Request\Request;
use G4\CleanCore\Validator\Validator;
use G4\CleanCore\UseCase\UseCaseAbstract;

abstract class ServiceAbstract implements \G4\CleanCore\Service\ServiceInterface
{

    /**
     * @var \G4\CleanCore\Request\Request
     */
    private $_request;

    /**
     * @var \G4\CleanCore\Response\Response
     */
    private $_response;

    /**
     * @var \G4\CleanCore\UseCase\UseCaseAbstract
     */
    private $_useCase;

    /**
     * @var \G4\CleanCore\Validator\Validator
     */
    private $_validator;


    public function areParamsValid()
    {
        return $this->getValidator()
            ->setRequest($this->_request)
            ->setMeta($this->getMeta())
            ->setWhitelistParams($this->getWhitelistParams())
            ->isValid();
    }

    public function getFormatterInstance()
    {
        return $this->_getFormatterInstance();
    }

    public function getFormattedResponse()
    {
        if (!method_exists($this->_useCase, 'getFormatterInstance')) {
            $this->_response->setResponseObject($this->_getFormattedResource());
        }

        return $this->_response;
    }

    public function getMeta()
    {
        return $this->_meta;
    }

    public function getUseCaseInstance()
    {
        return $this->_getUseCaseInstance();
    }
<commit_msg>removed from ServiceAbstract getMeta, getFormatterInstance and getUseCaseInstance<commit_after><?php

namespace G4\CleanCore\Service;

use G4\CleanCore\Response\Response;
use G4\CleanCore\Request\Request;
use G4\CleanCore\Validator\Validator;
use G4\CleanCore\UseCase\UseCaseAbstract;

abstract class ServiceAbstract implements \G4\CleanCore\Service\ServiceInterface
{

    /**
     * @var \G4\CleanCore\Request\Request
     */
    private $_request;

    /**
     * @var \G4\CleanCore\Response\Response
     */
    private $_response;

    /**
     * @var \G4\CleanCore\UseCase\UseCaseAbstract
     */
    private $_useCase;

    /**
     * @var \G4\CleanCore\Validator\Validator
     */
    private $_validator;


    public function areParamsValid()
    {
        return $this->getValidator()
            ->setRequest($this->_request)
            ->setMeta($this->getMeta())
            ->setWhitelistParams($this->getWhitelistParams())
            ->isValid();
    }

    public function getFormattedResponse()
    {
        if (!method_exists($this->_useCase, 'getFormatterInstance')) {
            $this->_response->setResponseObject($this->_getFormattedResource());
        }

        return $this->_response;
    }

{'fraction_non_alphanumeric': 0.12707390648567118, 'fraction_numerical': 0.007541478129713424, 'mean_word_length': 2.5851351351351353, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 32, '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': '6530970', 'n_tokens_mistral': 773, 'n_tokens_neox': 756, 'n_words': 121}