facebookresearch / esm
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
  • 9% duplication:
    • 2,034 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 202 duplicated lines
  • 20 duplicates
system9% (202 lines)
Duplication per Extension
py9% (202 lines)
Duplication per Component (primary)
esm10% (182 lines)
variant-prediction11% (20 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 20 duplicates...
Size#FoldersFilesLinesCode
13 x 2 esm
esm
axial_attention.py
axial_attention.py
14:26 (6%)
136:149 (6%)
view
11 x 2 esm
esm
model.py
model.py
50:61 (3%)
269:281 (3%)
view
10 x 2 variant-prediction
variant-prediction
predict.py
predict.py
180:189 (5%)
201:210 (5%)
view
10 x 2 esm
esm
model.py
model.py
82:92 (2%)
307:317 (2%)
view
8 x 2 esm
esm
multihead_attention.py
multihead_attention.py
262:269 (2%)
336:343 (2%)
view
7 x 2 esm
esm
model.py
model.py
194:203 (2%)
403:412 (2%)
view
7 x 2 esm
esm
model.py
model.py
141:149 (2%)
355:363 (2%)
view
7 x 2 esm
esm
axial_attention.py
axial_attention.py
113:119 (3%)
224:230 (3%)
view
7 x 2 esm
esm
axial_attention.py
axial_attention.py
40:46 (3%)
158:164 (3%)
view
6 x 2 esm
esm
axial_attention.py
axial_attention.py
41:46 (3%)
225:230 (3%)
view
6 x 2 esm
esm
axial_attention.py
axial_attention.py
159:164 (3%)
183:188 (3%)
view
6 x 2 esm
esm
model.py
model.py
40:45 (1%)
232:237 (1%)
view
6 x 2 esm
esm
axial_attention.py
axial_attention.py
159:164 (3%)
225:230 (3%)
view
6 x 2 esm
esm
data.py
data.py
264:269 (1%)
307:312 (1%)
view
6 x 2 esm
esm
axial_attention.py
axial_attention.py
41:46 (3%)
183:188 (3%)
view
6 x 2 esm
esm
axial_attention.py
axial_attention.py
183:188 (3%)
225:230 (3%)
view
6 x 2 esm
esm
model.py
model.py
103:108 (1%)
324:329 (1%)
view
6 x 2 esm
esm
axial_attention.py
axial_attention.py
114:119 (3%)
159:164 (3%)
view
6 x 2 esm
esm
axial_attention.py
axial_attention.py
114:119 (3%)
183:188 (3%)
view
6 x 2 esm
esm
axial_attention.py
axial_attention.py
41:46 (3%)
114:119 (3%)
view