b29d65416481efe627ee832e9f7e6646edcd81a6,src/python/pants/backend/jvm/tasks/check_published_deps.py,CheckPublishedDeps,__init__,#CheckPublishedDeps#Any#Any#,29

Before Change


      build_file_parser.parse_build_file(build_file)
      for address in build_file_parser.addresses_by_build_file[build_file]:
        build_file_parser.inject_spec_closure_into_build_graph(address.spec, build_graph)
    for target in build_graph._target_by_address.values():
      if target.is_exported:
        provided_jar, _, _ = target.get_artifact_info()
        artifact = (provided_jar.org, provided_jar.name)

After Change


    def is_published(tgt):
      return tgt.is_exported

    for target in self.context.build_file_parser.scan().targets(predicate=is_published):
      provided_jar, _, _ = target.get_artifact_info()
      artifact = (provided_jar.org, provided_jar.name)
      if not artifact in self._artifacts_to_targets:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: pantsbuild/pants
Commit Name: b29d65416481efe627ee832e9f7e6646edcd81a6
Time: 2014-06-16
Author: john.sirois@gmail.com
File Name: src/python/pants/backend/jvm/tasks/check_published_deps.py
Class Name: CheckPublishedDeps
Method Name: __init__


Project Name: pantsbuild/pants
Commit Name: 5f38805c6b47d1ba3297e346b899e18488997865
Time: 2016-03-01
Author: stuhood@gmail.com
File Name: src/python/pants/build_graph/build_graph.py
Class Name: BuildGraph
Method Name: sorted_targets


Project Name: pantsbuild/pants
Commit Name: b29d65416481efe627ee832e9f7e6646edcd81a6
Time: 2014-06-16
Author: john.sirois@gmail.com
File Name: src/python/pants/backend/core/tasks/filemap.py
Class Name: Filemap
Method Name: _find_targets