Code Translation
Domain: Code Generation
π― Motivation
Converting code from one programming language to another. The model understands the logic and rewrites it in a different language.
π Concrete Example
Python: βdef greet(name): return fβHello, {name}ββ -> JavaScript: βfunction greet(name) { return Hello, ${name}; }β. Same logic, different language.
π Analogy
A translator converting a book from Chinese to English - the story stays the same, but the language changes. Code translation does this with programming languages.