(side: Map<string, Set<number>>)
| 87 | || left.path.localeCompare(right.path) || left.name.localeCompare(right.name)).slice(0, RELATED_NAMES_PER_GROUP); |
| 88 | }; |
| 89 | const ordered = (side: Map<string, Set<number>>) => [...side].sort(([leftType, left], [rightType, right]) => |
| 90 | right.size - left.size || leftType.localeCompare(rightType)); |
| 91 | const sides = [ordered(related.incoming), ordered(related.outgoing)]; |
| 92 | const candidates = sides.flat().map(([, members]) => ranked(members)); |
| 93 | const shares = fairShares(candidates.map(namesCost), nameCharacters); |
no outgoing calls
no test coverage detected