Write a code to recognize the code clones. Input is code files. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Write a code to recognize the code clones. Input is code files.

identify the duplicate code in given set of files.

1st Mar 2018, 2:51 AM
Amit Gharge
Amit Gharge - avatar
3 Answers
+ 4
¯\_(ツ)_/¯
1st Mar 2018, 3:18 AM
Fata1 Err0r
Fata1 Err0r - avatar
+ 1
Can you give us an example of the files you would be parsing?
2nd Mar 2018, 4:11 AM
Ben Allen (Njinx)
Ben Allen (Njinx) - avatar
0
Ben Suppose I have 'n' java codes written in n different files. Then this code should check whether all the codes are unique. If they are not They should be classified into different types of clones like 1-the 2 codes are exactly same 2-the 2 codes does the same work but has little different programming constructs. etc I hope you understand the question!!
2nd Mar 2018, 5:23 AM
Amit Gharge
Amit Gharge - avatar