<s> """<STR_LIT>""" <EOL> import memoized <EOL> import requests <EOL> from jut import defaults <EOL> from jut . exceptions import JutException <EOL> @ memoized . memoized <EOL> def get_details ( app_url = defaults . APP_URL ) : <EOL> """<STR_LIT>""" <EOL> url = '<STR_LIT>' % app_url <EOL> response = requests . get ( url ) <EOL> if response . status_code == <NUM_LIT:200> : <EOL> return response . json ( ) <EOL> else : <EOL> raise JutException ( '<STR_LIT>' % <EOL> ( url , response . status_code , response . text ) ) <EOL> def get_auth_url ( app_url = defaults . APP_URL ) : <EOL> """<STR_LIT>""" <EOL> return get_details ( app_url = app_url ) [ '<STR_LIT>' ] <EOL> def get_deployment_url ( app_url = defaults . APP_URL ) : <EOL> """<STR_LIT>""" <EOL> return get_details ( app_url = app_url ) [ '<STR_LIT>' ] </s>
