def write(self, text):
        n_spaces = max(len(text) - self.last_printed_len, 0)

        self.file.write('\r' + text + ' ' * n_spaces)
        self.file.flush()

        self.last_printed_len = len(text)
dataset/ETHPy150Open itdxer/neupy/neupy/helpers/progressbar.py/StatusPrinter.write/swapped operands of `-`