facebookresearch / Motionformer
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
  • 27% duplication:
    • 10,484 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 2,862 duplicated lines
  • 766 duplicates
system27% (2,862 lines)
Duplication per Extension
yaml99% (1,597 lines)
py14% (1,237 lines)
html10% (28 lines)
Duplication per Component (primary)
slowfast/datasets20% (520 lines)
configs/SSV299% (419 lines)
configs/EK100% (400 lines)
configs/K600100% (390 lines)
configs/K40099% (388 lines)
slowfast/utils18% (372 lines)
slowfast/visualization10% (180 lines)
tools15% (68 lines)
ROOT5% (35 lines)
slowfast/models2% (32 lines)
data/kinetics_40072% (29 lines)
data/kinetics_60072% (29 lines)
slowfast/config0% (0 lines)
slowfast0% (0 lines)

Duplication Between Components (50+ lines)

G configs/K400 configs/K400 configs/K600 configs/K600 configs/K400--configs/K600 755 configs/SSV2 configs/SSV2 configs/K400--configs/SSV2 524 configs/K600--configs/SSV2 530 configs/EK configs/EK configs/EK--configs/K400 554 configs/EK--configs/K600 560 configs/EK--configs/SSV2 619 data/kinetics_400 data/kinetics_400 data/kinetics_600 data/kinetics_600 data/kinetics_400--data/kinetics_600 58

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 766 duplicates...
Size#FoldersFilesLinesCode
63 x 2 configs/SSV2
configs/SSV2
divided_224_16x4.yaml
motionformer_224_16x4.yaml
1:63 (75%)
1:63 (75%)
view
59 x 2 configs/EK
configs/EK
joint_224_16x4.yaml
motionformer_224_16x4.yaml
1:59 (73%)
1:59 (73%)
view
59 x 2 configs/EK
configs/EK
divided_224_16x4.yaml
motionformer_224_16x4.yaml
1:59 (73%)
1:59 (73%)
view
59 x 2 configs/EK
configs/EK
divided_224_16x4.yaml
joint_224_16x4.yaml
1:59 (73%)
1:59 (73%)
view
57 x 2 configs/K400
configs/K400
divided_224_16x4.yaml
joint_224_16x4.yaml
1:57 (73%)
1:57 (73%)
view
57 x 2 configs/K400
configs/K400
divided_224_16x4.yaml
motionformer_224_16x4.yaml
1:57 (73%)
1:57 (73%)
view
57 x 2 configs/K600
configs/K600
divided_224_16x4.yaml
motionformer_224_16x4.yaml
1:57 (73%)
1:57 (73%)
view
57 x 2 configs/K600
configs/K600
joint_224_16x4.yaml
motionformer_224_16x4.yaml
1:57 (73%)
1:57 (73%)
view
57 x 2 configs/K400
configs/K400
joint_224_16x4.yaml
motionformer_224_16x4.yaml
1:57 (73%)
1:57 (73%)
view
57 x 2 configs/K600
configs/K600
divided_224_16x4.yaml
joint_224_16x4.yaml
1:57 (73%)
1:57 (73%)
view
52 x 2 configs/K400
configs/K400
motionformer_224_16x4.yaml
motionformer_336_16x8.yaml
27:78 (66%)
27:78 (66%)
view
52 x 2 configs/EK
configs/EK
motionformer_224_16x4.yaml
motionformer_336_16x4.yaml
29:80 (65%)
29:80 (65%)
view
52 x 2 configs/K600
configs/K600
motionformer_224_16x4.yaml
motionformer_336_16x4.yaml
27:78 (66%)
27:78 (66%)
view
52 x 2 configs/SSV2
configs/SSV2
motionformer_224_16x4.yaml
motionformer_336_16x4.yaml
33:84 (61%)
33:84 (61%)
view
42 x 2 configs/K400
configs/K600
divided_224_16x4.yaml
divided_224_16x4.yaml
18:59 (53%)
18:59 (53%)
view
42 x 2 configs/K400
configs/K600
joint_224_16x4.yaml
joint_224_16x4.yaml
18:59 (53%)
18:59 (53%)
view
42 x 2 configs/K400
configs/K600
motionformer_336_16x8.yaml
motionformer_336_16x4.yaml
18:59 (53%)
18:59 (53%)
view
42 x 2 configs/K400
configs/K600
motionformer_224_16x4.yaml
motionformer_224_16x4.yaml
18:59 (53%)
18:59 (53%)
view
42 x 2 slowfast/datasets
slowfast/datasets
epickitchens.py
kinetics.py
149:201 (26%)
268:319 (19%)
view
40 x 2 configs/K400
configs/K600
motionformer_224_16x4.yaml
divided_224_16x4.yaml
18:57 (51%)
18:57 (51%)
view
Duplicated Units
The list of top 3 duplicated units.
See data for all 3 unit duplicates...
Size#FoldersFilesLinesCode
14 x 2 slowfast/utils
slowfast/utils
meters.py
meters.py
0:0 
0:0 
view
13 x 2 slowfast/visualization
slowfast/visualization
demo_loader.py
demo_loader.py
0:0 
0:0 
view
8 x 2 slowfast/visualization
slowfast/visualization
predictor.py
async_predictor.py
0:0 
0:0 
view