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

Method __post_init__

uncommon_route/benchmark.py:260–273  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

258 _refresh_thread: threading.Thread | None = field(default=None, init=False, repr=False)
259
260 def __post_init__(self) -> None:
261 if not self._providers:
262 self._providers = [
263 PinchBenchProvider(),
264 LocalFileProvider(),
265 ]
266 if not self._source_weights:
267 self._source_weights = {
268 "pinchbench": 0.6,
269 "local": 0.8,
270 }
271 self._load_cache()
272 self._load_seed_as_source()
273 self._build_index()
274
275 def add_provider(self, provider: BenchmarkProvider, weight: float = 0.3) -> None:
276 self._providers.append(provider)

Callers

nothing calls this directly

Calls 5

_load_cacheMethod · 0.95
_load_seed_as_sourceMethod · 0.95
_build_indexMethod · 0.95
PinchBenchProviderClass · 0.85
LocalFileProviderClass · 0.85

Tested by

no test coverage detected