original_docstring: 
  	Turn on/off the light
  	
docstring: Turn on/off the light
docstring_tokens: Turn on / off the light
code: def power(req):
  	'''
  	Turn on/off the light
  	'''
  	cmd=json.loads(req.POST['PARAMS'])
  	if 'POWER' in cmd:
  		pin_light=5
  		val=cmd['POWER'].upper()
  		gpio.setmode(gpio.BOARD)
  		gpio.setup(pin_light, gpio.OUT)
  		gpio.output(pin_light, gpio.HIGHT if val in ['ON', 'YES', '1'] else gpio.LOW)
  	else:
  		print('Unknow power status: %s'%cmd)
code_tokens: def power ( req ) : cmd = json . loads ( req . POST [ 'PARAMS' ] ) if 'POWER' in cmd : pin_light = 5 val = cmd [ 'POWER' ] . upper ( ) gpio . setmode ( gpio . BOARD ) gpio . setup ( pin_light , gpio . OUT ) gpio . output ( pin_light , gpio . HIGHT if val in [ 'ON' , 'YES' , '1' ] else gpio . LOW ) else : print ( 'Unknow power status: %s' % cmd )
short_docstring: Turn on/off the light
short_docstring_tokens: Turn on / off the light
comment: '''
  	Turn on/off the light
  	'''