facebookresearch / GloRe
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
  • 17% duplication:
    • 2,201 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 382 duplicated lines
  • 9 duplicates
system17% (382 lines)
Duplication per Extension
py17% (382 lines)
Duplication per Component (primary)
network54% (278 lines)
data8% (58 lines)
script69% (34 lines)
dataset/Kinetics/scripts6% (6 lines)
dataset/HMDB51/scripts13% (6 lines)
ROOT0% (0 lines)
dataset0% (0 lines)
train0% (0 lines)
Longest Duplicates
The list of 9 longest duplicates.
See data for all 9 duplicates...
Size#FoldersFilesLinesCode
45 x 2 network
network
resnet101_3d_gcn_x5.py
resnet50_3d_gcn_x5.py
85:137 (29%)
85:137 (29%)
view
42 x 2 network
network
resnet101_3d_gcn_x5.py
resnet50_3d_gcn_x5.py
14:73 (27%)
14:73 (27%)
view
27 x 2 network
network
resnet101_3d_gcn_x5.py
resnet50_3d_gcn_x5.py
175:212 (17%)
175:212 (17%)
view
25 x 2 network
network
resnet101_3d_gcn_x5.py
resnet50_3d_gcn_x5.py
139:173 (16%)
139:173 (16%)
view
17 x 2 script
script
generate_testing_list.py
generate_testing_list.py
12:34 (35%)
45:67 (35%)
view
12 x 2 data
data
image_transforms.py
image_transforms.py
99:110 (4%)
210:221 (4%)
view
9 x 2 data
data
image_transforms.py
image_transforms.py
249:258 (3%)
273:282 (3%)
view
8 x 2 data
data
image_transforms.py
image_transforms.py
67:75 (2%)
195:202 (2%)
view
6 x 2 dataset/HMDB51/scripts
dataset/Kinetics/scripts
convert_videos.py
convert_videos.py
17:22 (13%)
18:23 (10%)
view
Duplicated Units
The list of top 5 duplicated units.
See data for all 5 unit duplicates...
Size#FoldersFilesLinesCode
12 x 2 network
network
resnet50_3d_gcn_x5.py
resnet101_3d_gcn_x5.py
0:0 
0:0 
view
8 x 2 network
network
resnet50_3d_gcn_x5.py
resnet101_3d_gcn_x5.py
0:0 
0:0 
view
6 x 2 network
network
resnet50_3d_gcn_x5.py
resnet101_3d_gcn_x5.py
0:0 
0:0 
view
6 x 2 network
network
resnet50_3d_gcn_x5.py
resnet101_3d_gcn_x5.py
0:0 
0:0 
view
6 x 2 network
network
resnet50_3d_gcn_x5.py
resnet101_3d_gcn_x5.py
0:0 
0:0 
view