def upgrade_7to8(d):
    d['version'] = 8
    alfred = d['arc']['NA']['US']['NY']['Alfred']
    log.info('Removing %s downloads from Alfred.' % alfred)
    d['counts'] = [(a, b - alfred) for a, b in d['counts']]
    log.info((d['total'], d['total'] - alfred) % 'Adjusting count: %s => %s')
    d['total'] -= alfred
    d['arc']['NA']['US']['NY']['Alfred'] = 0

#
# 4. Cleanup.
#
dataset/ETHPy150Open jbalogh/glow/glow.py/upgrade_7to8/swapped operands of `%`