facebookresearch / isc2021
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
  • 11% duplication:
    • 1,843 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 210 duplicated lines
  • 13 duplicates
system11% (210 lines)
Duplication per Extension
c15% (116 lines)
py8% (94 lines)
Duplication per Component (primary)
lear_gist-1.214% (116 lines)
baselines14% (62 lines)
isc7% (32 lines)
ROOT0% (0 lines)
scripts0% (0 lines)
Longest Duplicates
The list of 13 longest duplicates.
See data for all 13 duplicates...
Size#FoldersFilesLinesCode
13 x 2 lear_gist-1.2
lear_gist-1.2
compute_gist.c
compute_gist_stream.c
21:35 (20%)
21:35 (13%)
view
11 x 2 lear_gist-1.2
lear_gist-1.2
compute_gist.c
compute_gist_stream.c
65:77 (16%)
65:77 (11%)
view
10 x 2 isc
isc
io.py
io.py
96:106 (8%)
155:165 (8%)
view
9 x 2 baselines
baselines
GeM_baseline.py
gist_baseline.py
268:276 (4%)
195:203 (6%)
view
9 x 2 lear_gist-1.2
lear_gist-1.2
gist.c
gist.c
598:613 (1%)
636:651 (1%)
view
8 x 2 baselines
baselines
GeM_baseline.py
gist_baseline.py
166:174 (4%)
153:161 (5%)
view
8 x 2 baselines
baselines
GeM_baseline.py
gist_baseline.py
136:143 (4%)
127:134 (5%)
view
7 x 2 lear_gist-1.2
lear_gist-1.2
compute_gist.c
compute_gist_stream.c
40:49 (10%)
39:48 (7%)
view
6 x 2 isc
isc
io.py
io.py
60:65 (5%)
121:126 (5%)
view
6 x 2 lear_gist-1.2
lear_gist-1.2
gist.c
gist.c
446:451 (1%)
779:784 (1%)
view
6 x 2 lear_gist-1.2
lear_gist-1.2
compute_gist.c
compute_gist_stream.c
50:61 (9%)
50:61 (6%)
view
6 x 2 baselines
baselines
GeM_baseline.py
gist_baseline.py
121:128 (3%)
115:122 (4%)
view
6 x 2 lear_gist-1.2
lear_gist-1.2
gist.c
gist.c
578:583 (1%)
862:867 (1%)
view