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

Before Change


    build_file_parser = self.context.build_file_parser

    // TODO(pl): Hoist this pattern into the BuildFileParser/BuildGraph API
    for build_file in BuildFile.scan_buildfiles(get_buildroot()):
      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: 5

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: 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


Project Name: pantsbuild/pants
Commit Name: c93bab32fa8c3f6fc72c83e6d87917b29b4e017f
Time: 2015-08-31
Author: pl@foursquare.com
File Name: src/python/pants/backend/jvm/tasks/jvm_dependency_check.py
Class Name: JvmDependencyCheck
Method Name: targets_by_file