def validate(self):
        if not self.host:
            return

        if not self.url_validate():
            raise RuntimeError("Host is not a URL, please past a valid host, examples:\n" +
                               "- http://10.55.55.50\n" +
                               "- https://10.55.55.50")

        if "/xcode/api" not in self.host:
            self.host = self.host + "/xcode/api"
dataset/ETHPy150Open oarrabi/xserverpy/xserverpy/lib/xcode_server.py/XcodeServer.validate/original