vineyard03/Code-Repair-w-LLMs
1
1def convert_steps(selected_steps):
2 """Converts selected steps into a binary value (bitmask)."""
3 all_steps = ["Bug Finding", "Pattern Matching", "Patch Generation", "Patch Validation"]
4 return sum(1 << i for i, step in enumerate(all_steps) if step in selected_steps)