facebookresearch / EmbodiedQA
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:
    • 6,655 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 2,278 duplicated lines
  • 129 duplicates
system34% (2,278 lines)
Duplication per Extension
py34% (2,278 lines)
Duplication per Component (primary)
training44% (1,589 lines)
training/utils93% (490 lines)
data/question-gen11% (185 lines)
utils2% (14 lines)
data/shortest-path-gen0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 129 duplicates...
Size#FoldersFilesLinesCode
106 x 2 training/utils
training/utils
preprocess_questions.py
preprocess_questions_pkl.py
21:168 (40%)
17:164 (40%)
view
103 x 2 training/utils
training/utils
preprocess_questions.py
preprocess_questions_pkl.py
239:365 (39%)
241:367 (38%)
view
57 x 2 training
training
models.py
models.py
98:160 (6%)
211:273 (6%)
view
48 x 2 training
training
models.py
models.py
593:647 (5%)
747:801 (5%)
view
37 x 2 training
training
models.py
models.py
898:940 (4%)
985:1027 (4%)
view
34 x 2 training
training
train_nav.py
train_nav.py
232:270 (3%)
439:477 (3%)
view
34 x 2 training
training
data.py
data.py
632:667 (4%)
715:750 (4%)
view
32 x 2 training
training
train_nav.py
train_nav.py
439:474 (3%)
646:681 (3%)
view
32 x 2 training
training
train_nav.py
train_nav.py
232:267 (3%)
646:681 (3%)
view
31 x 2 training
training
train_eqa.py
train_eqa.py
160:201 (4%)
530:571 (4%)
view
31 x 2 training
training
models.py
models.py
651:686 (3%)
804:839 (3%)
view
29 x 2 training
training
data.py
data.py
528:556 (3%)
715:743 (3%)
view
29 x 2 training
training
data.py
data.py
528:556 (3%)
632:660 (3%)
view
25 x 2 training
training
train_eqa.py
train_nav.py
315:341 (3%)
232:258 (2%)
view
25 x 2 training
training
train_eqa.py
train_nav.py
315:341 (3%)
439:465 (2%)
view
25 x 2 training
training
train_eqa.py
train_nav.py
315:341 (3%)
646:672 (2%)
view
22 x 2 training
training
train_nav.py
train_nav.py
862:887 (2%)
959:985 (2%)
view
22 x 2 training/utils
training/utils
preprocess_questions.py
preprocess_questions_pkl.py
171:199 (8%)
167:195 (8%)
view
21 x 2 training
training
models.py
models.py
786:809 (2%)
824:847 (2%)
view
21 x 2 training
training
models.py
models.py
632:656 (2%)
671:695 (2%)
view
Duplicated Units
The list of top 9 duplicated units.
See data for all 9 unit duplicates...
Size#FoldersFilesLinesCode
30 x 2 training/utils
training/utils
preprocess_questions.py
preprocess_questions_pkl.py
0:0 
0:0 
view
26 x 2 training
training
models.py
models.py
0:0 
0:0 
view
17 x 2 training/utils
training/utils
preprocess_questions.py
preprocess_questions_pkl.py
0:0 
0:0 
view
14 x 3 data/question-gen
data/question-gen
data/question-gen
entropy_based_filtering.py
sampleForHits.py
entro.py
0:0 
0:0 
0:0 
view
13 x 2 training/utils
training/utils
preprocess_questions.py
preprocess_questions_pkl.py
0:0 
0:0 
view
11 x 2 training
training
models.py
models.py
0:0 
0:0 
view
9 x 2 training/utils
training/utils
preprocess_questions.py
preprocess_questions_pkl.py
0:0 
0:0 
view
9 x 2 training/utils
training/utils
preprocess_questions.py
preprocess_questions_pkl.py
0:0 
0:0 
view
19 x 2 training/utils
training/utils
preprocess_questions.py
preprocess_questions_pkl.py
0:0 
0:0 
view