facebookresearch / AVID-CMA
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
  • 35% duplication:
    • 3,799 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 1,333 duplicated lines
  • 244 duplicates
system35% (1,333 lines)
Duplication per Extension
yaml87% (929 lines)
py14% (404 lines)
Duplication per Component (primary)
configs/benchmark/hmdb5199% (363 lines)
configs/benchmark/ucf99% (363 lines)
datasets21% (118 lines)
configs/main/avid79% (99 lines)
configs/main/avid-cma68% (97 lines)
ROOT23% (92 lines)
utils10% (74 lines)
criterions13% (64 lines)
utils/videotransforms13% (56 lines)
configs/benchmark/kinetics11% (7 lines)
utils/ioutils0% (0 lines)
utils/videotransforms/utils0% (0 lines)
models0% (0 lines)

Duplication Between Components (50+ lines)

G configs/benchmark/hmdb51 configs/benchmark/hmdb51 configs/benchmark/ucf configs/benchmark/ucf configs/benchmark/hmdb51--configs/benchmark/ucf 330 configs/main/avid-cma configs/main/avid-cma configs/main/avid configs/main/avid configs/main/avid-cma--configs/main/avid 166

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 244 duplicates...
Size#FoldersFilesLinesCode
47 x 2 configs/benchmark/ucf
configs/benchmark/ucf
8at16-fold1.yaml
8at16-fold2.yaml
18:66 (77%)
18:66 (77%)
view
47 x 2 configs/benchmark/hmdb51
configs/benchmark/hmdb51
32at16-fold1.yaml
32at16-fold2.yaml
18:66 (77%)
18:66 (77%)
view
47 x 2 configs/benchmark/hmdb51
configs/benchmark/hmdb51
8at16-fold1.yaml
8at16-fold3.yaml
18:66 (77%)
18:66 (77%)
view
47 x 2 configs/benchmark/ucf
configs/benchmark/ucf
32at16-fold1.yaml
32at16-fold2.yaml
18:66 (77%)
18:66 (77%)
view
47 x 2 configs/benchmark/hmdb51
configs/benchmark/hmdb51
8at16-fold2.yaml
8at16-fold3.yaml
18:66 (77%)
18:66 (77%)
view
47 x 2 configs/benchmark/ucf
configs/benchmark/ucf
8at16-fold2.yaml
8at16-fold3.yaml
18:66 (77%)
18:66 (77%)
view
47 x 2 configs/benchmark/hmdb51
configs/benchmark/hmdb51
32at16-fold2.yaml
32at16-fold3.yaml
18:66 (77%)
18:66 (77%)
view
47 x 2 configs/benchmark/ucf
configs/benchmark/ucf
8at16-fold1.yaml
8at16-fold3.yaml
18:66 (77%)
18:66 (77%)
view
47 x 2 configs/benchmark/hmdb51
configs/benchmark/hmdb51
8at16-fold1.yaml
8at16-fold2.yaml
18:66 (77%)
18:66 (77%)
view
47 x 2 configs/benchmark/hmdb51
configs/benchmark/hmdb51
32at16-fold1.yaml
32at16-fold3.yaml
18:66 (77%)
18:66 (77%)
view
47 x 2 configs/benchmark/ucf
configs/benchmark/ucf
32at16-fold1.yaml
32at16-fold3.yaml
18:66 (77%)
18:66 (77%)
view
47 x 2 configs/benchmark/ucf
configs/benchmark/ucf
32at16-fold2.yaml
32at16-fold3.yaml
18:66 (77%)
18:66 (77%)
view
36 x 2 configs/benchmark/ucf
configs/benchmark/ucf
32at16-fold2.yaml
8at16-fold1.yaml
29:66 (59%)
29:66 (59%)
view
36 x 2 configs/benchmark/hmdb51
configs/benchmark/hmdb51
32at16-fold2.yaml
8at16-fold3.yaml
29:66 (59%)
29:66 (59%)
view
36 x 2 configs/benchmark/hmdb51
configs/benchmark/hmdb51
32at16-fold1.yaml
8at16-fold1.yaml
29:66 (59%)
29:66 (59%)
view
36 x 2 configs/benchmark/ucf
configs/benchmark/ucf
32at16-fold1.yaml
8at16-fold2.yaml
29:66 (59%)
29:66 (59%)
view
36 x 2 configs/benchmark/ucf
configs/benchmark/ucf
32at16-fold3.yaml
8at16-fold1.yaml
29:66 (59%)
29:66 (59%)
view
36 x 2 configs/benchmark/ucf
configs/benchmark/ucf
32at16-fold1.yaml
8at16-fold1.yaml
29:66 (59%)
29:66 (59%)
view
36 x 2 configs/benchmark/ucf
configs/benchmark/ucf
32at16-fold2.yaml
8at16-fold2.yaml
29:66 (59%)
29:66 (59%)
view
36 x 2 configs/benchmark/hmdb51
configs/benchmark/hmdb51
32at16-fold3.yaml
8at16-fold3.yaml
29:66 (59%)
29:66 (59%)
view
Duplicated Units
The list of top 2 duplicated units.
See data for all 2 unit duplicates...
Size#FoldersFilesLinesCode
11 x 2 criterions
criterions
avid.py
avid_cma.py
0:0 
0:0 
view
6 x 2 utils
utils
main_utils.py
eval_utils.py
0:0 
0:0 
view