bb567f578ac20d7e6ef1990018a55f4f3bff61f6,src/python/pants/tasks/detect_duplicates.py,DuplicateDetector,detect_duplicates_for_target,#DuplicateDetector#Any#,55
Before Change
self.detect_duplicates_for_target(binary_target)
def detect_duplicates_for_target(self, binary_target):
artifacts_by_file_name = defaultdict(set)
// Extract external dependencies on libraries (jars)
external_deps = self._get_external_dependencies(binary_target)
for (file_name, targets) in external_deps.items():
artifacts_by_file_name[file_name].update(targets)
// Extract internal dependencies on classes and resources
internal_deps = self._get_internal_dependencies(binary_target)
for (file_name, targets) in internal_deps.items():
artifacts_by_file_name[file_name].update(targets)
After Change
def detect_duplicates_for_target(self, binary_target):
list_path = []
for basedir, externaljar in self.list_jar_dependencies(binary_target):
list_path.append(os.path.join(basedir, externaljar))
self._is_conflicts(list_path, binary_target)
def _is_conflicts(self, jar_paths, binary_target):
artifacts_by_file_name = defaultdict(set)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: pantsbuild/pants
Commit Name: bb567f578ac20d7e6ef1990018a55f4f3bff61f6
Time: 2014-05-26
Author: itykaul@gmail.com
File Name: src/python/pants/tasks/detect_duplicates.py
Class Name: DuplicateDetector
Method Name: detect_duplicates_for_target
Project Name: ray-project/ray
Commit Name: 732197e23a937b7b6d196936519c16ec6317ea9f
Time: 2021-03-08
Author: sven@anyscale.io
File Name: rllib/execution/train_ops.py
Class Name: TrainTFMultiGPU
Method Name: __call__
Project Name: markovmodel/PyEMMA
Commit Name: b69a4513d333266b032e11f9563d6bd14830aa86
Time: 2018-06-21
Author: m.scherer@fu-berlin.de
File Name: conftest.py
Class Name:
Method Name: pytest_collection_modifyitems