<s> import crowd <EOL> import os , sys , getpass <EOL> app_url = '<STR_LIT>' <EOL> app_user = '<STR_LIT>' <EOL> app_pass = '<STR_LIT>' <EOL> cs = crowd . CrowdServer ( app_url , app_user , app_pass ) <EOL> if len ( sys . argv ) > <NUM_LIT:1> : <EOL> username = sys . argv [ <NUM_LIT:1> ] <EOL> else : <EOL> username = os . environ [ '<STR_LIT>' ] <EOL> password = getpass . getpass ( prompt = '<STR_LIT>' % username ) <EOL> success = cs . auth_user ( username , password ) <EOL> if success : <EOL> print '<STR_LIT>' <EOL> else : <EOL> print '<STR_LIT>' </s>
