Team Ai
Apppublic

vineyard03/Code-Repair-With-LLMs

sourceHugging Faceupdated 2y agoView on Hugging Face
0likes
convert_steps.py4 linesDownload Raw Back to utils
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)