MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-toolkit / build_set_and_mset

Function build_set_and_mset

src/licensedcode/match_set.py:228–236  ·  view source on GitHub ↗

Return a tuple of (tids set, multiset) given a `token_ids` tids sequence.

(token_ids, _use_bigrams=False)

Source from the content-addressed store, hash-verified

226
227
228def build_set_and_mset(token_ids, _use_bigrams=False):
229 """
230 Return a tuple of (tids set, multiset) given a `token_ids` tids
231 sequence.
232 """
233 if _use_bigrams:
234 return build_set_and_bigrams_mset(token_ids)
235 else:
236 return build_set_and_tids_mset(token_ids)
237
238# FIXME: we should consider more aggressively the thresholds and what a match
239# filters would discard when we compute candidates to eventually discard many or

Callers 1

compute_candidatesFunction · 0.85

Calls 2

build_set_and_tids_msetFunction · 0.85

Tested by

no test coverage detected