def apply(self, text):
        codes = []

        if self.foreground:
            codes.append(self.foreground)

        if self.background:
            codes.append(self.background)

        if len(self.options):
            codes += list(self.options.keys())

        if not len(codes):
            return text

        return (';'.join(map(str, codes)), text) % '\033[%sm%s\033[0m'
dataset/ETHPy150Open sdispater/cleo/cleo/formatters/output_formatter_style.py/OutputFormatterStyle.apply/swapped operands of `%`