@property
    def filename(self):
        _, netloc, path, _, _ = urllib_parse.urlsplit(self.url)
        name = posixpath.basename(path.rstrip('/')) or netloc
        name = urllib_parse.unquote(name)
        assert name, (self.url % 'URL %r produced no filename')
        return name
dataset/ETHPy150Open anzev/hedwig/build/pip/pip/index.py/Link.filename/swapped operands of `%`