Might also be an artifact of the prediction method. I would guess something less creative for code generation is preferred (e.g. beam search which tends to repeat at generation?) over a more creative sampling approach for chatGPT.