<s> import sys <EOL> from pubnub import PubnubTornado as Pubnub <EOL> publish_key = len ( sys . argv ) > <NUM_LIT:1> and sys . argv [ <NUM_LIT:1> ] or '<STR_LIT>' <EOL> subscribe_key = len ( sys . argv ) > <NUM_LIT:2> and sys . argv [ <NUM_LIT:2> ] or '<STR_LIT>' <EOL> secret_key = len ( sys . argv ) > <NUM_LIT:3> and sys . argv [ <NUM_LIT:3> ] or '<STR_LIT>' <EOL> cipher_key = len ( sys . argv ) > <NUM_LIT:4> and sys . argv [ <NUM_LIT:4> ] or '<STR_LIT>' <EOL> ssl_on = len ( sys . argv ) > <NUM_LIT:5> and bool ( sys . argv [ <NUM_LIT:5> ] ) or False <EOL> pubnub = Pubnub ( publish_key = publish_key , subscribe_key = subscribe_key , <EOL> secret_key = secret_key , cipher_key = cipher_key , ssl_on = ssl_on ) <EOL> channel = '<STR_LIT>' <EOL> message = '<STR_LIT>' <EOL> def callback ( message ) : <EOL> print ( message ) <EOL> pubnub . stop ( ) <EOL> pubnub . publish ( channel , message , callback = callback , error = callback ) <EOL> pubnub . start ( ) </s>
