def genvcs(name, content, package=package, project=project, parent=parent, endpoint=endpoint):
    # send job genVCs to api
    sock = request('genVCs', name, content, package, project, parent, endpoint)

    # decode result into sane json
    resp = decode(sock.recv())

    # make sure job completed
    if resp['status'] != 'complete':
        try:
            raise ResolveCompilerError(resp['errors'][0]['errors'])
        except __HOLE__:
            raise ResolveAPIError(resp['bugs'][0]['bugs'])

    # return vcs
    return resp['result']
dataset/ETHPy150Open fkmclane/vim-resolve/rplugin/python3/resolve/api.py/genvcs