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

Function dedupe_strings

experiments/baselines/discourse_aware/runner.py:351–363  ·  view source on GitHub ↗
(values: Iterable[Any])

Source from the content-addressed store, hash-verified

349
350
351def dedupe_strings(values: Iterable[Any]) -> List[str]:
352 result: List[str] = []
353 seen: set[str] = set()
354 for value in values:
355 cleaned = str(value or "").strip()
356 if not cleaned:
357 continue
358 marker = cleaned.casefold()
359 if marker in seen:
360 continue
361 seen.add(marker)
362 result.append(cleaned)
363 return result
364
365
366def build_initial_profile(user_meta: Dict[str, Any], role: Dict[str, Any]) -> Dict[str, Any]:

Callers 1

build_initial_profileFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected