<commit_before><?php

namespace AngeloPublio;
/**
 * Super-simple SharpSpring API v1 wrapper, in PHP.
 * 
 * @author <NAME> <ange<EMAIL>> 
 * @version 0.1
 */


class SharpSpring
{

	private $accountID;
	private $secretKey;
    
    
    public function __construct($accountID, $secretKey)
    {
        $this->accountID = $accountID;
        $this->secretKey = $secretKey;
    }
    
    public function call($method, $args=array())
    {
        return $this->makeRequest($method, $args);
    }

    private function makeRequest($method, $args=array())
    {      


		$queryString = http_build_query(array('accountID' => $this->accountID, 'secretKey' => $this->secretKey)); 
		$url = "http://api.sharpspring.com/pubapi/v1/?$queryString"; 

		if (!session_id())
		    session_start();
    
		$requestID = session_id();<commit_msg>Using uniqid() instead of session_id()<commit_after><?php

namespace AngeloPublio;
/**
 * Super-simple SharpSpring API v1 wrapper, in PHP.
 * 
 * @author <NAME> <angelopublio.com> 
 * @version 0.1
 */


class SharpSpring
{

	private $accountID;
	private $secretKey;
    
    
    public function __construct($accountID, $secretKey)
    {
        $this->accountID = $accountID;
        $this->secretKey = $secretKey;
    }
    
    public function call($method, $args=array())
    {
        return $this->makeRequest($method, $args);
    }

    private function makeRequest($method, $args=array())
    {      


		$queryString = http_build_query(array('accountID' => $this->accountID, 'secretKey' => $this->secretKey)); 
		$url = "http://api.sharpspring.com/pubapi/v1/?$queryString"; 
		$requestID = uniqid();
{'fraction_non_alphanumeric': 0.15426829268292683, 'fraction_numerical': 0.004878048780487805, 'mean_word_length': 3.1755725190839694, 'pattern_counts': {'":': 0, '<': 10, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5858734', 'n_tokens_mistral': 571, 'n_tokens_neox': 539, 'n_words': 104}