<commit_before>// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.controller.api.integration.zone;

import com.yahoo.config.provision.ApplicationId;
import com.yahoo.config.provision.Environment;
import com.yahoo.config.provision.RegionName;
import com.yahoo.config.provision.SystemName;
import com.yahoo.config.provision.ZoneId;
import com.yahoo.vespa.hosted.controller.api.identifiers.DeploymentId;

import java.net.URI;
import java.time.Duration;
import java.util.List;
import java.util.Optional;

/**
 * Provides information about zones in a hosted Vespa system.
 *
 * @author mpolden
 */
public interface ZoneRegistry {

    /** Returns whether the system of this registry contains the given zone. */
    boolean hasZone(ZoneId zoneId);

    /** Returns a list containing the id of all zones in this registry. */
    List<ZoneId> zones();

    /** Returns the default region for the given environment, if one is configured. */
    Optional<RegionName> getDefaultRegion(Environment environment);

    /** Returns a list with all known config servers in the given zone.
     *
     * @deprecated See {@link ZoneRegistry#getConfigServerUris(ZoneId)}
     */
    @Deprecated
    List<URI> getConfigServerUris(ZoneId zoneId);

    /** Returns a list with all known config servers in the given zone, with a secure connection URL. */
    List<URI> getConfigServerSecureUris(ZoneId zoneId);

    /** Returns a URL with the logs for the given deployment, if loggin is configured for its zone. */
    Optional<URI> getLogServerUri(DeploymentId deploymentId);

    /** Returns the time to live for deployments in the given zone. */
    Duration getDeploymentTimeToLive(ZoneId zoneId);

    /** Returns a URL pointing at monitoring resources for the given deployment. */
    URI getMonitoringSystemUri(DeploymentId deploymentId);

    /** Returns the URL of the dashboard for the system of this registry. */
    URI getDashboardUri();

    /** Returns the system of this registry. */
    SystemName system();

}
<commit_msg>Correct deprecation message<commit_after>// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.controller.api.integration.zone;

import com.yahoo.config.provision.ApplicationId;
import com.yahoo.config.provision.Environment;
import com.yahoo.config.provision.RegionName;
import com.yahoo.config.provision.SystemName;
import com.yahoo.config.provision.ZoneId;
import com.yahoo.vespa.hosted.controller.api.identifiers.DeploymentId;

import java.net.URI;
import java.time.Duration;
import java.util.List;
import java.util.Optional;

/**
 * Provides information about zones in a hosted Vespa system.
 *
 * @author mpolden
 */
public interface ZoneRegistry {

    /** Returns whether the system of this registry contains the given zone. */
    boolean hasZone(ZoneId zoneId);

    /** Returns a list containing the id of all zones in this registry. */
    List<ZoneId> zones();

    /** Returns the default region for the given environment, if one is configured. */
    Optional<RegionName> getDefaultRegion(Environment environment);

    /** Returns a list with all known config servers in the given zone.
     *
     * @deprecated Use {@link #getConfigServerSecureUris(ZoneId)} instead (requires that client trusts Athenz CA)
     */
    @Deprecated
    List<URI> getConfigServerUris(ZoneId zoneId);

    /** Returns a list with all known config servers in the given zone, with a secure connection URL. */
    List<URI> getConfigServerSecureUris(ZoneId zoneId);

    /** Returns a URL with the logs for the given deployment, if loggin is configured for its zone. */
    Optional<URI> getLogServerUri(DeploymentId deploymentId);

    /** Returns the time to live for deployments in the given zone. */
    Duration getDeploymentTimeToLive(ZoneId zoneId);

    /** Returns a URL pointing at monitoring resources for the given deployment. */
    URI getMonitoringSystemUri(DeploymentId deploymentId);

    /** Returns the URL of the dashboard for the system of this registry. */
    URI getDashboardUri();

    /** Returns the system of this registry. */
    SystemName system();

}

{'fraction_non_alphanumeric': 0.08768656716417911, 'fraction_numerical': 0.002798507462686567, 'mean_word_length': 3.86281179138322, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '4446991', 'n_tokens_mistral': 1183, 'n_tokens_neox': 1123, 'n_words': 427}