Part VII. Source Code Cross-Correlation

“We balance probabilities and choose the most likely. It is the scientific use of the imagination.”

Sherlock Holmes in The Hound of the Baskervilles

Source code cross-correlation measures the amount of code in one file that appears as comments in another file and vice versa. When copying source code, programmers sometimes place the code in a new file and “comment out” the code in order to use the code as a guide for writing a similar function in the new file. This is often done for legitimate reasons, such as when a programmer wants to rewrite a function in a different programming language or requires a certain function but needs to make changes to it to enhance it or to integrate it into an existing ...

Get The Software IP Detective’s Handbook: Measurement, Comparison, and Infringement Detection now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.