0349078b01ed693223d0c4a65c8a9b8aafe115bc,src/python/pants/backend/jvm/tasks/bundle_create.py,BundleCreate,bundle,#BundleCreate#Any#Any#,168

Before Change


      dir_count = 0
      for path, relpath in bundle.filemap.items():
        bundle_path = os.path.join(bundle_dir, relpath)
        if os.path.isfile(path):
          file_count += 1
        elif os.path.isdir(path):
          dir_count += 1
        else:
          continue
        safe_mkdir(os.path.dirname(bundle_path))
        os.symlink(path, bundle_path)

      if file_count == 0 and dir_count == 0:

After Change


          os.symlink(path, bundle_path)
          fileset_empty = False

      if fileset_empty:
        raise TaskError("In target {}, bundle index {} of "bundles" field does not match any files.".format(
          app.address.spec, bundle_counter))

    return bundle_dir

  def check_basename_conflicts(self, targets):
    Apps" basenames are used as bundle directory names. Ensure they are all unique.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: pantsbuild/pants
Commit Name: 0349078b01ed693223d0c4a65c8a9b8aafe115bc
Time: 2017-05-26
Author: stuhood@twitter.com
File Name: src/python/pants/backend/jvm/tasks/bundle_create.py
Class Name: BundleCreate
Method Name: bundle


Project Name: pantsbuild/pants
Commit Name: 0349078b01ed693223d0c4a65c8a9b8aafe115bc
Time: 2017-05-26
Author: stuhood@twitter.com
File Name: src/python/pants/backend/jvm/tasks/bundle_create.py
Class Name: BundleCreate
Method Name: bundle


Project Name: NeuroTechX/moabb
Commit Name: 66b0061685aa10d124ef89c9a2f5ddeb7ce1ea1b
Time: 2018-01-24
Author: vjayaram@danube.is.localnet
File Name: moabb/datasets/download.py
Class Name:
Method Name: data_path


Project Name: pytorch/audio
Commit Name: 4bfebd857d9b94dff98e88c8cc59880f8fa54ec7
Time: 2020-08-19
Author: abhi.dubey011999@gmail.com
File Name: torchaudio/datasets/vctk.py
Class Name: VCTK
Method Name: __init__