a9e4ad33ccd70b3b51bb78164a6b68bc13287aa8,wandb/apis/internal_runqueue.py,Api,app_url,#Api#,231

Before Change



    @property
    def app_url(self):
        api_url = self.api_url
        // Development
        if api_url.endswith(".test") or self.settings().get("dev_prod"):
            return "http://app.wandb.test"
        // On-prem VM
        if api_url.endswith(":11001"):
            return api_url.replace(":11001", ":11000")
        // Normal
        if api_url.startswith("https://api."):
            return api_url.replace("api.", "app.")
        // Unexpected
        return api_url

    def settings(self, key=None, section=None):
        The settings overridden from the wandb/settings file.

After Change



    @property
    def app_url(self):
        return wandb.util.app_url(self.api_url)

    def settings(self, key=None, section=None):
        The settings overridden from the wandb/settings file.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: wandb/client
Commit Name: a9e4ad33ccd70b3b51bb78164a6b68bc13287aa8
Time: 2020-09-17
Author: vanpelt@gmail.com
File Name: wandb/apis/internal_runqueue.py
Class Name: Api
Method Name: app_url


Project Name: polyaxon/polyaxon
Commit Name: 8d4140e264a0a47d3d690a5adc6386c027e2f8e2
Time: 2019-07-13
Author: mouradmourafiq@gmail.com
File Name: polystores/stores/azure_store.py
Class Name: AzureStore
Method Name: parse_wasbs_url


Project Name: CellProfiler/CellProfiler
Commit Name: 134144d0861a5e85d2b6c76b711fc9624b6740f0
Time: 2010-06-22
Author: leek@1fc53939-2000-0410-845c-e8453a809027
File Name: cellprofiler/measurements.py
Class Name: Measurements
Method Name: agg_ignore_feature