facebookresearch / shack
Duplication

Places in code with 6 or more lines that are exactly the same.

Intro
  • For duplication, we look at places in code where there are 6 or more lines of code that are exactly the same.
  • Before duplication is calculated, the code is cleaned to remove empty lines, comments, and frequently duplicated constructs such as imports.
  • You should aim at having as little as possible (<5%) of duplicated code as high-level of duplication can lead to maintenance difficulties, poor factoring, and logical contradictions.
Learn more...
Duplication Overall
  • 7% duplication:
    • 1,431 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 108 duplicated lines
  • 18 duplicates
system7% (108 lines)
Duplication per Extension
v7% (108 lines)
Duplication per Component (primary)
theories7% (108 lines)
Longest Duplicates
The list of 18 longest duplicates.
See data for all 18 duplicates...
Size#FoldersFilesLinesCode
14 x 2 theories
theories
v
adequacy.v
adequacy.v
77:90 (2%)
93:106 (2%)
view
11 x 2 theories
theories
v
adequacy.v
interp.v
1:11 (1%)
1:11 (3%)
view
9 x 2 theories
theories
v
adequacy.v
interp.v
15:25 (1%)
62:73 (3%)
view
7 x 2 theories
theories
v
examples.v
lang.v
1:7 (2%)
1:7 (8%)
view
7 x 2 theories
theories
v
interp.v
lang.v
1:7 (2%)
1:7 (8%)
view
7 x 2 theories
theories
v
adequacy.v
adequacy.v
212:218 (1%)
242:248 (1%)
view
7 x 2 theories
theories
v
examples.v
interp.v
1:7 (2%)
1:7 (2%)
view
7 x 2 theories
theories
v
adequacy.v
examples.v
1:7 (1%)
1:7 (2%)
view
7 x 2 theories
theories
v
adequacy.v
lang.v
1:7 (1%)
1:7 (8%)
view
6 x 2 theories
theories
v
adequacy.v
heap.v
1:6 (1%)
1:6 (11%)
view
6 x 2 theories
theories
v
heap.v
interp.v
1:6 (11%)
1:6 (2%)
view
6 x 2 theories
theories
v
examples.v
modality.v
1:6 (2%)
1:6 (4%)
view
6 x 2 theories
theories
v
lang.v
modality.v
1:6 (7%)
1:6 (4%)
view
6 x 2 theories
theories
v
heap.v
lang.v
1:6 (11%)
1:6 (7%)
view
6 x 2 theories
theories
v
examples.v
heap.v
1:6 (2%)
1:6 (11%)
view
6 x 2 theories
theories
v
heap.v
modality.v
1:6 (11%)
1:6 (4%)
view
6 x 2 theories
theories
v
interp.v
modality.v
1:6 (2%)
1:6 (4%)
view
6 x 2 theories
theories
v
adequacy.v
modality.v
1:6 (1%)
1:6 (4%)
view