<s> """<STR_LIT>""" <EOL> import ari . client <EOL> import swaggerpy . http_client <EOL> import urlparse <EOL> Client = client . Client <EOL> def connect ( base_url , username , password ) : <EOL> """<STR_LIT>""" <EOL> split = urlparse . urlsplit ( base_url ) <EOL> http_client = swaggerpy . http_client . SynchronousHttpClient ( ) <EOL> http_client . set_basic_auth ( split . hostname , username , password ) <EOL> return Client ( base_url , http_client ) </s>
