1
$\begingroup$

Is there a common code metric for "code redundancy" or "code cloning"?

I think I read somewhere a definition, where the LOC (lines of code) of the redundant code was measured.

I also searched for references, but didn't find a paper that seemed like an good or trustworthy reference.

$\endgroup$
  • 1
    $\begingroup$ look into the software Nicad by Chanchal Roy, it does clone detection and probably gives a few metrics. $\endgroup$ – jmite May 8 '13 at 6:36
  • $\begingroup$ Zhenmin Li, Shan Lu, Suvda Myagmar and Yuanyuan Zhou. CP-Miner: A Tool for Finding Copy-paste and Related Bugs in Operating System Code. Proceedings of the Sixth Symposium on Operating System Design and Implementation [OSDI'04], December, 2004. I think the authors started a company. There is also a tool called MOSS that is widely used in universities to detect cheating. The paper that is linked at the bottom outlines their algorithm. $\endgroup$ – Wandering Logic May 8 '13 at 13:47
  • 1
    $\begingroup$ By the way: I copy-pasted that reference to CP-Miner from Prof. Zhou's webpage. :) $\endgroup$ – Wandering Logic May 8 '13 at 13:48
  • $\begingroup$ Google had a "search open source software" service, which they recently discontinued. $\endgroup$ – vonbrand May 9 '13 at 1:47
  • $\begingroup$ @WanderingLogic, shouldn't that be the answer? $\endgroup$ – Johan May 5 '16 at 16:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.