def flag(life, camp_id, flag, value):
	if not camp_id in life['known_camps']:
		raise Exception('%s does not know camp \'%s\'.' % (' '.join(life['name'])), value)
	
	life['known_camps'][camp_id]['flags'][flag] = value
	
	logging.debug((' '.join(life['name']), camp_id, flag) % '%s flagged camp \'%s\' with %s.')
dataset/ETHPy150Open flags/Reactor-3/alife/camps.py/flag/swapped operands of `%`