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

Function _dedupe_strings

config/direction_lexicon.py:59–71  ·  view source on GitHub ↗
(values: Iterable[Any])

Source from the content-addressed store, hash-verified

57
58
59def _dedupe_strings(values: Iterable[Any]) -> List[str]:
60 result: List[str] = []
61 seen = set()
62 for value in values:
63 cleaned = str(value or "").strip()
64 if not cleaned:
65 continue
66 marker = cleaned.casefold()
67 if marker in seen:
68 continue
69 seen.add(marker)
70 result.append(cleaned)
71 return result
72
73
74def _default_entry(

Callers 8

_default_entryFunction · 0.85
load_lexiconFunction · 0.85
build_bootstrap_summaryFunction · 0.85
get_lexicon_keywordsFunction · 0.85
expand_direction_termsFunction · 0.85
add_direction_aliasFunction · 0.85
add_new_directionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected