061f612b0d07db998ddfdb48463bbc8061f293e7,src/python/pants/tasks/protobuf_gen.py,ProtobufGen,_create_java_target,#ProtobufGen#Any#Any#,135

Before Change


                                      excludes=target.excludes)
    tgt.id = target.id + ".protobuf_gen"
    for dependee in dependees:
      dependee.update_dependencies([tgt])
    return tgt

  def _create_python_target(self, target, dependees):

After Change


      path = os.path.join(target.target_base, source)
      genfiles.extend(calculate_genfiles(path, source).get("java", []))
    name = "{target_name}".format(target_name=target.name)
    spec_path = os.path.relpath(self.java_out, get_buildroot())
    spec = "{spec_path}:{name}".format(spec_path=spec_path, name=name)
    address = SyntheticAddress(spec=spec)
    tgt = self.context.add_new_target(address,
                                      JavaLibrary,
                                      derived_from=target,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 3

Instances


Project Name: pantsbuild/pants
Commit Name: 061f612b0d07db998ddfdb48463bbc8061f293e7
Time: 2014-05-16
Author: pl@foursquare.com
File Name: src/python/pants/tasks/protobuf_gen.py
Class Name: ProtobufGen
Method Name: _create_java_target


Project Name: pantsbuild/pants
Commit Name: 204482179e1756c159234bff3fce51067f214b7e
Time: 2015-07-09
Author: benjyw@gmail.com
File Name: tests/python/pants_test/option/test_options_bootstrapper.py
Class Name: BootstrapOptionsTest
Method Name: test_bootstrap_option_values


Project Name: pantsbuild/pants
Commit Name: dee363930f4d4f37438695128e082a1266253d26
Time: 2021-01-05
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/backend/python/macros/python_requirements.py
Class Name: PythonRequirements
Method Name: __call__


Project Name: pantsbuild/pants
Commit Name: 6387414414ae171c038c5f59c2dbe2cb805b94c8
Time: 2016-05-15
Author: john.sirois@gmail.com
File Name: contrib/go/tests/python/pants_test/contrib/go/tasks/test_go_thrift_gen_integration.py
Class Name: GoThriftGenIntegrationTest
Method Name: test_go_thrift_gen_simple


Project Name: pantsbuild/pants
Commit Name: bfc3f494a7d139f8f629a45ad0e2faa12dcab5d7
Time: 2014-06-20
Author: stuhood@twitter.com
File Name: src/python/pants/backend/codegen/tasks/antlr_gen.py
Class Name: AntlrGen
Method Name: _create_java_target