Get the URI of the API endpoint for the AdVal request using the provided
hostname, store id, and version.
@param  string $hostname
@param  string $storeId
@param  string $major
@param  string $minor
@return string
484460
private function _getApiUri($hostname, $storeId, $major, $minor)
    {
        return sprintf(
            Radial_Core_Helper_Data::URI_FORMAT,
            $hostname,
            $major,
            $minor,
            $storeId,
            self::AD_VAL_SERVICE,
            self::AD_VAL_OPERATION,
            '',
            'xml'
        );
    }
60059
protected function uri($appId = null, $profileId = null, $clone = false)
    {
        if (is_null($appId)) {
            return '/applications/profiles/all';
        }

        if (is_null($profileId)) {
            return "/applications/{$appId}/profiles";
        }

        if (!$clone) {
            return "/applications/{$appId}/profiles/{$profileId}";
        }

        return "/applications/{$appId}/profiles/{$profileId}/clone";
    }
309107
public function getUpgradeScript($machineName, $majorVersion, $minorVersion) {
    $upgrades = "/libraries/{$machineName}-{$majorVersion}.{$minorVersion}/upgrades.js";
    if (file_exists($this->path . $upgrades)) {
      return $upgrades;
    }
    else {
      return NULL;
    }
  }
444610
protected function sendRequest(string $hostname, array $params): string
    {
        $url = $hostname . "?" . http_build_query($params);

        $response = $this->getClient()->request("GET", $url);

        if ($response->getStatusCode() != "200") {
            throw new ProviderException("Failed to call the external text-to-speech service");
        }

        return $response->getBody();
    }
1172664
public OvhSecondaryDNS serviceName_secondaryDnsDomains_domain_GET(String serviceName, String domain) throws IOException {
		String qPath = "/vps/{serviceName}/secondaryDnsDomains/{domain}";
		StringBuilder sb = path(qPath, serviceName, domain);
		String resp = exec(qPath, "GET", sb.toString(), null);
		return convertTo(resp, OvhSecondaryDNS.class);
	}
532484
private function getSmtpUsername($storeId = null)
    {
        return $this->scopeConfig->getValue(
            self::XML_PATH_DDG_TRANSACTIONAL_USERNAME,
            \Magento\Store\Model\ScopeInterface::SCOPE_STORE,
            $storeId
        );
    }
180527
protected static function getConfigChecksum(int $major, int $minor): array
    {
        if ($major === 3 || $major === 4) {
            switch ($minor) {
                case 0:
                    return [
                        'CHECKSUM_PUBKEY' => true,
                        'BUFFER' => 1048576,
                        'HASH_LEN' => \SODIUM_CRYPTO_GENERICHASH_BYTES_MAX
                    ];
            }
        }
        // @codeCoverageIgnoreStart
        throw new InvalidMessage(
            'Invalid version tag'
        );
        // @codeCoverageIgnoreEnd
    }
154680
def get_device_major_minor(dev_path):
    
    stat = os.lstat(dev_path)
    return os.major(stat.st_rdev), os.minor(stat.st_rdev)
651388
protected function parseVersion2010($minorversion)
    {
        switch ($minorversion) {
            case 0:
                return Client::VERSION_2010;
            case 1:
                return Client::VERSION_2010_SP1;
            case 2:
                return Client::VERSION_2010_SP2;
            default:
                return Client::VERSION_2010;
        }
    }
1338675
public Object get(String hostname, int netId) {
        AddressCacheEntry entry = cache.get(new AddressCacheKey(hostname, netId));
        // Do we have a valid cache entry?
        if (entry != null && entry.expiryNanos >= System.nanoTime()) {
            return entry.value;
        }
        // Either we didn't find anything, or it had expired.
        // No need to remove expired entries: the caller will provide a replacement shortly.
        return null;
    }
1330744
@Provides
	@Singleton
	@Named(GuiceProperties.LOCAL_REST_SERVICES_ENDPOINT)
	public URI getRestServicesEndpoint(@Named(GuiceProperties.STATIC_ENDPOINT_CONFIG_NAME) URI webappUri,
	                                   @Named(GuiceProperties.REST_SERVICES_PREFIX) String restPrefix,
	                                   ServletContext context)
	{
		if (restPrefix.equals(""))
		{
			// resteasy mapped to /
			return webappUri;
		}
		else
		{
			// Strip the leading / from the restpath
			while (restPrefix.startsWith("/"))
				restPrefix = restPrefix.substring(1);

			final String webappPath = webappUri.toString();

			if (webappPath.endsWith("/"))
				return URI.create(webappPath + restPrefix);
			else
				return URI.create(webappPath + "/" + restPrefix);
		}
	}
811723
protected final URI versionURI(String versionName)
   {
      return URI.create(versionedResource.getIdentifier().toASCIIString() + "?version=" + versionName);
   }
772712
public function findOneByHost($hostname, $onlyActive = false)
    {
        $allMatchingDomains = $this->findByHost($hostname, $onlyActive);
        return count($allMatchingDomains) > 0 ? $allMatchingDomains[0] : null;
    }
369498
public function getCdnUrl($storeId = null)
    {
        //Check for sandbox mode
        if ($this->isSandboxModeSet($storeId)) {
            return self::CDN_URL_SANDBOX;
        } else {
            return self::CDN_URL_PRODUCTION;
        }
    }
27893
public function getBaseURI()
    {
        $hostUri = $this->getHostURI();
        $apiName = ezpRestPrefixFilterInterface::getApiProviderName();
        $apiPrefix = eZINI::instance( 'rest.ini' )->variable( 'System', 'ApiPrefix');
        $uri = str_replace( $apiPrefix, $apiPrefix.'/'.$apiName, $this->uri );
        $baseUri = $hostUri.$uri;

        return $baseUri;
    }
1346388
private String getServerURL(String entityBaseURL, String entityAlias, String processingURL) {

        return getServerURL(entityBaseURL, entityAlias, processingURL, null);

    }
1205206
def base_url(self):
        """"""
        if self.location in self.known_locations:
            return self.known_locations[self.location]
        elif '.' in self.location or self.location == 'localhost':
            return 'https://' + self.location
        else:
            return 'https://' + self.location + API_HOST_SUFFIX