Provides classes for detecting duplicate or similar code.
Import path
import external.CodeDuplication
Imports
Files | Provides classes for working with files and folders.
|
Predicates
duplicateContainers | Holds if sc and other are functions or toplevels where percent is the percentage of lines they have in common, which is greater than 90%.
|
duplicateFiles | Holds if most of f (percent %) is duplicated by other .
|
duplicateLines | INTERNAL: do not use.
|
duplicateStatement | Holds if stmt1 and stmt2 are duplicate statements in function or toplevel sc1 and sc2 , respectively, where sc1 and sc2 are not the same.
|
duplicate_extension | Holds if there is a sequence of DuplicateBlock s start1, ..., end1 and another sequence start2, ..., end2 such that each block extends the previous one and corresponding blocks have the same equivalence class, with start being the equivalence class of start1 and start2 , and end the equivalence class of end1 and end2 .
|
similarContainers | Holds if sc and other are functions or toplevels where percent is the percentage of similar lines between the two, which is greater than 90%.
|
similarFiles | Holds if most of f (percent %) is similar to other .
|
similarLines | INTERNAL: do not use.
|
similar_extension | Holds if there is a sequence of SimilarBlock s start1, ..., end1 and another sequence start2, ..., end2 such that each block extends the previous one and corresponding blocks have the same equivalence class, with start being the equivalence class of start1 and start2 , and end the equivalence class of end1 and end2 .
|