Minimal Reproducible Example

Domain: Code Generation

🎯 Motivation

The smallest piece of code that still shows the bug. Helps isolate the issue. The model can generate this.

πŸ“‹ Concrete Example

Original: 500-line file with a bug. MRE: 5 lines that show the same bug. Easier to understand and fix. β€˜def f(x): return x[0] # fails when x is empty.’

πŸ”— Analogy

Trimming a recipe to find the problem - if a cake fails, you simplify: just flour and water. Does it still fail? Yes -> it is the flour. MRE isolates the bug.