There has been a bit of research on this[1]:
> I qualitatively analyzed the top 50 clones in that list and was able to identify the source (or at least a source) of the snippets in most of the cases.
[1]: https://meta.stackoverflow.com/questions/375761/how-to-handl...