facebookresearch / Ego-Exo
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
  • 49% duplication:
    • 13,928 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 6,951 duplicated lines
  • 2,987 duplicates
system49% (6,951 lines)
Duplication per Extension
py35% (3,668 lines)
yaml92% (3,283 lines)
Duplication per Component (primary)
configs/Kinetics99% (1,876 lines)
slowfast/models48% (1,036 lines)
slowfast/datasets36% (944 lines)
configs/ego-exo95% (669 lines)
tools/epic95% (561 lines)
configs/AVA92% (443 lines)
tools/handobj96% (292 lines)
slowfast/utils8% (286 lines)
tools/kd96% (285 lines)
tools38% (252 lines)
configs/Charades98% (150 lines)
configs/SSv297% (145 lines)
slowfast/visualization4% (12 lines)
slowfast/config0% (0 lines)
slowfast0% (0 lines)
ROOT0% (0 lines)

Duplication Between Components (50+ lines)

G configs/Kinetics configs/Kinetics configs/ego-exo configs/ego-exo configs/Kinetics--configs/ego-exo 1500 configs/SSv2 configs/SSv2 configs/Kinetics--configs/SSv2 322 configs/AVA configs/AVA configs/AVA--configs/Kinetics 595 configs/AVA--configs/ego-exo 255 configs/Charades configs/Charades configs/AVA--configs/Charades 64 configs/AVA--configs/SSv2 86 tools/epic tools/epic tools/handobj tools/handobj tools/epic--tools/handobj 581 tools/kd tools/kd tools/epic--tools/kd 565 tools tools tools/epic--tools 538 tools/handobj--tools/kd 566 tools/handobj--tools 488 tools/kd--tools 492 configs/Charades--configs/Kinetics 530 configs/Charades--configs/ego-exo 146 configs/Charades--configs/SSv2 152 configs/SSv2--configs/ego-exo 160

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 2,987 duplicates...
Size#FoldersFilesLinesCode
110 x 2 tools/epic
tools
train_net.py
train_net.py
270:457 (39%)
273:460 (40%)
view
110 x 2 tools/epic/handobj
tools/handobj
train_net.py
train_net.py
314:498 (35%)
320:505 (36%)
view
107 x 2 tools/kd
tools
train_net.py
train_net.py
314:495 (36%)
278:459 (39%)
view
107 x 2 tools/epic
tools/kd
train_net.py
train_net.py
275:456 (38%)
314:495 (36%)
view
97 x 2 tools/epic/handobj
tools/epic
train_net.py
train_net.py
247:411 (31%)
208:372 (34%)
view
95 x 2 tools/handobj
tools/kd
train_net.py
train_net.py
118:260 (31%)
111:254 (32%)
view
87 x 2 tools/handobj
tools/kd
train_net.py
train_net.py
262:417 (28%)
256:411 (29%)
view
75 x 2 configs/Charades
configs/Charades
SLOWFAST_16x8_R50.yaml
SLOWFAST_16x8_R50_multigrid.yaml
1:75 (100%)
4:78 (96%)
view
74 x 2 slowfast/datasets
slowfast/datasets
charades.py
charades_aux.py
121:219 (49%)
27:125 (68%)
view
65 x 2 tools/epic/handobj
tools/epic
train_net.py
train_net.py
418:504 (21%)
376:462 (23%)
view
63 x 2 tools/handobj
tools/kd
train_net.py
train_net.py
425:509 (20%)
415:499 (21%)
view
61 x 2 tools/epic/handobj
tools
train_net.py
train_net.py
418:499 (19%)
379:460 (22%)
view
60 x 2 tools/epic
tools/handobj
train_net.py
train_net.py
376:456 (21%)
425:505 (19%)
view
60 x 2 tools/handobj
tools
train_net.py
train_net.py
425:505 (19%)
379:459 (22%)
view
60 x 2 tools/epic/handobj
tools/kd
train_net.py
train_net.py
418:498 (19%)
415:495 (20%)
view
58 x 2 configs/SSv2
configs/SSv2
SLOWFAST_16x8_R50.yaml
SLOWFAST_16x8_R50_multigrid.yaml
16:73 (79%)
19:76 (76%)
view
55 x 2 configs/Kinetics
configs/Kinetics/c2
SLOWFAST_8x8_R50.yaml
SLOWFAST_8x8_R50.yaml
8:62 (88%)
10:64 (87%)
view
55 x 2 configs/Kinetics
configs/Kinetics/c2
SLOWFAST_4x16_R50.yaml
SLOWFAST_4x16_R50.yaml
8:62 (88%)
10:64 (87%)
view
53 x 2 configs/Kinetics/c2
configs/Kinetics/c2
SLOWFAST_16x8_R101_50_50.yaml
SLOWFAST_8x8_R101_50_50.yaml
12:64 (84%)
12:64 (84%)
view
51 x 2 configs/Kinetics
configs/Kinetics
SLOWFAST_8x8_R50_stepwise.yaml
SLOWFAST_8x8_R50_stepwise_multigrid.yaml
14:64 (79%)
17:67 (76%)
view
Duplicated Units
The list of top 6 duplicated units.
See data for all 6 unit duplicates...
Size#FoldersFilesLinesCode
40 x 5 tools/kd
tools/epic/handobj
tools/epic
tools/handobj
tools
train_net.py
train_net.py
train_net.py
train_net.py
train_net.py
0:0 
0:0 
0:0 
0:0 
0:0 
view
19 x 2 slowfast/models
slowfast/models
handobj_multi_models.py
handobj_models.py
0:0 
0:0 
view
10 x 2 slowfast/utils/ava_evaluation
slowfast/utils/ava_evaluation
per_image_evaluation.py
per_image_evaluation.py
0:0 
0:0 
view
10 x 2 slowfast/models
slowfast/models
stem_helper.py
stem_helper.py
0:0 
0:0 
view
17 x 5 tools/kd
tools/epic/handobj
tools/epic
tools/handobj
tools
train_net.py
train_net.py
train_net.py
train_net.py
train_net.py
0:0 
0:0 
0:0 
0:0 
0:0 
view
7 x 2 slowfast/models
slowfast/models
head_helper.py
kd_models.py
0:0 
0:0 
view