amazon-research / multiatis
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
  • 69% duplication:
    • 2,458 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 1,697 duplicated lines
  • 270 duplicates
system69% (1,697 lines)
Duplication per Extension
py76% (1,697 lines)
Duplication per Component (primary)
scripts69% (1,697 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 270 duplicates...
Size#FoldersFilesLinesCode
231 x 2 code/scripts
code/scripts
bert_alone.py
bert_joint.py
33:345 (84%)
33:345 (90%)
view
225 x 2 code/scripts
code/scripts
lstm_alone.py
lstm_joint.py
33:342 (84%)
33:342 (90%)
view
98 x 2 code/scripts
code/scripts
bert_alone.py
bert_mt.py
227:345 (36%)
221:340 (39%)
view
98 x 2 code/scripts
code/scripts
bert_joint.py
bert_mt.py
227:345 (38%)
221:340 (39%)
view
98 x 2 code/scripts
code/scripts
lstm_alone.py
lstm_mt.py
223:342 (36%)
216:334 (40%)
view
98 x 2 code/scripts
code/scripts
lstm_joint.py
lstm_mt.py
223:342 (39%)
216:334 (40%)
view
88 x 2 code/scripts
code/scripts
bert_mt.py
bert_soft_align.py
238:344 (35%)
377:482 (25%)
view
86 x 2 code/scripts
code/scripts
bert_joint.py
bert_soft_align.py
244:345 (33%)
377:479 (25%)
view
86 x 2 code/scripts
code/scripts
bert_alone.py
bert_soft_align.py
244:345 (31%)
377:479 (25%)
view
55 x 2 code/scripts
code/scripts
bert_alone.py
bert_mt.py
95:166 (20%)
95:166 (22%)
view
55 x 2 code/scripts
code/scripts
bert_joint.py
bert_mt.py
95:166 (21%)
95:166 (22%)
view
52 x 2 code/scripts
code/scripts
lstm_joint.py
lstm_mt.py
93:160 (20%)
93:160 (21%)
view
52 x 2 code/scripts
code/scripts
lstm_alone.py
lstm_mt.py
93:160 (19%)
93:160 (21%)
view
50 x 2 code/scripts
code/scripts
bert_mt.py
bert_soft_align.py
173:236 (20%)
312:375 (14%)
view
44 x 2 code/scripts
code/scripts
bert_alone.py
lstm_alone.py
298:348 (16%)
294:346 (16%)
view
44 x 2 code/scripts
code/scripts
bert_mt.py
lstm_mt.py
292:344 (17%)
287:338 (18%)
view
44 x 2 code/scripts
code/scripts
bert_joint.py
lstm_joint.py
187:242 (17%)
181:238 (17%)
view
44 x 2 code/scripts
code/scripts
bert_joint.py
lstm_alone.py
187:242 (17%)
181:238 (16%)
view
44 x 2 code/scripts
code/scripts
bert_alone.py
lstm_alone.py
187:242 (16%)
181:238 (16%)
view
44 x 2 code/scripts
code/scripts
bert_soft_align.py
lstm_mt.py
431:482 (12%)
287:338 (18%)
view
Duplicated Units
The list of top 8 duplicated units.
See data for all 8 unit duplicates...
Size#FoldersFilesLinesCode
120 x 2 code/scripts
code/scripts
bert_alone.py
bert_joint.py
0:0 
0:0 
view
116 x 2 code/scripts
code/scripts
lstm_joint.py
lstm_alone.py
0:0 
0:0 
view
100 x 3 code/scripts
code/scripts
code/scripts
bert_mt.py
bert_alone.py
bert_joint.py
0:0 
0:0 
0:0 
view
100 x 3 code/scripts
code/scripts
code/scripts
lstm_joint.py
lstm_alone.py
lstm_mt.py
0:0 
0:0 
0:0 
view
11 x 3 code/scripts
code/scripts
code/scripts
bert_mt.py
bert_alone.py
bert_joint.py
0:0 
0:0 
0:0 
view
12 x 3 code/scripts
code/scripts
code/scripts
lstm_joint.py
lstm_alone.py
lstm_mt.py
0:0 
0:0 
0:0 
view
23 x 3 code/scripts
code/scripts
code/scripts
lstm_joint.py
lstm_alone.py
lstm_mt.py
0:0 
0:0 
0:0 
view
20 x 4 code/scripts
code/scripts
code/scripts
code/scripts
bert_mt.py
bert_alone.py
bert_joint.py
bert_soft_align.py
0:0 
0:0 
0:0 
0:0 
view