original_docstring: A function to log in to JGI and return a cookie file for use in XML and
      file downloading.
docstring: A function to log in to JGI and return a cookie file for use in XML and
  file downloading.
docstring_tokens: A function to log in to JGI and return a cookie file for use in XML and file downloading .
code: def jgi_login(u, p):
      """A function to log in to JGI and return a cookie file for use in XML and
      file downloading."""
      #   Define a cookie file
      cookie_file = tempfile.NamedTemporaryFile(
          mode='w+t',
          prefix='JMM_JGI_Cookie_',
          suffix='.txt',
          delete=False)
      #   Log in to JGI
      cmd = [
          'curl',
          'https://signon.jgi.doe.gov/signon/create',
          '--data-urlencode',
          'login=' + u,
          '--data-urlencode',
          'password=' + p,
          '-c',
          cookie_file.name
          ]
      #   Open a write handle to /dev/null, we send cURL output there.
      dnull = open(os.devnull, 'w')
      #   Then we execute the command
      p = subprocess.Popen(
          cmd,
          shell=False,
          stdout=dnull,
          stdin=subprocess.PIPE
          )
      out, err = p.communicate()
      #   Close the output handle to /dev/null
      dnull.close()
      return cookie_file
code_tokens: def jgi_login ( u , p ) : cookie_file = tempfile . NamedTemporaryFile ( mode = 'w+t' , prefix = 'JMM_JGI_Cookie_' , suffix = '.txt' , delete = False ) cmd = [ 'curl' , 'https://signon.jgi.doe.gov/signon/create' , '--data-urlencode' , 'login=' + u , '--data-urlencode' , 'password=' + p , '-c' , cookie_file . name ] dnull = open ( os . devnull , 'w' ) p = subprocess . Popen ( cmd , shell = False , stdout = dnull , stdin = subprocess . PIPE ) out , err = p . communicate ( ) dnull . close ( ) return cookie_file
short_docstring: A function to log in to JGI and return a cookie file for use in XML and
  file downloading.
short_docstring_tokens: A function to log in to JGI and return a cookie file for use in XML and file downloading .
comment: """A function to log in to JGI and return a cookie file for use in XML and
      file downloading."""$SEP$#   Define a cookie file$SEP$#   Log in to JGI$SEP$#   Open a write handle to /dev/null, we send cURL output there.$SEP$#   Then we execute the command$SEP$#   Close the output handle to /dev/null