<commit_before><?php

namespace Ledjin\Sagepay\Action;

use Payum\Core\Action\ActionInterface;
use Payum\Core\Bridge\Spl\ArrayObject;
use Payum\Core\Request\GetStatusInterface;
use Payum\Core\Exception\RequestNotSupportedException;
use Ledjin\Sagepay\Api;
use Ledjin\Sagepay\Api\State\StateInterface;

class StatusAction implements ActionInterface, StateInterface
{

    /**
     * {@inheritDoc}
     *
     * @param GetStatusInterface $request
     */
    public function execute($request)
    {
        RequestNotSupportedException::assertSupports($this, $request);

        $model = new ArrayObject($request->getModel());

        $state = $model['state'];

        if (null === $state ||
            self::STATE_WAITING === $state
        ) {
            $request->markNew();

            return;
        }
<commit_msg>minor updates to status action<commit_after><?php

namespace Ledjin\Sagepay\Action;

use Payum\Core\Action\ActionInterface;
use Payum\Core\Bridge\Spl\ArrayObject;
use Payum\Core\Request\GetStatusInterface;
use Payum\Core\Exception\RequestNotSupportedException;
use Ledjin\Sagepay\Api;
use Ledjin\Sagepay\Api\State\StateInterface;

class StatusAction implements ActionInterface, StateInterface
{
    /**
     * {@inheritDoc}
     *
     * @param GetStatusInterface $request
     */

    /**
     * {@inheritDoc}
     *
     * @param GetStatusInterface $request
     */
    public function execute($request)
    {
        RequestNotSupportedException::assertSupports($this, $request);

        $model = new ArrayObject($request->getModel());

        $state = $model['state'];

        if (null === $state ||
            self::STATE_WAITING === $state
        ) {
            $request->markNew();

            return;
        }

{'fraction_non_alphanumeric': 0.12292738707833048, 'fraction_numerical': 0.0, 'mean_word_length': 2.888888888888889, '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': '2228946', 'n_tokens_mistral': 516, 'n_tokens_neox': 496, 'n_words': 90}