Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on A regular expression matcher in 19 lines of Clojure. Parent comment
They report the following table
Project Size (LoC) Error Density (Bugs / kLoC) 0-2k 0-25 2k-16k 0-40 16k-64k 0.5-50 64k-512k 2-70 512k or more 4-100
There are no comments on this comment yet.
They report the following table
So yes, the error density increases with LoC.