Code Repair

Domain: Code Generation

🎯 Motivation

When code has bugs, the model can analyze the error and generate a fix. Like having a debugging partner.

πŸ“‹ Concrete Example

Broken code: β€˜def add(a, b) return a + b’ (missing colon). Model: β€˜Missing colon after the function definition. Fixed: def add(a, b): return a + b’

πŸ”— Analogy

A mechanic diagnosing a car - they hear the engine sputter, identify the problem (bad spark plug), and fix it. Code repair is the model diagnosing and fixing code bugs.