<commit_before>import xmlrpclib
import base64
import string
import random


def rand_id(max_size=10, chars=string.ascii_uppercase + string.digits):
    assert max_size >= 1
    size = random.randint(min(max_size, 5), max_size)
    return ''.join(random.choice(chars) for x in range(size))


class PBA(object):
    def __init__(self, host, user=None, password=<PASSWORD>, ssl=False, verbose=False, port=5224):
        if ssl == False:
            protocol = 'http'
        elif ssl == True:
            protocol = 'https'
        if user != None:
            self.__server__ = xmlrpclib.ServerProxy("%s://%s:%s@%s:%s/RPC2" % (protocol, user, password, host, str(port)))
        elif user == None:
            self.__server__ = xmlrpclib.ServerProxy("%s://%s:%s/RPC2" % (protocol, host, str(port)))
        self.__server__._ServerProxy__verbose = verbose
        self.host = host

    def Execute(self, method, params=[], server='BM'):
        vars = {
            'Params': params,
            'Server': server,
            'Method': method,
        }
        try:
            responce = {
                'status': 0,
                'result': self.__server__.Execute(vars)['Result'].pop(),
            }
            return responce
        except xmlrpclib.Fault as err:<commit_msg>Remove assert from rand_id helper<commit_after>import xmlrpclib
import base64
import string
import random


def rand_id(max_size=10, chars=string.ascii_uppercase + string.digits):
    size = random.randint(min(max_size, 5), max_size)
    return ''.join(random.choice(chars) for x in range(size))


class PBA(object):
    def __init__(self, host, user=None, password=<PASSWORD>, ssl=False, verbose=False, port=5224):
        if ssl == False:
            protocol = 'http'
        elif ssl == True:
            protocol = 'https'
        if user != None:
            self.__server__ = xmlrpclib.ServerProxy("%s://%s:%s@%s:%s/RPC2" % (protocol, user, password, host, str(port)))
        elif user == None:
            self.__server__ = xmlrpclib.ServerProxy("%s://%s:%s/RPC2" % (protocol, host, str(port)))
        self.__server__._ServerProxy__verbose = verbose
        self.host = host

    def Execute(self, method, params=[], server='BM'):
        vars = {
            'Params': params,
            'Server': server,
            'Method': method,
        }
        try:
            responce = {
                'status': 0,
                'result': self.__server__.Execute(vars)['Result'].pop(),
            }
            return responce
        except xmlrpclib.Fault as err:
{'fraction_non_alphanumeric': 0.13666536509176103, 'fraction_numerical': 0.009761811792268645, 'mean_word_length': 2.2972972972972974, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 8}, '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': '1021900', 'n_tokens_mistral': 802, 'n_tokens_neox': 774, 'n_words': 182}