facebookresearch / video-long-term-feature-banks
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
  • 34% duplication:
    • 7,154 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 2,492 duplicated lines
  • 1,334 duplicates
system34% (2,492 lines)
Duplication per Extension
yaml86% (2,018 lines)
py10% (474 lines)
Duplication per Component (primary)
configs99% (2,018 lines)
lib/datasets18% (327 lines)
lib/models12% (131 lines)
lib/utils1% (16 lines)
tools0% (0 lines)
caffe2_customized_ops/video0% (0 lines)
configs/detectron0% (0 lines)
lib/core0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 1,334 duplicates...
Size#FoldersFilesLinesCode
84 x 2 configs
configs
ava_r101_lfb_nl.yaml
ava_r101_lfb_nl_3l.yaml
1:102 (100%)
1:102 (97%)
view
84 x 2 configs
configs
ava_r50_lfb_nl.yaml
ava_r50_lfb_nl_3l.yaml
1:102 (100%)
1:102 (97%)
view
78 x 2 configs
configs
ava_r101_lfb_max.yaml
ava_r101_lfb_nl.yaml
1:96 (92%)
1:96 (92%)
view
78 x 2 configs
configs
ava_r101_lfb_avg.yaml
ava_r101_lfb_max.yaml
1:96 (92%)
1:96 (92%)
view
78 x 2 configs
configs
ava_r50_lfb_avg.yaml
ava_r50_lfb_nl.yaml
1:96 (92%)
1:96 (92%)
view
78 x 2 configs
configs
ava_r50_lfb_avg.yaml
ava_r50_lfb_nl_3l.yaml
1:96 (92%)
1:96 (90%)
view
78 x 2 configs
configs
ava_r101_lfb_avg.yaml
ava_r101_lfb_nl.yaml
1:96 (92%)
1:96 (92%)
view
78 x 2 configs
configs
ava_r50_lfb_max.yaml
ava_r50_lfb_nl.yaml
1:96 (92%)
1:96 (92%)
view
78 x 2 configs
configs
ava_r101_lfb_max.yaml
ava_r101_lfb_nl_3l.yaml
1:96 (92%)
1:96 (90%)
view
78 x 2 configs
configs
ava_r50_lfb_avg.yaml
ava_r50_lfb_max.yaml
1:96 (92%)
1:96 (92%)
view
78 x 2 configs
configs
ava_r50_lfb_max.yaml
ava_r50_lfb_nl_3l.yaml
1:96 (92%)
1:96 (90%)
view
78 x 2 configs
configs
ava_r101_lfb_avg.yaml
ava_r101_lfb_nl_3l.yaml
1:96 (92%)
1:96 (90%)
view
76 x 2 configs
configs
ava_r101_baseline.yaml
ava_r101_lfb_nl_3l.yaml
1:93 (100%)
1:93 (88%)
view
76 x 2 configs
configs
ava_r101_baseline.yaml
ava_r101_lfb_max.yaml
1:93 (100%)
1:93 (90%)
view
76 x 2 configs
configs
ava_r101_baseline.yaml
ava_r101_lfb_nl.yaml
1:93 (100%)
1:93 (90%)
view
76 x 2 configs
configs
ava_r50_baseline.yaml
ava_r50_lfb_avg.yaml
1:93 (100%)
1:93 (90%)
view
76 x 2 configs
configs
ava_r101_baseline.yaml
ava_r101_lfb_avg.yaml
1:93 (100%)
1:93 (90%)
view
76 x 2 configs
configs
ava_r50_baseline.yaml
ava_r50_lfb_nl_3l.yaml
1:93 (100%)
1:93 (88%)
view
76 x 2 configs
configs
ava_r50_baseline.yaml
ava_r50_lfb_nl.yaml
1:93 (100%)
1:93 (90%)
view
76 x 2 configs
configs
ava_r50_baseline.yaml
ava_r50_lfb_max.yaml
1:93 (100%)
1:93 (90%)
view
Duplicated Units
The list of top 3 duplicated units.
See data for all 3 unit duplicates...
Size#FoldersFilesLinesCode
17 x 2 lib/datasets
lib/datasets
epic_data_input.py
charades_data_input.py
0:0 
0:0 
view
9 x 3 lib/datasets
lib/datasets
lib/datasets
epic_data_input.py
ava_data_input.py
charades_data_input.py
0:0 
0:0 
0:0 
view
6 x 4 lib/datasets
lib/datasets
lib/datasets
lib/datasets
epic_data_input.py
ava_data_input.py
charades_data_input.py
execution_context.py
0:0 
0:0 
0:0 
0:0 
view