facebookresearch / dlrm
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
  • 24% duplication:
    • 6,703 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 1,654 duplicated lines
  • 125 duplicates
system24% (1,654 lines)
Duplication per Extension
py24% (1,654 lines)
Duplication per Component (primary)
ROOT27% (1,573 lines)
tools8% (60 lines)
cython61% (21 lines)
optim0% (0 lines)
tricks0% (0 lines)

Duplication Between Components (50+ lines)

G cython cython ROOT ROOT cython--ROOT 63

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 125 duplicates...
Size#FoldersFilesLinesCode
31 x 2 ROOT
ROOT
dlrm_data_caffe2.py
dlrm_data_pytorch.py
772:823 (5%)
1221:1271 (3%)
view
24 x 2 ROOT
ROOT
dlrm_data_caffe2.py
dlrm_data_pytorch.py
639:670 (4%)
1088:1119 (2%)
view
22 x 2 ROOT
ROOT
dlrm_s_caffe2.py
dlrm_s_pytorch.py
1167:1189 (1%)
937:959 (1%)
view
20 x 2 ROOT
ROOT
dlrm_s_caffe2.py
dlrm_s_caffe2.py
834:857 (1%)
1003:1026 (1%)
view
20 x 2 ROOT
ROOT
dlrm_data_pytorch.py
dlrm_data_pytorch.py
712:731 (2%)
734:753 (2%)
view
19 x 2 ROOT
ROOT
dlrm_s_caffe2.py
dlrm_s_caffe2.py
754:783 (1%)
863:892 (1%)
view
19 x 2 ROOT
ROOT
dlrm_data_caffe2.py
dlrm_data_pytorch.py
598:624 (3%)
1045:1071 (2%)
view
18 x 2 ROOT
ROOT
data_utils.py
data_utils.py
251:269 (1%)
467:485 (1%)
view
17 x 2 ROOT
ROOT
dlrm_data_caffe2.py
dlrm_data_pytorch.py
620:637 (3%)
1096:1113 (1%)
view
17 x 2 ROOT
ROOT
dlrm_data_caffe2.py
dlrm_data_caffe2.py
620:637 (3%)
647:664 (3%)
view
17 x 2 ROOT
ROOT
dlrm_data_caffe2.py
dlrm_data_pytorch.py
700:729 (3%)
1149:1178 (1%)
view
16 x 2 ROOT
ROOT
data_utils.py
data_utils.py
290:305 (1%)
511:526 (1%)
view
16 x 2 ROOT
ROOT
dlrm_data_pytorch.py
dlrm_data_pytorch.py
866:888 (1%)
920:942 (1%)
view
16 x 2 ROOT
ROOT
data_utils.py
data_utils.py
237:252 (1%)
329:344 (1%)
view
14 x 2 ROOT
ROOT
data_utils.py
data_utils.py
280:294 (1%)
385:399 (1%)
view
13 x 2 ROOT
ROOT
dlrm_data_caffe2.py
dlrm_data_pytorch.py
153:168 (2%)
297:312 (1%)
view
13 x 2 ROOT
ROOT
dlrm_data_caffe2.py
dlrm_data_pytorch.py
412:424 (2%)
781:793 (1%)
view
13 x 2 ROOT
ROOT
extend_distributed.py
extend_distributed.py
208:220 (2%)
300:312 (2%)
view
12 x 2 ROOT
ROOT
extend_distributed.py
extend_distributed.py
253:265 (2%)
345:357 (2%)
view
12 x 2 ROOT
ROOT
dlrm_data_caffe2.py
dlrm_data_pytorch.py
413:424 (2%)
580:591 (1%)
view
Duplicated Units
The list of top 6 duplicated units.
See data for all 6 unit duplicates...
Size#FoldersFilesLinesCode
13 x 2 ROOT
ROOT
dlrm_data_caffe2.py
dlrm_data_pytorch.py
0:0 
0:0 
view
10 x 2 ROOT
ROOT
dlrm_data_caffe2.py
dlrm_data_pytorch.py
0:0 
0:0 
view
8 x 2 ROOT
ROOT
dlrm_data_caffe2.py
dlrm_data_pytorch.py
0:0 
0:0 
view
7 x 2 ROOT
ROOT
dlrm_data_caffe2.py
dlrm_data_pytorch.py
0:0 
0:0 
view
7 x 2 ROOT
ROOT
dlrm_data_caffe2.py
dlrm_data_pytorch.py
0:0 
0:0 
view
7 x 2 ROOT
ROOT
extend_distributed.py
extend_distributed.py
0:0 
0:0 
view