The excerpt from Quake code is literally one of the most famous functions out there. There is no wonder that it was reproduced verbatim. The share of such code, according to Github is really small.
It would be quite straightforward to write an additional filter that would check the generated code against the training corpus to exclude exact copies.
It would be quite straightforward to write an additional filter that would check the generated code against the training corpus to exclude exact copies.