facebookresearch / InterHand2.6M
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
  • 26% duplication:
    • 1,540 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 405 duplicated lines
  • 18 duplicates
system26% (405 lines)
Duplication per Extension
py26% (405 lines)
Duplication per Component (primary)
data/STB89% (123 lines)
data/RHD87% (123 lines)
data/InterHand2.6M21% (43 lines)
tool/MANO_render39% (35 lines)
tool/MANO_world_to_camera44% (35 lines)
common/nets13% (30 lines)
main7% (16 lines)
common0% (0 lines)
common/utils0% (0 lines)
tool/camera_visualize0% (0 lines)

Duplication Between Components (50+ lines)

G data/RHD data/RHD data/STB data/STB data/RHD--data/STB 246 data/InterHand2.6M data/InterHand2.6M data/InterHand2.6M--data/RHD 86 data/InterHand2.6M--data/STB 86 tool/MANO_render tool/MANO_render tool/MANO_world_to_camera tool/MANO_world_to_camera tool/MANO_render--tool/MANO_world_to_camera 70

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 18 longest duplicates.
See data for all 18 duplicates...
Size#FoldersFilesLinesCode
109 x 2 data/RHD
data/STB
dataset.py
dataset.py
60:200 (77%)
57:197 (78%)
view
14 x 2 data/RHD
data/STB
dataset.py
dataset.py
42:57 (9%)
38:53 (10%)
view
13 x 2 tool/MANO_render
tool/MANO_world_to_camera
render.py
convert.py
60:74 (14%)
75:91 (16%)
view
12 x 2 data/InterHand2.6M
data/RHD
dataset.py
dataset.py
54:66 (6%)
45:57 (8%)
view
12 x 2 data/InterHand2.6M
data/STB
dataset.py
dataset.py
54:66 (6%)
41:53 (8%)
view
11 x 2 tool/MANO_render
tool/MANO_world_to_camera
render.py
convert.py
28:39 (12%)
37:48 (13%)
view
11 x 2 tool/MANO_render
tool/MANO_world_to_camera
render.py
convert.py
44:55 (12%)
50:61 (13%)
view
10 x 2 data/InterHand2.6M
data/RHD
dataset.py
dataset.py
162:174 (5%)
139:150 (7%)
view
10 x 2 data/InterHand2.6M
data/STB
dataset.py
dataset.py
162:174 (5%)
136:147 (7%)
view
8 x 2 data/InterHand2.6M
data/RHD
dataset.py
dataset.py
143:153 (4%)
122:132 (5%)
view
8 x 2 data/InterHand2.6M
data/STB
dataset.py
dataset.py
143:153 (4%)
119:129 (5%)
view
8 x 2 common/nets
common/nets
layer.py
layer.py
50:59 (7%)
140:149 (7%)
view
8 x 2 main
main
test.py
train.py
24:33 (19%)
18:27 (15%)
view
7 x 2 common/nets
common/nets
layer.py
layer.py
32:39 (6%)
122:129 (6%)
view
7 x 2 data/InterHand2.6M
data/STB
dataset.py
dataset.py
223:229 (3%)
174:180 (5%)
view
7 x 2 data/InterHand2.6M
data/RHD
dataset.py
dataset.py
223:229 (3%)
177:183 (4%)
view
6 x 2 data/InterHand2.6M
data/STB
dataset.py
dataset.py
117:124 (3%)
93:100 (4%)
view
6 x 2 data/InterHand2.6M
data/RHD
dataset.py
dataset.py
117:124 (3%)
96:103 (4%)
view
Duplicated Units
The list of top 3 duplicated units.
See data for all 3 unit duplicates...
Size#FoldersFilesLinesCode
63 x 2 data/STB
data/RHD
dataset.py
dataset.py
0:0 
0:0 
view
18 x 2 data/STB
data/RHD
dataset.py
dataset.py
0:0 
0:0 
view
6 x 2 data/STB
data/RHD
dataset.py
dataset.py
0:0 
0:0 
view