original_docstring: 
          get a file from a store
          
          src must be a URL.
          
          
docstring: get a file from a store
  src must be a URL.
docstring_tokens: get a file from a store src must be a URL .
code: def _get_remote_file(self, src, tgt):
          """
          get a file from a store
          
          src must be a URL.
          
          """
          if not os.path.exists(os.path.dirname(tgt)):
              os.makedirs(os.path.dirname(tgt))
              
          if src.startswith('s3://'):
              toks = src[5:].split('/')
              bname = toks[0]
              keyname = '/' + '/'.join(toks[1:])
  
              # Convert to a public HTTPS URL
              src = 'https://{}.s3.amazonaws.com{}'.format(bname, keyname)
          
          log.info('Download {}...\n'.format(src))
          
          with open(tgt, 'wb') as f:
              # Download the file from the URL, in binary mode.
              connection = urllib.request.urlopen(src)
              shutil.copyfileobj(connection, f)
code_tokens: def _get_remote_file ( self , src , tgt ) : if not os . path . exists ( os . path . dirname ( tgt ) ) : os . makedirs ( os . path . dirname ( tgt ) ) if src . startswith ( 's3://' ) : toks = src [ 5 : ] . split ( '/' ) bname = toks [ 0 ] keyname = '/' + '/' . join ( toks [ 1 : ] ) src = 'https://{}.s3.amazonaws.com{}' . format ( bname , keyname ) log . info ( 'Download {}...\n' . format ( src ) ) with open ( tgt , 'wb' ) as f : connection = urllib . request . urlopen ( src ) shutil . copyfileobj ( connection , f )
short_docstring: get a file from a store
  src must be a URL.
short_docstring_tokens: get a file from a store src must be a URL .
comment: """
          get a file from a store
          
          src must be a URL.
          
          """$SEP$# Convert to a public HTTPS URL$SEP$# Download the file from the URL, in binary mode.