<s> """<STR_LIT>""" <EOL> from twisted . web import soap , server <EOL> from twisted . internet import reactor , defer <EOL> class Example ( soap . SOAPPublisher ) : <EOL> """<STR_LIT>""" <EOL> def soap_echo ( self , x ) : <EOL> return x <EOL> def soap_add ( self , a = <NUM_LIT:0> , b = <NUM_LIT:0> ) : <EOL> return a + b <EOL> soap_add . useKeywords = <NUM_LIT:1> <EOL> def soap_deferred ( self ) : <EOL> return defer . succeed ( <NUM_LIT:2> ) <EOL> reactor . listenTCP ( <NUM_LIT> , server . Site ( Example ( ) ) ) <EOL> reactor . run ( ) </s>
