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

Function index_hash

src/licensedcode/match_hash.py:52–56  ·  view source on GitHub ↗

Return a hash digest string given a sequence of rule tokens.

(rule_tokens)

Source from the content-addressed store, hash-verified

50
51
52def index_hash(rule_tokens):
53 """
54 Return a hash digest string given a sequence of rule tokens.
55 """
56 return tokens_hash(rule_tokens)
57
58
59def hash_match(idx, query_run, **kwargs):

Callers 1

itokens_hashMethod · 0.90

Calls 1

tokens_hashFunction · 0.85

Tested by

no test coverage detected