<commit_before><?php 

namespace Utipd\CounterpartyFollower\Mocks;

use Utipd\XCPDClient\Client;
use PDO;
use Exception;

/**
*       
*/
class MockClient extends Client
{

    protected $callbacks_map = null;

    function __construct($callbacks_map=[]) {
        $this->callbacks_map = $callbacks_map;
    }
    public function addCallback($method, Callable $function) {
        $this->callbacks_map[$method] = $function;
        return $this;
    }

    function __call($method, $arguments) {
        if ($this->callbacks_map AND isset($this->callbacks_map[$method])) {
            return call_user_func_array($this->callbacks_map[$method], $arguments);
        }

        if ($method == 'get_mempool') { return []; }

        throw new Exception("Mock method not implemented for $method", 1);
        
    }

    public function get_asset_info() {
        return [0 => []];
    }


}<commit_msg>Mock get_asset_info call returns divisibility status<commit_after><?php 

namespace Utipd\CounterpartyFollower\Mocks;

use Utipd\XCPDClient\Client;
use PDO;
use Exception;

/**
*       
*/
class MockClient extends Client
{

    protected $callbacks_map = null;

    function __construct($callbacks_map=[]) {
        $this->callbacks_map = $callbacks_map;
    }
    public function addCallback($method, Callable $function) {
        $this->callbacks_map[$method] = $function;
        return $this;
    }

    function __call($method, $arguments) {
        if ($this->callbacks_map AND isset($this->callbacks_map[$method])) {
            return call_user_func_array($this->callbacks_map[$method], $arguments);
        }

        if ($method == 'get_mempool') { return []; }

        throw new Exception("Mock method not implemented for $method", 1);
        
    }

    public function get_asset_info() {
        return [0 => ['divisible' => true]];
    }


}
{'fraction_non_alphanumeric': 0.13038793103448276, 'fraction_numerical': 0.0021551724137931034, 'mean_word_length': 2.951063829787234, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 16, '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': '6883384', 'n_tokens_mistral': 575, 'n_tokens_neox': 556, 'n_words': 121}