MCPcopy Create free account
hub / github.com/FuzzAnything/PromptFuzz / should_shuffle

Method should_shuffle

src/feedback/schedule.rs:142–154  ·  view source on GitHub ↗
(&self, succ: usize, total: usize)

Source from the content-addressed store, hash-verified

140 }
141
142 pub fn should_shuffle(&self, succ: usize, total: usize) -> bool {
143 // we expect per 20 programs should have a succ one.
144 if succ == 0 && total >= 30 {
145 return true;
146 }
147 if succ == 0 && total < 30 {
148 return false;
149 }
150 if succ * 30 < total {
151 return true;
152 }
153 false
154 }
155
156 pub fn assemble_high_energy_combiantion(&self) -> Vec<&'static FuncGadget> {
157 log::info!("random assemble new prompt combination with their engies.");

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected