(left: set[str], right: set[str])
| 279 | |
| 280 | |
| 281 | def jaccard(left: set[str], right: set[str]) -> float: |
| 282 | if not left or not right: |
| 283 | return 0.0 |
| 284 | return len(left & right) / len(left | right) |
| 285 | |
| 286 | |
| 287 | def dedupe_strings(values: Iterable[Any]) -> List[str]: |
no outgoing calls
no test coverage detected