ha I had this thought a few months ago made me wonder how a model trained on just John Carmack's code would fair.
In the Doom engine, for example, he has hard coded lots of things directly in the C engine code that really should be part of the regular game code.