<s> """<STR_LIT>""" <EOL> from __future__ import with_statement <EOL> from fabric . api import * <EOL> from fabric . colors import * <EOL> from dogapi . fab import setup , notify <EOL> setup ( api_key = "<STR_LIT>" ) <EOL> @ task ( default = True , alias = "<STR_LIT:success>" ) <EOL> @ notify <EOL> def sweet_task ( some_arg , other_arg ) : <EOL> """<STR_LIT>""" <EOL> print ( green ( "<STR_LIT>" ) ) <EOL> @ task ( alias = "<STR_LIT>" ) <EOL> @ notify <EOL> def boring_task ( some_arg ) : <EOL> """<STR_LIT>""" <EOL> print ( red ( "<STR_LIT>" ) ) <EOL> raise Exception ( "<STR_LIT>" ) <EOL> env . roledefs . update ( { <EOL> '<STR_LIT>' : [ '<STR_LIT:localhost>' ] <EOL> } ) <EOL> @ task ( alias = "<STR_LIT>" ) <EOL> @ notify <EOL> @ roles ( '<STR_LIT>' ) <EOL> @ hosts ( '<STR_LIT:localhost>' ) <EOL> def roles_task ( arg_1 , arg_2 ) : <EOL> return run ( '<STR_LIT>' ) <EOL> @ task ( alias = "<STR_LIT>" ) <EOL> @ notify <EOL> def multi_task ( ) : <EOL> commands = [ '<STR_LIT>' , '<STR_LIT>' ] <EOL> with settings ( warn_only = True ) : <EOL> return [ run ( cmd ) for cmd in commands ] </s>
