Did I find the right examples for you? yes no

All Samples(23)  |  Call(23)  |  Derive(0)  |  Import(0)

        def put(key, value):
	p = load()
	p[key] = value;
	save(p)
	pass
        


src/a/l/AlfredWorkflow.com-HEAD/Sources/Workflows/Lingo/game.py   AlfredWorkflow.com(Download)
	valid = length == 5 and not already_attempted
	subtitle = "Enter a guess"
	config.put('lingo.last.action', False)
 
	if already_attempted:
		subtitle = "You already played that"
	elif length == 5:
		subtitle = "Have a go!"
		config.put('lingo.last.word', guess)
		config.put('lingo.last.action', True)
def get_solution_item():
	config.put('lingo.last.action', 'gameover')
	if config.get('stats'):
		config.put('games_played', config.get('games_played') + 1 )
		config.put('games_lost', config.get('games_lost') + 1 )

src/a/l/AlfredWorkflow.com-HEAD/Sources/Workflows/Lingo/newgame.py   AlfredWorkflow.com(Download)
def make_new_game():
	config.put('inplay', True)
	config.put('attempts', [])
 
	difficulty = config.get('difficulty')
	hint[hint2] = target[hint2].upper()
	hint = "".join(hint)
	config.put('target', target)
	config.put('hint', hint)
	config.put('stats', True)

src/a/l/AlfredWorkflow.com-HEAD/Sources/Workflows/Todo/setup.py   AlfredWorkflow.com(Download)
		shutil.move(old_todo_db, path_for_todo_db)
 
	config.put('todo.db', new_todo_db)
	print "'{0}' is now configured as your Todo database folder".format(path_for_todo_db)
 

src/a/l/AlfredWorkflow.com-HEAD/Sources/Workflows/Todo/todo.py   AlfredWorkflow.com(Download)
		itemlist.copy_todo_to_clipboard(helpers.extract_todo_id(query))
	elif have_tag:
		config.put('todo.tag.recent', "#"+helpers.extract_tag(query))
 
def main():