2d515b55b25a62b1f5961955e977e2fce4ae511e,src/python/pants/backend/jvm/tasks/detect_duplicates.py,DuplicateDetector,_get_internal_dependencies,#DuplicateDetector#Any#,84
Before Change
target_resources = []
if binary_target.has_resources:
target_resources.extend(resources_by_target.get(r) for r in binary_target.resources)
for r in target_resources:
artifacts_by_file_name[r].add(binary_target)
return artifacts_by_file_name
After Change
targets = ([target] + target.resources) if target.has_resources else [target]
contents = ClasspathUtil.classpath_contents(targets, classpath_products, transitive=False)
for f in contents:
if not f.endswith("/"):
artifacts_by_file_name[f].add(target)
return artifacts_by_file_name
def _get_external_dependencies(self, binary_target):
artifacts_by_file_name = defaultdict(set)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: pantsbuild/pants
Commit Name: 2d515b55b25a62b1f5961955e977e2fce4ae511e
Time: 2015-10-06
Author: stuhood@gmail.com
File Name: src/python/pants/backend/jvm/tasks/detect_duplicates.py
Class Name: DuplicateDetector
Method Name: _get_internal_dependencies
Project Name: SpiNNakerManchester/sPyNNaker
Commit Name: 73162ce7ca689cd10f67b823f54d3fbf81e8ee91
Time: 2021-02-25
Author: donal.k.fellows@manchester.ac.uk
File Name: doc/source/conf.py
Class Name:
Method Name:
Project Name: allenai/allennlp
Commit Name: 0459261c388bec72937e0268c4316b85279d0bac
Time: 2018-09-24
Author: kl2806@columbia.edu
File Name: allennlp/semparse/contexts/sql_table_context.py
Class Name: SqlTableContext
Method Name: initialize_grammar_str