Benign python Download

remex 0.7.0

“Retrieval-validated embedding compression. 4-8x smaller vectors, proven recall.”

Python evaluates a bitwise XOR expressionSource contains low-bit mask syntax

Evidence

Imports the NumPy array library codebook.py · lines 1–11
1"""Lloyd-Max optimal scalar quantizer for post-rotation coordinate distribution."""
2
3import numpy as np
4from scipy.stats import norm
5from typing import Dict, Optional, Tuple
6
⋯5 lines
NumPy array operation (ndarray) codebook.py · lines 26–31
26:20… nt, n_iter: int = 300, sigma: Optional[float] = None
27) -> Tuple[np.ndarray, np.ndarray]:
28 """
29 Build optimal Lloyd-Max codebook for N(0, sigma) distributed coordinates.
30
31 After random orthogona …
NumPy array operation (array) codebook.py · lines 112–119
112:17… = np.concatenate([[-np.inf], bounds_max, [np.inf]])
113 probs = np.array(
114 [rv.cdf(full_bounds[i + 1]) - rv.cdf(full_bounds[i]) for i in range(n_max)]
115 )
⋯4 lines
Python not-in membership check packing.py · lines 23–41
23:53… e by name.
24SUPPORTED_BITS = (1, 2, 3, 4, 8)
25
26
27def pack(indices: np.ndarray, bits: int) -> np.ndarray:
28 """
29 Pack uint8 indices into minimal-width byte array.
30
31 Args:
32 indices: (...) uint8 array with values in [0, 2^bits).
33 bits: Bits per value (1-8).
34
35 Returns:
36 Packed uint8 byte array.
37 """
38 if bits not in SUPPORTED_BITS:
39 raise ValueError(
40 f"Bit width {bits} is not supported. Use one of "
41 f"{list(SUPPORTED_BITS)}. 5 …
Source contains low-bit mask syntax packing.py · lines 72–79
72:31… 3][v4:3][v5:1hi]
73 out[:, 1] = (
74 ((groups[:, 2] & 1) << 7)
75 | (groups[:, 3] << 4)
76 | (groups[:, 4] << 1)
77 | (groups[:, 5] >> 2)
78 )
79 …

Showing the top 5 files — 2 more files (32 regions) not shown.

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.