Does anyone know if there is a generally accepted definition for what a code sample is when it comes to game studios?
There is not!
Tailor a code sample to the company and position. If they are hiring you to be a shader wizard, submit some clever shaders. If they are hiring you as a lead/architect then a completed game might be a better choice, etc.