def METHOD_NAME(url):
    names = ["/releases/download/v{{ version }}/", "/archive/"]
    if "github.com" in url:
        burl, eurl = url.rsplit("/", 1)
        burl = burl + "/"
        for ghave, grep in permutations(names, 2):
            if ghave in url:
                if ghave == "/archive/":
                    yield burl.replace(ghave, grep) + "{{ name }}-" + eurl
                else:
                    yield (burl.replace(ghave, grep) + eurl.replace("{{ name }}-", ""))