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

Function _dedupe_preserve_order

agents/coldstart-agent/main.py:900–912  ·  view source on GitHub ↗
(values: List[str])

Source from the content-addressed store, hash-verified

898
899
900def _dedupe_preserve_order(values: List[str]) -> List[str]:
901 result: List[str] = []
902 seen = set()
903 for value in values:
904 cleaned = _collapse_whitespace(value)
905 if not cleaned:
906 continue
907 marker = cleaned.casefold()
908 if marker in seen:
909 continue
910 seen.add(marker)
911 result.append(cleaned)
912 return result
913
914
915def _filter_parsed_profile_fragment(

Calls 1

_collapse_whitespaceFunction · 0.85

Tested by

no test coverage detected