2a581fdc54bcdef8c32326029c26145352c2c023,wandb/sdk/lib/git.py,GitRepo,remote_url,#GitRepo#,106

Before Change


    def remote_url(self):
        if not self.remote:
            return None
        return self.remote.url

    @property
    def root_dir(self):
        if not self.repo:

After Change


    def remote_url(self):
        if not self.remote:
            return None
        parsed = urlparse(self.remote.url)
        if parsed.password is not None:
            return urlunparse(
                parsed._replace(
                    netloc="{}:@{}".format(parsed.username, parsed.hostname)
                )
            )
        return urlunparse(parsed._replace(netloc=parsed.hostname))

    @property
    def root_dir(self):
        if not self.repo:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 11

Instances


Project Name: wandb/client
Commit Name: 2a581fdc54bcdef8c32326029c26145352c2c023
Time: 2021-01-21
Author: kdgoyette@gmail.com
File Name: wandb/sdk/lib/git.py
Class Name: GitRepo
Method Name: remote_url


Project Name: wandb/client
Commit Name: 2a581fdc54bcdef8c32326029c26145352c2c023
Time: 2021-01-21
Author: kdgoyette@gmail.com
File Name: wandb/sdk/lib/git.py
Class Name: GitRepo
Method Name: remote_url


Project Name: RasaHQ/rasa
Commit Name: db36f20b88709421b9a59c31d2092385e565fb2e
Time: 2020-11-19
Author: federicotedin@gmail.com
File Name: rasa/nlu/utils/__init__.py
Class Name:
Method Name: is_url


Project Name: wandb/client
Commit Name: 2a581fdc54bcdef8c32326029c26145352c2c023
Time: 2021-01-21
Author: kdgoyette@gmail.com
File Name: wandb/sdk_py27/lib/git.py
Class Name: GitRepo
Method Name: remote_url