96776e481b45574973223af77a9959d06cba75af,contrib/kythe/src/python/pants/contrib/kythe/tasks/indexable_java_targets.py,IndexableJavaTargets,get,#Any#Any#,16

Before Change


        lambda t: isinstance(t, JvmTarget) and t.has_sources(".java"),
        exclude_scopes=Scopes.COMPILE
      )
    return cls._targets

  _targets = None

After Change


    of the run, even if this method is called again with a different context.
    
    if self.get_options().recursive:
      requested_targets = context.targets(exclude_scopes=Scope(self.get_options().exclude_scopes))
    else:
      requested_targets = list(context.target_roots)
      // We want to act on targets derived from the target roots, e.g., if acting on a binary
      // jar_library we actually want to act on the derived java_library wrapping the decompiled
      // sources.
      for t in context.target_roots:
        requested_targets.extend(context.build_graph.get_all_derivatives(t.address))

    return [t for t in requested_targets if isinstance(t, JvmTarget) and t.has_sources(".java")]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: pantsbuild/pants
Commit Name: 96776e481b45574973223af77a9959d06cba75af
Time: 2018-01-09
Author: benjyw@gmail.com
File Name: contrib/kythe/src/python/pants/contrib/kythe/tasks/indexable_java_targets.py
Class Name: IndexableJavaTargets
Method Name: get


Project Name: pantsbuild/pants
Commit Name: 66f4d54920b8423971104cfcd282e0c5b3ddf56f
Time: 2015-10-16
Author: john.sirois@gmail.com
File Name: contrib/go/src/python/pants/contrib/go/tasks/go_buildgen.py
Class Name: GoBuildgen
Method Name: generate_targets


Project Name: pantsbuild/pants
Commit Name: 7699c5dcdb3cfbb8050581aed2f2eb7a5cc99579
Time: 2014-08-08
Author: garrett.malmquist@gmail.com
File Name: src/python/pants/backend/codegen/tasks/protobuf_gen.py
Class Name: ProtobufGen
Method Name: _calculate_sources