Assuming there is plenty of source material and targeting a single language (or if you think it could be language agnostic?). Perhaps you decompile working programs down to assembly/machine-code and let that be the input/output.
I know about GitHub Copilot, which is very cool, but is it the same tech?