Spaces:
Sleeping
Sleeping
File size: 279 Bytes
9adf324 | 1 2 3 4 | def convert_steps(selected_steps):
"""Converts selected steps into a binary value (bitmask)."""
all_steps = ["Bug Finding", "Pattern Matching", "Patch Generation", "Patch Validation"]
return sum(1 << i for i, step in enumerate(all_steps) if step in selected_steps) |