Detection of Code Clones Using Datasets
Existing researches suggest that the code clone or duplicated code is one of the main factors that degrades the design and the structure of software and lowers the software quality such as readability, changeability and maintainability. Code clones are generally considered harmful in software development, and the previous approach is to try to remove them through refactoring. However, recent research has provided evidence that it may not always be practical, feasible, or cost-effective to eliminate certain clone groups. Copying and pasting source code is common practice, also known as software reuse. Sometimes these clones are modified slightly to adapt them to their new environment or purpose.