facebookresearch / protein-ebm
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
  • 11% duplication:
    • 3,003 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 354 duplicated lines
  • 22 duplicates
system11% (354 lines)
Duplication per Extension
py11% (354 lines)
Duplication per Component (primary)
ROOT12% (354 lines)
scripts0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 22 duplicates...
Size#FoldersFilesLinesCode
31 x 2 ROOT
ROOT
data.py
data.py
255:287 (9%)
298:330 (9%)
view
22 x 2 ROOT
ROOT
constants.py
vis_sandbox.py
162:183 (12%)
538:559 (3%)
view
16 x 2 ROOT
ROOT
vis_sandbox.py
vis_sandbox.py
690:706 (2%)
713:729 (2%)
view
14 x 2 ROOT
ROOT
data.py
data.py
91:112 (4%)
124:145 (4%)
view
10 x 2 ROOT
ROOT
data.py
data.py
428:440 (3%)
447:459 (3%)
view
8 x 2 ROOT
ROOT
data.py
vis_sandbox.py
20:27 (2%)
34:41 (1%)
view
8 x 2 ROOT
ROOT
train.py
train.py
479:486 (1%)
490:497 (1%)
view
8 x 2 ROOT
ROOT
data.py
data.py
80:89 (2%)
114:123 (2%)
view
8 x 2 ROOT
ROOT
train.py
vis_sandbox.py
636:645 (1%)
778:787 (1%)
view
8 x 2 ROOT
ROOT
train.py
vis_sandbox.py
539:550 (1%)
632:642 (1%)
view
8 x 2 ROOT
ROOT
data.py
vis_sandbox.py
334:343 (2%)
223:232 (1%)
view
7 x 2 ROOT
ROOT
data.py
data.py
300:306 (2%)
309:315 (2%)
view
7 x 2 ROOT
ROOT
data.py
data.py
266:272 (2%)
300:306 (2%)
view
7 x 2 ROOT
ROOT
train.py
vis_sandbox.py
32:42 (1%)
47:53 (1%)
view
7 x 2 ROOT
ROOT
vis_sandbox.py
vis_sandbox.py
400:407 (1%)
440:446 (1%)
view
7 x 2 ROOT
ROOT
data.py
data.py
257:263 (2%)
309:315 (2%)
view
7 x 2 ROOT
ROOT
data.py
data.py
257:263 (2%)
266:272 (2%)
view
7 x 2 ROOT
ROOT
train.py
train.py
252:258 (1%)
621:627 (1%)
view
6 x 2 ROOT
ROOT
vis_sandbox.py
vis_sandbox.py
657:662 (1%)
669:674 (1%)
view
6 x 2 ROOT
ROOT
train.py
train.py
481:486 (1%)
503:508 (1%)
view