<commit_before>//go:generate go run xenapi.go

package xenAPI

import (
	"crypto/tls"
	"fmt"
	"github.com/ringods/go-xmlrpc-client"
	"net/http"
)

type APIResult struct {
	Value interface{}
}

func (client *Client) APICall(method string, params ...interface{}) (result APIResult, err error) {
	rpcParams := xmlrpc.Params{
		Params: params,
	}

	rpcResult := xmlrpc.Struct{}

	err = client.rpc.Call(method, rpcParams, &rpcResult)
	if err != nil {
		return
	}

	status, ok := rpcResult["Status"].(string)
	if !ok {
		err = fmt.Errorf("Expected a field named %q with a string value in the response", "Status")
		return
	}

	if status != "Success" {<commit_msg>Last fix of: go-xmlrpc-client still lives under amfranz account.<commit_after>//go:generate go run xenapi.go

package xenAPI

import (
	"crypto/tls"
	"fmt"
	"net/http"

	"github.com/amfranz/go-xmlrpc-client"
)

type APIResult struct {
	Value interface{}
}

func (client *Client) APICall(method string, params ...interface{}) (result APIResult, err error) {
	rpcParams := xmlrpc.Params{
		Params: params,
	}

	rpcResult := xmlrpc.Struct{}

	err = client.rpc.Call(method, rpcParams, &rpcResult)
	if err != nil {
		return
	}

	status, ok := rpcResult["Status"].(string)
	if !ok {
		err = fmt.Errorf("Expected a field named %q with a string value in the response", "Status")
		return
	}

	if status != "Success" {
{'fraction_non_alphanumeric': 0.14202049780380674, 'fraction_numerical': 0.0, 'mean_word_length': 3.9709090909090907, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 7}, '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': '6141646', 'n_tokens_mistral': 500, 'n_tokens_neox': 477, 'n_words': 136}