Cannot help you with CPD. Try our CloneDR dual code detector. It has a front end to Python, and the site has sample results from clone detection operations. Quite a lot of CloneDR manage to find clones in each code, especially if it is "not so good."
Ira Baxter
source share