89faf0590139840fcbfd5e58140d86dfdb7b419e,tensorflow_datasets/core/download/checksums.py,,_get_sizes_checksums,#Any#,111

Before Change


    if not line or line.startswith("//"):
      continue
    // URL might have spaces inside, but size and checksum will not.
    url, size, checksum = line.rsplit(" ", 2)
    checksums[url] = (int(size), checksum)
  return checksums

After Change


def _get_sizes_checksums(checksums_path):
  Returns {URL: (size, checksum)}s stored within file at given path.
  checksums_file = _read_file(checksums_path).split("\n")
  return parse_sizes_checksums(checksums_file)


def parse_sizes_checksums(checksums_file):
  Returns {URL: (size, checksum)}s stored within given file.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: tensorflow/datasets
Commit Name: 89faf0590139840fcbfd5e58140d86dfdb7b419e
Time: 2019-10-02
Author: adarob@google.com
File Name: tensorflow_datasets/core/download/checksums.py
Class Name:
Method Name: _get_sizes_checksums


Project Name: tensorflow/datasets
Commit Name: 89faf0590139840fcbfd5e58140d86dfdb7b419e
Time: 2019-10-02
Author: adarob@google.com
File Name: tensorflow_datasets/core/download/checksums.py
Class Name:
Method Name: _get_sizes_checksums


Project Name: sentinel-hub/eo-learn
Commit Name: 34576174e972dfbbae96324e7aa4aaf2102d3e00
Time: 2019-06-20
Author: matej.aleksandrov@sinergise.com
File Name: core/eolearn/core/eoworkflow.py
Class Name: EOWorkflow
Method Name: dependency_graph


Project Name: theislab/scanpy
Commit Name: a9d88683e7e4275374191f5af212e24f849e5132
Time: 2017-08-29
Author: flying-sheep@web.de
File Name: docs/conf.py
Class Name:
Method Name: modpath