2be0b1d843e77c0fa6e74f00689ece1911211721,src/python/pants/backend/jvm/tasks/jvm_compile/rsc/rsc_compile.py,RscCompile,register_extra_products_from_contexts,#RscCompile#Any#Any#,171
Before Change
self.context.products.get_data("rsc_classpath").add_for_target(
compile_cc.target,
[(conf, compile_cc.jar_file) for conf in self._confs])
elif target.has_sources(".scala"):
pass
else:
pass
After Change
elif self._metacpable(target):
// Walk the metacp results dir and add classpath entries for all the files there.
// TODO exercise this with a test.
for root, dirs, files in os.walk(rsc_cc.rsc_index_dir):
self.context.products.get_data("rsc_classpath").add_for_target(
rsc_cc.target,
[(conf, os.path.join(root, f)) for conf in self._confs for f in files]
)
else:
pass
def _metacpable(self, target):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: pantsbuild/pants
Commit Name: 2be0b1d843e77c0fa6e74f00689ece1911211721
Time: 2018-09-26
Author: nh@baroquebobcat.com
File Name: src/python/pants/backend/jvm/tasks/jvm_compile/rsc/rsc_compile.py
Class Name: RscCompile
Method Name: register_extra_products_from_contexts
Project Name: SeanNaren/deepspeech.pytorch
Commit Name: 906771bf319aa1c5c680638d566b352c63cf6ab2
Time: 2017-02-16
Author: seannaren@hotmail.com
File Name: data/utils.py
Class Name:
Method Name: create_manifest
Project Name: explosion/thinc
Commit Name: 3b1a08a1be0353bed8c77f96ee2145e87765c688
Time: 2020-01-24
Author: honnibal+gh@gmail.com
File Name: thinc/model.py
Class Name:
Method Name: set_dropout_rate