0c4c056be302ee24c626a31b287aafc87f109cb9,src/python/twitter/pants/tasks/bundle_create.py,BundleCreate,bundle,#BundleCreate#Any#,93

Before Change



      for basedir, externaljar in self.list_jar_dependencies(app.binary):
        path = os.path.join(basedir, externaljar)
        os.symlink(path, os.path.join(libdir, externaljar))
        classpath.add(externaljar)

    for basedir, jars in self.context.products.get("jars").get(app.binary).items():
      if len(jars) != 1:

After Change


        try:
          os.symlink(src, link_name)
        except OSError as e:
          if e.errno == errno.EEXIST:
            raise TaskError("Trying to symlink %s to %s, but it is already symlinked to %s. " %
                            (link_name, src, os.readlink(link_name)) +
                            "Does the bundled target depend on multiple jvm_binary targets?")
          else:
            raise
        classpath.add(externaljar)

    for basedir, jars in self.context.products.get("jars").get(app.binary).items():
      if len(jars) != 1:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: pantsbuild/pants
Commit Name: 0c4c056be302ee24c626a31b287aafc87f109cb9
Time: 2013-06-04
Author: benjy@foursquare.com
File Name: src/python/twitter/pants/tasks/bundle_create.py
Class Name: BundleCreate
Method Name: bundle


Project Name: open-mmlab/mmcv
Commit Name: 7ef3a5e925c3a742453146268fce13d9cff00346
Time: 2020-09-16
Author: chenkaidev@gmail.com
File Name: mmcv/runner/iter_based_runner.py
Class Name: IterBasedRunner
Method Name: save_checkpoint


Project Name: open-mmlab/mmcv
Commit Name: 7ef3a5e925c3a742453146268fce13d9cff00346
Time: 2020-09-16
Author: chenkaidev@gmail.com
File Name: mmcv/runner/epoch_based_runner.py
Class Name: EpochBasedRunner
Method Name: save_checkpoint