161014d590fcf3d8af24628c1199be370ef9c88f,tensorflow_datasets/core/download/downloader.py,_Downloader,_sync_download,#_Downloader#Any#Any#,152

Before Change


    if kaggle.KaggleFile.is_kaggle_url(url):
      return self._sync_kaggle_download(url, destination_path)

    if url.startswith("ftp"):
      return self._sync_ftp_download(url, destination_path)

    try:
      // If url is on a filesystem that gfile understands, use copy. Otherwise,
      // use requests.
      if not url.startswith("http"):

After Change


          "Failed to get url %s. HTTP code: %d." %
          (url, response.status_code))
    else:
      request = urllib.request.Request(url)
      response = urllib.request.urlopen(request)
    fname = _get_filename(response)
    path = os.path.join(destination_path, fname)
    size = 0
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: tensorflow/datasets
Commit Name: 161014d590fcf3d8af24628c1199be370ef9c88f
Time: 2019-03-14
Author: rickdey1998@gmail.com
File Name: tensorflow_datasets/core/download/downloader.py
Class Name: _Downloader
Method Name: _sync_download


Project Name: ilastik/ilastik
Commit Name: 54752cfa38468abbab5580fae1a718bb41fe3f31
Time: 2013-04-19
Author: bergs@janelia.hhmi.org
File Name: ilastik/applets/dataSelection/dataSelectionGui.py
Class Name: DataSelectionGui
Method Name: handleAddStack


Project Name: ilastik/ilastik
Commit Name: 890dcf0662a1150b7ea70a8d6af89c5d3cf8d343
Time: 2019-05-07
Author: k-dominik@users.noreply.github.com
File Name: ilastik/workflows/carving/carvingGui.py
Class Name: CarvingGui
Method Name: _exportMeshes