<commit_before><?php namespace Crunch\Salesforce;

class Client
{
    /**
     * @var string
     */
    protected $salesforceLoginUrl;

    /**
     * @var string
     */
    protected $clientId;

    /**
     * @var string
     */
    protected $clientSecret;

    /**
     * @var \Crunch\Salesforce\AccessToken
     */
    private $accessToken;

    /**
     * @var string
     */
    private $baseUrl;

    /**
     * @param string $salesforceLoginUrl
     * @param string $clientId
     * @param string $clientSecret
     */
    function setCredentials($salesforceLoginUrl, $clientId, $clientSecret)
    {
        $this->salesforceLoginUrl = $salesforceLoginUrl;
        $this->clientId           = $clientId;
        $this->clientSecret       = $clientSecret;
    }


    /**
     * Update a specific record
     *
     * @param string $object The type of object to update
     * @param string $recordId The record to update
     * @param array  $updateData The data to update
     * @return bool
     * @throws \Exception
     */
    public function updateRecord($object, $recordId, array $updateData)
    {
        return $this->update($object, $recordId, $updateData);
    }


    /**
     * Fetch a specific object
     *
     * @param $sfId<commit_msg>returned to constructor setup<commit_after><?php namespace Crunch\Salesforce;

class Client
{
    /**
     * @var string
     */
    protected $salesforceLoginUrl;

    /**
     * @var string
     */
    protected $clientId;

    /**
     * @var string
     */
    protected $clientSecret;

    /**
     * @var \Crunch\Salesforce\AccessToken
     */
    private $accessToken;

    /**
     * @var string
     */
    private $baseUrl;

    /**
     * @param string $salesforceLoginUrl
     * @param string $clientId
     * @param string $clientSecret
     */
    function __construct($salesforceLoginUrl, $clientId, $clientSecret)
    {
        $this->salesforceLoginUrl = $salesforceLoginUrl;
        $this->clientId           = $clientId;
        $this->clientSecret       = $clientSecret;
    }


    /**
     * Update a specific record
     *
     * @param string $object The type of object to update
     * @param string $recordId The record to update
     * @param array  $updateData The data to update
     * @return bool
     * @throws \Exception
     */
    public function updateRecord($object, $recordId, array $updateData)
    {
        return $this->update($object, $recordId, $updateData);
    }


    /**
     * Fetch a specific object
     *
     * @param $sfId
{'fraction_non_alphanumeric': 0.11500590783773139, 'fraction_numerical': 0.0, 'mean_word_length': 2.0455635491606716, 'pattern_counts': {'":': 0, '<': 5, '<?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': '7269811', 'n_tokens_mistral': 763, 'n_tokens_neox': 733, 'n_words': 184}