a952db04d2149fc47e1e71b0f78a6d7708e52746,bird-or-bicycle/bird_or_bicyle/dataset.py,,_download_to_dir,#Any#Any#Any#,141

Before Change


    n_images=len(image_ids),
    dest_dir=dest_dir,
    N_WORKERS=N_WORKERS))
  os.makedirs(dest_dir, exist_ok=True)

  srcs = ["s3://open-images-dataset/train/%s.jpg" % (image_id)
          for image_id in image_ids]
  srcs_and_dest_dirs = zip(srcs, [dest_dir] * len(srcs))

After Change


    dest_dir=dest_dir,
    N_WORKERS=N_WORKERS))

  if not os.path.exists(dest_dir):
    os.makedirs(dest_dir)

  srcs = ["s3://open-images-dataset/train/%s.jpg" % (image_id)
          for image_id in image_ids]
  srcs_and_dest_dirs = zip(srcs, [dest_dir] * len(srcs))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 6

Instances


Project Name: google/unrestricted-adversarial-examples
Commit Name: a952db04d2149fc47e1e71b0f78a6d7708e52746
Time: 2018-09-12
Author: nottombrown@gmail.com
File Name: bird-or-bicycle/bird_or_bicyle/dataset.py
Class Name:
Method Name: _download_to_dir


Project Name: pytorch/text
Commit Name: 8b672e6c03ebe605aaf3da69a8113d74ebd7a42c
Time: 2017-08-23
Author: matt-peters@users.noreply.github.com
File Name: torchtext/datasets/imdb.py
Class Name: IMDB
Method Name: download


Project Name: Kaixhin/Rainbow
Commit Name: 52284cc36dc34846e0381306e4413141790e9ea6
Time: 2019-07-21
Author: design@kaixhin.com
File Name: main.py
Class Name:
Method Name:


Project Name: pytorch/text
Commit Name: 8b672e6c03ebe605aaf3da69a8113d74ebd7a42c
Time: 2017-08-23
Author: matt-peters@users.noreply.github.com
File Name: torchtext/datasets/trec.py
Class Name: TREC
Method Name: download