def _redact(self, s):
        if len(s) > 5:
            return s[:3] + "..."
        elif len(s) > 1:
            return s[0] + "..."
        else:
            return "..."
dataset/ETHPy150Open matrix-org/sydent/sydent/http/servlets/store_invite_servlet.py/StoreInviteServlet._redact/original