d747ef945d89aa55bf30b602607e3efd46e23775,tensorflow_datasets/testing/dataset_builder_testing.py,DatasetBuilderTestCase,_test_checksums,#DatasetBuilderTestCase#,278
Before Change
filepath = self._get_checksums_filepath()
with tf.io.gfile.GFile(filepath, "rb") as f:
for line in f.readlines():
urls.append(line.split()[0].decode("utf-8") )
self.assertEqual(set(self.URLS), set(urls))
After Change
def _test_checksums(self):
urls = []
filepath = os.path.join(download.checksums._CHECKSUM_DIRS[0], self.builder.name + ".txt")
if not tf.io.gfile.exists(filepath):
raise AssertionError("The urls checksums file does not exist")
with tf.io.gfile.GFile(filepath, "r") as f:
for line in f.readlines():
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances Project Name: tensorflow/datasets
Commit Name: d747ef945d89aa55bf30b602607e3efd46e23775
Time: 2020-03-09
Author: cs17btech11040@iith.ac.in
File Name: tensorflow_datasets/testing/dataset_builder_testing.py
Class Name: DatasetBuilderTestCase
Method Name: _test_checksums
Project Name: quiltdata/quilt
Commit Name: b50dc486d63aea1985d72fdffebab58acb0a6bf7
Time: 2019-08-21
Author: dima@quiltdata.io
File Name: lambdas/es/indexer/index.py
Class Name:
Method Name: get_plain_text
Project Name: undertheseanlp/underthesea
Commit Name: 80ee39154b951c2c50ae2067f560aad81510a13f
Time: 2017-07-04
Author: brother.rain.1024@gmail.com
File Name: tests/pos_tag/test_pos_tag.py
Class Name:
Method Name: load_input
Project Name: bjherger/ResumeParser
Commit Name: e08fcab00157590859a9a19bd483825e9ba75c18
Time: 2019-03-29
Author: 13herger@gmail.com
File Name: bin/lib.py
Class Name:
Method Name: convert_pdf