<commit_before><?php

namespace ProjectRena\Model\EVEApi\EVE;

use ProjectRena\RenaApp;

/**
 * Class CharacterInfo.
 */
class CharacterInfo
{
    /**
     * @var int
     */
    public $accessMask = null;

    /**
     * @var
     */
    private $app;

    /**
     * @param \ProjectRena\RenaApp $app
     */
    function __construct(RenaApp $app)
    {
        $this->app = $app;
    }

    /**
     * @param $characterID
     * @param null $apiKey
     * @param null $vCode
     *
     * @return mixed
     */
    public function getData($characterID, $apiKey = null, $vCode = null)
    {
        try
        {
            $pheal = $this->app->Pheal->Pheal();
            $pheal->scope = 'EVE';
            $requestArray = array('characterID' => $characterID);

            if(isset($apiKey))
            {
                $requestArray['apiKey'] = $apiKey;
            }
            if(isset($vCode))
            {
                $requestArray['vCode'] = $vCode;
            }
            $result = $pheal->CharacterInfo($requestArray)->toArray();
            return $result;
        } catch(\Exception $exception)
        {
            $this->app->Pheal->handleApiException($apiKey, $characterID, $exception);
        }
    }
}<commit_msg>Another one where i forgot $apiKey and $vCode<commit_after><?php

namespace ProjectRena\Model\EVEApi\EVE;

use ProjectRena\RenaApp;

/**
 * Class CharacterInfo.
 */
class CharacterInfo
{
    /**
     * @var int
     */
    public $accessMask = null;

    /**
     * @var
     */
    private $app;

    /**
     * @param \ProjectRena\RenaApp $app
     */
    function __construct(RenaApp $app)
    {
        $this->app = $app;
    }

    /**
     * @param $characterID
     * @param null $apiKey
     * @param null $vCode
     *
     * @return mixed
     */
    public function getData($characterID, $apiKey = null, $vCode = null)
    {
        try
        {
            $pheal = $this->app->Pheal->Pheal($apiKey, $vCode);
            $pheal->scope = 'EVE';
            $requestArray = array('characterID' => $characterID);

            if(isset($apiKey))
            {
                $requestArray['apiKey'] = $apiKey;
            }
            if(isset($vCode))
            {
                $requestArray['vCode'] = $vCode;
            }
            $result = $pheal->CharacterInfo($requestArray)->toArray();
            return $result;
        } catch(\Exception $exception)
        {
            $this->app->Pheal->handleApiException($apiKey, $characterID, $exception);
        }
    }
}
{'fraction_non_alphanumeric': 0.14781237682301931, 'fraction_numerical': 0.0, 'mean_word_length': 1.6355140186915889, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 25, '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': '7305631', 'n_tokens_mistral': 810, 'n_tokens_neox': 791, 'n_words': 138}