<commit_before><?php

namespace TradoLogic\Responses;

use TradoLogic\Exception;
use TradoLogic\Exceptions\EmailAlreadyExistsException;
use TradoLogic\Payload;
use TradoLogic\Response;

class UserCreate extends Response
{
    const ERROR_EMAIL_EXISTS = 'Registration_ExistingEmail';

    const FIELD_USER_ID = 'userId';

    const FIELD_CYSES_REGULATED = 'cySECRegulated';

    const FIELD_SESSION_ID = 'sessionId';

    public function __construct(Payload $payload)
    {
        parent::__construct($payload);
        if (!$this->isSuccess()) {
            switch ($this->getMessageType()) {
                case static::ERROR_EMAIL_EXISTS: {
                    throw new EmailAlreadyExistsException($this, $this->getMessageText());
                }
                default: {
                    throw new Exception($this, $this->getMessageText());
                }
            }
        }
    }

    public function getUserId()
    {
        $messageParameters = $this->getMessageParameters();
        return $messageParameters[static::FIELD_USER_ID];
    }

    public function getCysecRegulated()
    {
        $messageParameters = $this->getMessageParameters();
        return $messageParameters[static::FIELD_CYSES_REGULATED];
    }

    public function getSessionId()
    {
        $messageParameters = $this->getMessageParameters();
        return $messageParameters[static::FIELD_SESSION_ID];
    }
}<commit_msg>Applied fixes from StyleCI<commit_after><?php

namespace TradoLogic\Responses;

use TradoLogic\Exception;
use TradoLogic\Exceptions\EmailAlreadyExistsException;
use TradoLogic\Payload;
use TradoLogic\Response;

class UserCreate extends Response
{
    const ERROR_EMAIL_EXISTS = 'Registration_ExistingEmail';

    const FIELD_USER_ID = 'userId';

    const FIELD_CYSES_REGULATED = 'cySECRegulated';

    const FIELD_SESSION_ID = 'sessionId';

    public function __construct(Payload $payload)
    {
        parent::__construct($payload);
        if (!$this->isSuccess()) {
            switch ($this->getMessageType()) {
                case static::ERROR_EMAIL_EXISTS: {
                    throw new EmailAlreadyExistsException($this, $this->getMessageText());
                }
                default: {
                    throw new Exception($this, $this->getMessageText());
                }
            }
        }
    }

    public function getUserId()
    {
        $messageParameters = $this->getMessageParameters();

        return $messageParameters[static::FIELD_USER_ID];
    }

    public function getCysecRegulated()
    {
        $messageParameters = $this->getMessageParameters();

        return $messageParameters[static::FIELD_CYSES_REGULATED];
    }

    public function getSessionId()
    {
        $messageParameters = $this->getMessageParameters();

        return $messageParameters[static::FIELD_SESSION_ID];
    }
}
{'fraction_non_alphanumeric': 0.10181311018131102, 'fraction_numerical': 0.0, 'mean_word_length': 2.750326797385621, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, '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': '7363954', 'n_tokens_mistral': 798, 'n_tokens_neox': 777, 'n_words': 139}