Code generation model