Code Duplication
It can be recognized by two blocks of code doing the same thing. It is a pure copy-paste or copy-paste-adaptation from one part of the code to another part of code. Besides that, the duplicated code may have the same set of reasons to change. Characteristics A group of consecutive…