def get_server_url(self, repository_info, tool):
        if self.options.server:
            server_url = self.options.server
        else:
            server_url = tool.scan_for_server(repository_info)

        if not server_url:
            print('Unable to find a Review Board server for this source code '
                  'tree.')
            sys.exit(1)

        return server_url
Find the intersection of a line with the boundary of a trust region.
dataset/ETHPy150Open reviewboard/rbtools/rbtools/commands/__init__.py/Command.get_server_url--crossover with--dataset/ETHPy150Open scipy/scipy/scipy/optimize/_lsq/common.py/intersect_trust_region