tensorflow / nmt
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
  • 5% duplication:
    • 3,364 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 171 duplicated lines
  • 11 duplicates
system5% (171 lines)
Duplication per Extension
py5% (171 lines)
Duplication per Component (primary)
nmt6% (171 lines)
nmt/scripts0% (0 lines)
nmt/utils0% (0 lines)
Longest Duplicates
The list of 11 longest duplicates.
See data for all 11 duplicates...
Size#FoldersFilesLinesCode
15 x 2 nmt
nmt
attention_model.py
gnmt_model.py
91:111 (11%)
182:200 (6%)
view
12 x 2 nmt
nmt
inference.py
inference.py
175:186 (6%)
222:233 (6%)
view
10 x 2 nmt
nmt
gnmt_model.py
gnmt_model.py
112:121 (4%)
138:147 (4%)
view
9 x 2 nmt
nmt
gnmt_model.py
model.py
35:43 (4%)
62:70 (1%)
view
9 x 2 nmt
nmt
attention_model.py
gnmt_model.py
38:46 (7%)
35:43 (4%)
view
9 x 2 nmt
nmt
attention_model.py
model.py
38:46 (7%)
62:70 (1%)
view
8 x 2 nmt
nmt
attention_model.py
gnmt_model.py
57:64 (6%)
48:55 (3%)
view
7 x 2 nmt
nmt
gnmt_model.py
model.py
206:212 (3%)
857:863 (1%)
view
7 x 2 nmt
nmt
train.py
train.py
567:575 (1%)
583:589 (1%)
view
7 x 2 nmt
nmt
inference.py
train.py
89:95 (3%)
441:447 (1%)
view
6 x 2 nmt
nmt
train.py
train.py
224:229 (1%)
311:316 (1%)
view