An Empirical Study on the Impact of Duplicate Code
Algorithm 1
A simple example of comparing two source files with diff (changed region is represented with identifier “c” like 3,4c3,4; deleted region is represented with identifier “d” like 7,8d6, added region is represented with identifier “a” like 11a10,11). The number before and after the identifier shows the correspond lines.