def preview(self, text):
        if not text:
            return text
        l = text.split("\n")
        result = l[0]
        if "[\n, \r]" in result[-1]:
            result = result[:-1]
        if result != text:
            result += " [...]"
        return result
dataset/ETHPy150Open softdevteam/mattermost-github-integration/payload.py/Payload.preview/swapped operands of `in`