MCPcopy Create free account
hub / github.com/CommonstackAI/UncommonRoute / fake_sample

Function fake_sample

tests/test_quality_routing.py:266–268  ·  view source on GitHub ↗
(alpha: float, beta: float)

Source from the content-addressed store, hash-verified

264 concentrations: list[float] = []
265
266 def fake_sample(alpha: float, beta: float) -> float:
267 concentrations.append(alpha + beta)
268 return alpha / (alpha + beta)
269
270 monkeypatch.setattr(benchmark, "get_benchmark_cache", lambda: DummyBenchmarkCache())
271 monkeypatch.setattr(selector._rng, "betavariate", fake_sample)

Callers

nothing calls this directly

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected