<commit_before><?php

namespace Borfast\Socializr;

class FacebookEngine implements SocializrInterface
{
    protected $facebook = null;


    public function __construct($config ,$auth)
    {
        $facebook_config = array(
            'appId' => $config['appId'],
            'secret' => $config['secret'],
        );


        $this->facebook = new \Facebook($facebook_config);
        $this->facebook->setAccessToken($auth['oauth_access_token']);
    }


    public function post($content)
    {
        $uid = $this->facebook->getUser();
        $path = '/'.$uid.'/feed';
        $method = 'POST';
        $params = array(
            'message' => $content,
        );
        $response = $facebook->api($path, $method, $params);

        return $response;
    }
}
<commit_msg>Fix $this.<commit_after><?php

namespace Borfast\Socializr;

class FacebookEngine implements SocializrInterface
{
    protected $facebook = null;


    public function __construct($config ,$auth)
    {
        $facebook_config = array(
            'appId' => $config['appId'],
            'secret' => $config['secret'],
        );


        $this->facebook = new \Facebook($facebook_config);
        $this->facebook->setAccessToken($auth['oauth_access_token']);
    }


    public function post($content)
    {
        $uid = $this->facebook->getUser();
        $path = '/'.$uid.'/feed';
        $method = 'POST';
        $params = array(
            'message' => $content,
        );
        $response = $this->facebook->api($path, $method, $params);

        return $response;
    }
}

{'fraction_non_alphanumeric': 0.16040738383195416, 'fraction_numerical': 0.0, 'mean_word_length': 2.3164556962025316, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 22, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4427825', 'n_tokens_mistral': 465, 'n_tokens_neox': 452, 'n_words': 87}