Rather than indexing StackOverflow, why not do this by indexing all the open source code out there? Sure StackOverflow answers are good, but they usually skip error checking for focusing on the question at hand. Code used in production applications surely is more sound.
Good idea. Can you provide a download link with all the code out there?
http://ftp.us.debian.org/debian/pool/main/ is a good start