7699c5dcdb3cfbb8050581aed2f2eb7a5cc99579,src/python/pants/backend/codegen/tasks/protobuf_gen.py,ProtobufGen,_calculate_sources,#ProtobufGen#Any#,167
Before Change
sources.update(target.sources_relative_to_buildroot())
for target in targets:
target.walk(collect_sources)
return bases, sources
def createtarget(self, lang, gentarget, dependees):
if lang == "java":
After Change
sources_by_base = OrderedDict()
for target in self.context.build_graph.targets():
if target in walked_targets:
base, sources = target.target_base, target.sources_relative_to_buildroot()
if base not in sources_by_base:
sources_by_base[base] = OrderedSet()
sources_by_base[base].update(sources)
return sources_by_base
def createtarget(self, lang, gentarget, dependees):
if lang == "java":
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances 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
Project Name: pantsbuild/pants
Commit Name: 7699c5dcdb3cfbb8050581aed2f2eb7a5cc99579
Time: 2014-08-08
Author: garrett.malmquist@gmail.com
File Name: src/python/pants/backend/codegen/targets/java_protobuf_library.py
Class Name: JavaProtobufLibrary
Method Name: imports
Project Name: quiltdata/quilt
Commit Name: 8fce8bd05cbc12171352e23d8e94aac2484ced21
Time: 2019-11-01
Author: dima@quiltdata.io
File Name: api/python/quilt3/packages.py
Class Name: Package
Method Name: _materialize