I doubt there is any useful average, the codebase I'm currently working on is about 2 million lines with another 2 million plus in tools.
But it's big, certainly the largest game codebase I've ever worked on, 1/2 a million is probably closer to the average, but it is largely dependant on complexity, fighters and racers are going to be a lot simpler than say a final fantasy or a GTA.