50K lines of code? I thought KLOC was a metric of project size, not file size. That's like our whole codebase (including tests).
I'm working with JavaScript, so it's not directly comparable, but we only have few files that are over 500 lines long - and these are the highly problematic ones.