I've been working on a proof-of-concept code similarity detection tool.
The tool is based on matching semantically equivalent code fragments, i.e. it detects similarities across inlined or lifted functions, reordered but equivalent expressions and so on.
Check out the attached screenshot [1].
The idea is to mine the publicly available npm repos, and provide a payed service for detecting similar code fragments already implemented in npm libraries -- basically an open REST service and one or two plugins for the most popular editors (vim, Sublime, Atom?)
If this proves successful, I would extend the service to other languages and services, where applicable.
Would you pay for such a service? What kind of features would you expect?
[1] https://dl.dropboxusercontent.com/u/30225560/ase.png
I, a software developer, wouldn't buy such a thing, but there's certainly enterprise/corporate demand for it.