MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / _unique_preserve_order

Function _unique_preserve_order

agents/reading-agent/main.py:757–769  ·  view source on GitHub ↗
(items: List[str])

Source from the content-addressed store, hash-verified

755
756def _unique_preserve_order(items: List[str]) -> List[str]:
757 seen = set()
758 ordered: List[str] = []
759 for item in items:
760 normalized = item.strip()
761 if not normalized:
762 continue
763 key = normalized.casefold()
764 if key in seen:
765 continue
766 seen.add(key)
767 ordered.append(normalized)
768 return ordered
769
770
771def _append_analysis_note(base: Any, extra: Any) -> str:
772 base_text = _clean_text(base)

Callers 9

_format_subjectsFunction · 0.85
_pick_sentencesFunction · 0.85
anchor_listFunction · 0.85
_build_relevance_pointsFunction · 0.85
_normalize_string_listFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected