def _get_templated_url(self, template, nid, method=None):
        url = None
        if method=="members":
            url = template % nid
        else:
            if "http" in nid:
                (host, username, repo_name) = nid.rsplit("/", 2)
            else:
                (username, repo_name) = nid.split(",")  # deprecate github namespace after /v1
            url = template % (username, repo_name)

        return(url)
dataset/ETHPy150Open Impactstory/total-impact-core/totalimpact/providers/github.py/Github._get_templated_url/original