@property
    def username(self):
        netloc = self.netloc
        if "@" in netloc:
            userinfo = netloc.rsplit("@", 1)[0]
            if ":" in userinfo:
                userinfo = userinfo.split(":", 1)[0]
            return userinfo
        return None
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/urlparse.py/ResultMixin.username/original