cp - miner : a tool for finding copy - paste and related bugs in operating system code .
Substring matching for clone detection and change tracking