facebookresearch / agem
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
  • 57% duplication:
    • 5,072 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 2,929 duplicated lines
  • 274 duplicates
system57% (2,929 lines)
Duplication per Extension
py57% (2,929 lines)
Duplication per Component (primary)
ROOT77% (2,613 lines)
utils26% (242 lines)
model9% (74 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 274 duplicates...
Size#FoldersFilesLinesCode
67 x 2 ROOT
ROOT
conv_split_awa.py
conv_split_awa_hybrid.py
497:583 (11%)
511:596 (10%)
view
63 x 2 ROOT
ROOT
conv_split_cub.py
conv_split_cub_hybrid.py
492:562 (10%)
517:587 (9%)
view
42 x 2 ROOT
ROOT
conv_split_awa.py
conv_split_cub.py
481:534 (6%)
476:529 (6%)
view
42 x 2 ROOT
ROOT
conv_split_awa_hybrid.py
conv_split_cub_hybrid.py
125:166 (6%)
119:160 (6%)
view
40 x 2 ROOT
ROOT
conv_split_awa.py
conv_split_cub.py
124:163 (6%)
116:155 (6%)
view
39 x 2 ROOT
ROOT
conv_split_awa.py
conv_split_awa_hybrid.py
252:318 (6%)
257:322 (6%)
view
37 x 2 ROOT
ROOT
conv_split_awa.py
conv_split_awa_hybrid.py
130:166 (6%)
133:169 (5%)
view
37 x 2 ROOT
ROOT
conv_split_cub.py
conv_split_cub_hybrid.py
122:158 (6%)
127:163 (5%)
view
34 x 2 ROOT
ROOT
conv_split_awa.py
conv_split_cub_hybrid.py
130:163 (5%)
127:160 (5%)
view
34 x 2 ROOT
ROOT
conv_split_awa.py
conv_split_awa_hybrid.py
360:404 (5%)
363:407 (5%)
view
34 x 2 ROOT
ROOT
conv_split_awa_hybrid.py
conv_split_cub.py
133:166 (5%)
122:155 (5%)
view
33 x 2 ROOT
ROOT
conv_split_awa.py
conv_split_cifar.py
124:156 (5%)
114:146 (6%)
view
33 x 2 ROOT
ROOT
conv_split_cifar.py
conv_split_cub.py
114:146 (6%)
116:148 (5%)
view
32 x 2 ROOT
ROOT
conv_split_awa.py
conv_split_awa_hybrid.py
443:488 (5%)
452:496 (5%)
view
32 x 2 ROOT
ROOT
conv_split_awa.py
conv_split_cub_hybrid.py
497:534 (5%)
517:554 (4%)
view
32 x 2 ROOT
ROOT
conv_split_awa_hybrid.py
conv_split_cub_hybrid.py
511:548 (5%)
517:554 (4%)
view
32 x 2 ROOT
ROOT
conv_split_awa_hybrid.py
conv_split_cub.py
511:548 (5%)
492:529 (5%)
view
31 x 2 ROOT
ROOT
conv_split_cub.py
conv_split_cub_hybrid.py
363:404 (5%)
380:421 (4%)
view
29 x 2 ROOT
ROOT
conv_split_awa.py
conv_split_awa_hybrid.py
35:68 (4%)
35:67 (4%)
view
29 x 2 ROOT
ROOT
conv_split_cub.py
conv_split_cub_hybrid.py
753:783 (4%)
783:813 (4%)
view
Duplicated Units
The list of top 2 duplicated units.
See data for all 2 unit duplicates...
Size#FoldersFilesLinesCode
13 x 5 ROOT
ROOT
ROOT
ROOT
ROOT
conv_split_awa.py
conv_split_cub.py
conv_split_cifar.py
conv_split_awa_hybrid.py
conv_split_cub_hybrid.py
0:0 
0:0 
0:0 
0:0 
0:0 
view
8 x 5 ROOT
ROOT
ROOT
ROOT
ROOT
conv_split_awa.py
conv_split_cub.py
conv_split_cifar.py
conv_split_awa_hybrid.py
conv_split_cub_hybrid.py
0:0 
0:0 
0:0 
0:0 
0:0 
view