(*buckets: str, limit: int = 2)
| 3303 | |
| 3304 | def anchor_list(*buckets: str, limit: int = 2) -> List[str]: |
| 3305 | anchors: List[str] = [] |
| 3306 | for bucket in buckets: |
| 3307 | for match in matches.get(bucket) or []: |
| 3308 | anchors.append(_format_evidence_anchor(match)) |
| 3309 | return _unique_preserve_order(anchors)[:limit] |
| 3310 | |
| 3311 | return { |
| 3312 | "one_sentence_summary": anchor_list("method", "results", limit=2), |
| 3313 | "research_background": anchor_list("background", limit=2), |
no test coverage detected