fac976efbc71aef758382015854f550c57d96461,src/python/pants/backend/core/tasks/sorttargets.py,SortTargets,console_output,#SortTargets#Any#,31
Before Change
tsorted = []
for group in topological_sort(depmap):
tsorted.extend(group)
if self._reverse:
tsorted = reversed(tsorted)
roots = set(root.address.spec for root in self.context.target_roots)
After Change
help="Sort least-dependent to most-dependent.")
def console_output(self, targets):
sorted_targets = sort_targets(targets)
// sort_targets already returns targets in reverse topologically sorted order.
if not self.get_options().reverse:
sorted_targets = reversed(sorted_targets)
for target in sorted_targets:
if target in self.context.target_roots:
yield target.address.reference()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances Project Name: pantsbuild/pants
Commit Name: fac976efbc71aef758382015854f550c57d96461
Time: 2015-11-13
Author: tansy.arron@gmail.com
File Name: src/python/pants/backend/core/tasks/sorttargets.py
Class Name: SortTargets
Method Name: console_output
Project Name: Qiskit/qiskit-aqua
Commit Name: 20c1bcdad47bfc6c0bdbdc510ee76598d64c380c
Time: 2019-04-29
Author: stefan@swoerner.de
File Name: qiskit/aqua/components/uncertainty_models/multivariate_distribution.py
Class Name: MultivariateDistribution
Method Name: build
Project Name: Qiskit/qiskit-aqua
Commit Name: 20c1bcdad47bfc6c0bdbdc510ee76598d64c380c
Time: 2019-04-29
Author: stefan@swoerner.de
File Name: qiskit/aqua/components/uncertainty_models/univariate_distribution.py
Class Name: UnivariateDistribution
Method Name: build