373aa6539bc8a4a74fe83be32d3b87a4aa809d15,tensorflow_datasets/core/download/checksums.py,,load_url_infos,#Any#,149

Before Change


  Loads the checksums.
  // TODO(tfds): use `path = tfds.core.Path(path)` instead of casting and `str`.
  if isinstance(path, str):
    with tf.io.gfile.GFile(path) as f:
      return _parse_url_infos(f.read().splitlines())
  else:
    path = typing.cast(type_utils.ReadOnlyPath, path)
    return _parse_url_infos(path.read_text().splitlines())

After Change



def load_url_infos(path: type_utils.PathLike) -> Dict[str, UrlInfo]:
  Loads the checksums.
  return _parse_url_infos(utils.as_path(path).read_text().splitlines())


def save_url_infos(
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: tensorflow/datasets
Commit Name: 373aa6539bc8a4a74fe83be32d3b87a4aa809d15
Time: 2020-10-20
Author: epot@google.com
File Name: tensorflow_datasets/core/download/checksums.py
Class Name:
Method Name: load_url_infos


Project Name: matplotlib/matplotlib
Commit Name: 1f09d1866cafb3e16e628f9f1bfd91471acc0988
Time: 2018-05-29
Author: anntzer.lee@gmail.com
File Name: lib/matplotlib/backends/backend_webagg_core.py
Class Name: FigureManagerWebAgg
Method Name: get_javascript


Project Name: matplotlib/matplotlib
Commit Name: 1f09d1866cafb3e16e628f9f1bfd91471acc0988
Time: 2018-05-29
Author: anntzer.lee@gmail.com
File Name: lib/matplotlib/backends/backend_nbagg.py
Class Name: FigureManagerNbAgg
Method Name: get_javascript