<s> import os <EOL> import urllib2 <EOL> import numpy as np <EOL> DATA_URL = ( '<STR_LIT>' <EOL> '<STR_LIT>' ) <EOL> LOCAL_FILE = '<STR_LIT>' <EOL> password_mgr = urllib2 . HTTPPasswordMgrWithDefaultRealm ( ) <EOL> password_mgr . add_password ( None , DATA_URL , '<STR_LIT>' , '<STR_LIT>' ) <EOL> handler = urllib2 . HTTPBasicAuthHandler ( password_mgr ) <EOL> opener = urllib2 . build_opener ( handler ) <EOL> if not os . path . exists ( LOCAL_FILE ) : <EOL> print "<STR_LIT>" , DATA_URL <EOL> fhandle = opener . open ( DATA_URL ) <EOL> open ( LOCAL_FILE , '<STR_LIT:wb>' ) . write ( fhandle . read ( ) ) </s>
