Compute a hash value for a string, ensuring it fits within int64 range. Args: string: The string to hash Returns: int64 hash value
(string)
| 56 | raise ValueError(f"Could not read file {file_path} with any of the attempted encodings") |
| 57 | |
| 58 | def 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 | |
| 71 | def should_include_item(js): |
| 72 | """ |
no outgoing calls
no test coverage detected