Home
last modified time | relevance | path

Searched refs:default_hash (Results 1 – 3 of 3) sorted by relevance

/external/pigweed/pw_tokenizer/py/
Dtokens_test.py26 from pw_tokenizer.tokens import default_hash, _LOG
100 yield tokens.TokenizedStringEntry(default_hash(string), string)
339 db.token_to_entries[default_hash('MILK')][0].date_removed, date_1)
341 db.token_to_entries[default_hash('CHEESE')][0].date_removed,
349 db.token_to_entries[default_hash('MILK')][0].date_removed, date_1)
351 db.token_to_entries[default_hash('CHEESE')][0].date_removed,
356 db.token_to_entries[default_hash('apples')][0].date_removed, now)
358 db.token_to_entries[default_hash('oranges')][0].date_removed, now)
360 db.token_to_entries[default_hash('pears')][0].date_removed)
Ddetokenize_test.py491 struct.pack('I', tokens.default_hash(RECURSION_STRING)))
495 struct.pack('I', tokens.default_hash(RECURSION_STRING_2)))
522 tokens.TokenizedStringEntry(tokens.default_hash(s), s)
/external/pigweed/pw_tokenizer/py/pw_tokenizer/
Dtokens.py65 def default_hash(string: Union[str, bytes]) -> int: function
132 tokenize: Callable[[str], int] = default_hash) -> 'Database':