ab9247bdf8b7a3decc34a15b26fec813ea8fba0d,scanpy/readwrite.py,,_download,#Any#Any#,917

Before Change



            headers = resp.info()
            // This capitalization was copied from the stdlib too
            if "content-length" in headers:
                size = int(headers["Content-Length"])

            update_to(blocknum, bs, size)
            while True:
                block = resp.read(bs)
                if not block:

After Change


            while block:
                f.write(block)
                blocknum += 1
                t.update(blocknum * blocksize - t.n)
                block = resp.read(blocksize)
        // fmt: on
    except Exception:
        // Make sure file doesn’t exist half-downloaded
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: theislab/scanpy
Commit Name: ab9247bdf8b7a3decc34a15b26fec813ea8fba0d
Time: 2020-07-31
Author: ivirshup@gmail.com
File Name: scanpy/readwrite.py
Class Name:
Method Name: _download


Project Name: merenlab/anvio
Commit Name: 54d6d780eeae11ea7c3332889b3f64ed69729677
Time: 2020-03-05
Author: kiefl.evan@gmail.com
File Name: anvio/profiler.py
Class Name: BAMProfiler
Method Name: profile_multi_thread


Project Name: erikbern/ann-benchmarks
Commit Name: 3f88b6659ee609857724cd2170f8ad9f76d353fd
Time: 2017-04-27
Author: alef@itu.dk
File Name: ann_benchmarks/datasets.py
Class Name:
Method Name: get_manifest


Project Name: merenlab/anvio
Commit Name: 54d6d780eeae11ea7c3332889b3f64ed69729677
Time: 2020-03-05
Author: kiefl.evan@gmail.com
File Name: anvio/profiler.py
Class Name: BAMProfiler
Method Name: profile_single_thread