After doing several application research from StackOverflow, I found that extracting the source code snippets from StackOverflow post itself is a tough job. The extracted source code snippets contain a lot of unexpected information like URL, file location, stack trace information and so on which we do not require with the source code. So, mining the correct and accurate snippet is challenging and I may make a short research paper on this in some conference. So, this is a future research plan. Another plan is already in progress - StackComment.
Anyway, lets hope for the best.
Anyway, lets hope for the best.