<commit_before><?php

namespace Parse;

/**
 * ParseCloud - Facilitates calling Parse Cloud functions.
 *
 * @author <NAME> <<EMAIL>>
 */
class ParseCloud
{
    /**
     * Makes a call to a Cloud function.
     *
     * @param string $name         Cloud function name
     * @param array  $data         Parameters to pass
     * @param bool   $useMasterKey Whether to use the Master Key
     *
     * @return mixed
     */
    public static function run($name, $data = [], $useMasterKey = false)
    {
        $sessionToken = null;
        if (ParseUser::getCurrentUser()) {
            $sessionToken = ParseUser::getCurrentUser()->getSessionToken();
        }
        $response = ParseClient::_request(
            'POST',
            'functions/'.$name,
            $sessionToken,
            json_encode(ParseClient::_encode($data, null, false)),
            $useMasterKey
        );

        return ParseClient::_decode($response['result']);
    }
}
<commit_msg>Method call uses 3 parameters, but method signature uses 2 parameters<commit_after><?php

namespace Parse;

/**
 * ParseCloud - Facilitates calling Parse Cloud functions.
 *
 * @author <NAME> <<EMAIL>>
 */
class ParseCloud
{
    /**
     * Makes a call to a Cloud function.
     *
     * @param string $name         Cloud function name
     * @param array  $data         Parameters to pass
     * @param bool   $useMasterKey Whether to use the Master Key
     *
     * @return mixed
     */
    public static function run($name, $data = [], $useMasterKey = false)
    {
        $sessionToken = null;
        if (ParseUser::getCurrentUser()) {
            $sessionToken = ParseUser::getCurrentUser()->getSessionToken();
        }
        $response = ParseClient::_request(
            'POST',
            'functions/'.$name,
            $sessionToken,
            json_encode(ParseClient::_encode($data, false)),
            $useMasterKey
        );

        return ParseClient::_decode($response['result']);
    }
}

{'fraction_non_alphanumeric': 0.12008072653884964, 'fraction_numerical': 0.0010090817356205853, 'mean_word_length': 2.1677316293929714, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '3481863', 'n_tokens_mistral': 530, 'n_tokens_neox': 535, 'n_words': 145}