awslabs / dgl-ke
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
  • 25% duplication:
    • 5,845 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 1,504 duplicated lines
  • 223 duplicates
system25% (1,504 lines)
Duplication per Extension
py25% (1,504 lines)
Duplication per Component (primary)
python/dglke23% (449 lines)
python/dglke/models/pytorch43% (381 lines)
python/dglke/dataloader27% (308 lines)
python/dglke/models/mxnet33% (208 lines)
python/dglke/models12% (158 lines)
python0% (0 lines)

Duplication Between Components (50+ lines)

G python/dglke/models/mxnet python/dglke/models/mxnet python/dglke/models/pytorch python/dglke/models/pytorch python/dglke/models/mxnet--python/dglke/models/pytorch 377

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 20 longest duplicates.
See data for all 223 duplicates...
Size#FoldersFilesLinesCode
38 x 2 python/dglke/models/pytorch
python/dglke/models/pytorch
ke_tensor.py
tensor_models.py
202:241 (33%)
323:362 (18%)
view
30 x 2 python/dglke/dataloader
python/dglke/dataloader
sampler.py
sampler.py
111:145 (6%)
218:252 (6%)
view
23 x 2 python/dglke/models/pytorch
python/dglke/models/pytorch
score_fun.py
score_fun.py
242:273 (4%)
402:432 (4%)
view
22 x 2 python/dglke/models/pytorch
python/dglke/models/pytorch
ke_tensor.py
tensor_models.py
163:196 (19%)
284:317 (10%)
view
21 x 2 python/dglke/models/mxnet
python/dglke/models/pytorch
score_fun.py
score_fun.py
426:453 (4%)
244:272 (4%)
view
21 x 2 python/dglke/models/pytorch
python/dglke/models/pytorch
score_fun.py
score_fun.py
319:348 (4%)
402:430 (4%)
view
21 x 2 python/dglke/models/mxnet
python/dglke/models/pytorch
score_fun.py
score_fun.py
271:298 (4%)
244:272 (4%)
view
21 x 2 python/dglke/models/pytorch
python/dglke/models/pytorch
score_fun.py
score_fun.py
242:271 (4%)
319:348 (4%)
view
21 x 2 python/dglke
python/dglke
dist_train.py
kvclient.py
52:76 (14%)
70:94 (15%)
view
21 x 2 python/dglke/models/mxnet
python/dglke/models/pytorch
score_fun.py
score_fun.py
426:453 (4%)
404:431 (4%)
view
21 x 2 python/dglke/models/mxnet
python/dglke/models/pytorch
score_fun.py
score_fun.py
271:298 (4%)
404:431 (4%)
view
21 x 2 python/dglke/models/mxnet
python/dglke/models/mxnet
score_fun.py
score_fun.py
271:298 (4%)
426:453 (4%)
view
20 x 2 python/dglke/models/mxnet
python/dglke/models/pytorch
score_fun.py
score_fun.py
343:369 (4%)
404:430 (4%)
view
20 x 2 python/dglke/models/mxnet
python/dglke/models/pytorch
score_fun.py
score_fun.py
343:369 (4%)
321:348 (4%)
view
20 x 2 python/dglke/models/mxnet
python/dglke/models/mxnet
score_fun.py
score_fun.py
271:297 (4%)
343:369 (4%)
view
20 x 2 python/dglke/models/mxnet
python/dglke/models/pytorch
score_fun.py
score_fun.py
343:369 (4%)
244:271 (4%)
view
20 x 2 python/dglke/models/mxnet
python/dglke/models/pytorch
score_fun.py
score_fun.py
426:452 (4%)
321:348 (4%)
view
20 x 2 python/dglke/models/mxnet
python/dglke/models/pytorch
score_fun.py
score_fun.py
271:297 (4%)
321:348 (4%)
view
20 x 2 python/dglke/models/mxnet
python/dglke/models/mxnet
score_fun.py
score_fun.py
343:369 (4%)
426:452 (4%)
view
19 x 2 python/dglke/models
python/dglke/models
general_models.py
ke_model.py
133:154 (5%)
150:173 (3%)
view
Duplicated Units
The list of top 7 duplicated units.
See data for all 7 unit duplicates...
Size#FoldersFilesLinesCode
22 x 2 python/dglke
python/dglke
dist_train.py
kvclient.py
0:0 
0:0 
view
17 x 2 python/dglke/models/pytorch
python/dglke/models/mxnet
score_fun.py
score_fun.py
0:0 
0:0 
view
10 x 2 python/dglke
python/dglke
train_pytorch.py
kvserver.py
0:0 
0:0 
view
6 x 2 python/dglke/models/pytorch
python/dglke/models/pytorch
ke_tensor.py
tensor_models.py
0:0 
0:0 
view
10 x 2 python/dglke/models/pytorch
python/dglke/models/pytorch
ke_tensor.py
tensor_models.py
0:0 
0:0 
view
11 x 2 python/dglke/models
python/dglke/models
general_models.py
general_models.py
0:0 
0:0 
view
10 x 2 python/dglke/models/pytorch
python/dglke/models/pytorch
tensor_models.py
tensor_models.py
0:0 
0:0 
view