cbc40d981e832c631fd30c30f1a186adb3923c89,tensorflow_datasets/core/download/checksums.py,,_list_dir,#Any#,87

Before Change




def _list_dir(path: str) -> List[str]:
  return tf.io.gfile.listdir(path)



After Change




def _list_dir(path: str) -> List[Path]:
  return [file for file in Path(path).iterdir() if str(file).endswith(".txt")]


Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: tensorflow/datasets
Commit Name: cbc40d981e832c631fd30c30f1a186adb3923c89
Time: 2020-10-13
Author: suryashankardas.2002@gmail.com
File Name: tensorflow_datasets/core/download/checksums.py
Class Name:
Method Name: _list_dir


Project Name: kenshohara/3D-ResNets-PyTorch
Commit Name: e4c6081646c08bb52808013b69b8f5da8e2e1a8a
Time: 2018-11-25
Author: kensho.hara@aist.go.jp
File Name: util_scripts/video_jpg_ucf101_hmdb51.py
Class Name:
Method Name:


Project Name: idealo/image-super-resolution
Commit Name: 19a39999ccdb247f01909c2848b381d391ef621b
Time: 2019-04-02
Author: testadicardi@gmail.com
File Name: ISR/predict/predictor.py
Class Name: Predictor
Method Name: __init__