MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / select_random_checkfile

Method select_random_checkfile

scripts/drift_engine.py:1305–1309  ·  view source on GitHub ↗

闅忔満閫夋嫨涓€涓?checkfile

(self)

Source from the content-addressed store, hash-verified

1303
1304 def select_random_checkfile(self) -> Optional[Dict[str, Any]]:
1305 """闅忔満閫夋嫨涓€涓?checkfile"""
1306 if not self.checkfiles:
1307 return None
1308 return random.choice(self.checkfiles)
1309
1310 def should_drift(self, probability: float = 0.5) -> bool:
1311 """鍒ゆ柇鏄惁鍙戠敓婕傜Щ"""
1312 return random.random() < probability

Callers 1

apply_driftMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected