Searched refs:default_hash (Results 1 – 3 of 3) sorted by relevance
/external/pigweed/pw_tokenizer/py/ |
D | tokens_test.py | 26 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)
|
D | detokenize_test.py | 491 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/ |
D | tokens.py | 65 def default_hash(string: Union[str, bytes]) -> int: function 132 tokenize: Callable[[str], int] = default_hash) -> 'Database':
|