def update_memory(context, manifest):
	memory = manifest.get('memory', '1G')
	unit = memory.lstrip('0123456789').lstrip(' ').lower()
	if unit not in [ 'g', 'gb', 'm', 'mb' ]:
		print >> sys.stderr, 'invalid memory size unit', unit, 'in', memory
		sys.exit(1)
	memory = int(memory[:-len(unit)])
	if [ 'g', 'gb' ] in unit:
		memory *= 1024
	context['total_memory'] += memory
	if memory > context['max_memory']:
		context['max_memory'] = memory
dataset/ETHPy150Open cf-platform-eng/tile-generator/lib/build.py/update_memory/swapped operands of `in`