Dropping loc requires an accurate token based diff, which requires fast language parsers. While there are such projects, non of them are widely adapted - in contrary with the notorious loc.
BTW would You prefer a magical deep learning solution which tells a grade about your code quality - also hiding most aspects of the analysis?