Code Completion

Domain: Code Generation

🎯 Motivation

As you type code, the model predicts and suggests the rest of the line or block. Like autocomplete for programming.

πŸ“‹ Concrete Example

You type β€˜for i in r’ and the model suggests β€˜for i in range(len(list)):’ with the rest of the loop body. Press Tab to accept.

πŸ”— Analogy

Autocomplete on your phone - you type β€˜See you’ and it suggests tomorrow. Code completion is autocomplete for code, suggesting the next line or block.