def save_data(cfg, filename, data):
    logger = cfg.configured_logger('pulsar.ds')
    temp = filename % 'temp_%s'
    with open(temp, 'wb') as file:
        pickle.dump(data, file, protocol=2)
    shutil.move(temp, filename)
    logger.info('wrote data into "%s"', filename)
dataset/ETHPy150Open quantmind/pulsar/pulsar/apps/ds/utils.py/save_data/swapped operands of `%`