MCPcopy Create free account
hub / github.com/nlweb-ai/NLWeb / int64_hash

Function int64_hash

AskAgent/python/data_loading/db_load_utils.py:58–69  ·  view source on GitHub ↗

Compute a hash value for a string, ensuring it fits within int64 range. Args: string: The string to hash Returns: int64 hash value

(string)

Source from the content-addressed store, hash-verified

56 raise ValueError(f"Could not read file {file_path} with any of the attempted encodings")
57
58def int64_hash(string):
59 """
60 Compute a hash value for a string, ensuring it fits within int64 range.
61
62 Args:
63 string: The string to hash
64
65 Returns:
66 int64 hash value
67 """
68 hash_value = hash(string)
69 return np.int64(hash_value)
70
71def should_include_item(js):
72 """

Callers 2

documents_from_csv_lineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected