facebookresearch / VideoPose3D
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
  • 9% duplication:
    • 2,573 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 243 duplicated lines
  • 14 duplicates
system9% (243 lines)
Duplication per Extension
py9% (231 lines)
m7% (12 lines)
Duplication per Component (primary)
inference49% (84 lines)
common6% (63 lines)
data7% (50 lines)
ROOT7% (46 lines)
Longest Duplicates
The list of 14 longest duplicates.
See data for all 14 duplicates...
Size#FoldersFilesLinesCode
22 x 2 inference
inference
infer_video.py
infer_video_d2.py
16:42 (33%)
57:83 (21%)
view
13 x 2 inference
inference
infer_video.py
infer_video_d2.py
54:69 (20%)
92:107 (12%)
view
9 x 2 ROOT
ROOT
run.py
run.py
440:450 (1%)
489:499 (1%)
view
9 x 2 common
common
model.py
model.py
117:129 (8%)
179:190 (8%)
view
9 x 2 common
common
h36m_dataset.py
humaneva_dataset.py
234:243 (4%)
111:120 (9%)
view
8 x 2 common
common
camera.py
camera.py
46:55 (20%)
77:86 (20%)
view
7 x 2 data
data
prepare_data_2d_custom.py
prepare_data_2d_h36m_generic.py
72:80 (10%)
41:49 (13%)
view
7 x 2 inference
inference
infer_video.py
infer_video_d2.py
84:96 (10%)
137:149 (6%)
view
7 x 2 ROOT
ROOT
run.py
run.py
452:460 (1%)
501:508 (1%)
view
7 x 2 ROOT
ROOT
run.py
run.py
462:469 (1%)
510:517 (1%)
view
6 x 2 data
data
ConvertHumanEva.m
convert_cdf_to_mat.m
1:6 (4%)
1:6 (37%)
view
6 x 2 data
data
prepare_data_2d_h36m_generic.py
prepare_data_2d_h36m_sh.py
24:29 (11%)
26:31 (8%)
view
6 x 2 common
common
custom_dataset.py
h36m_dataset.py
54:64 (16%)
243:253 (2%)
view
6 x 2 data
data
data_utils.py
prepare_data_2d_h36m_sh.py
12:17 (7%)
34:39 (8%)
view
Duplicated Units
The list of top 2 duplicated units.
See data for all 2 unit duplicates...
Size#FoldersFilesLinesCode
13 x 2 inference
inference
infer_video_d2.py
infer_video.py
0:0 
0:0 
view
6 x 2 inference
inference
infer_video_d2.py
infer_video.py
0:0 
0:0 
view