facebookresearch / SEAL_OGB
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
  • 20% duplication:
    • 1,094 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 224 duplicated lines
  • 19 duplicates
system20% (224 lines)
Duplication per Extension
py20% (224 lines)
Duplication per Component (primary)
ROOT20% (224 lines)
Longest Duplicates
The list of 19 longest duplicates.
See data for all 19 duplicates...
Size#FoldersFilesLinesCode
18 x 2 ROOT
ROOT
models.py
models.py
35:54 (7%)
95:114 (7%)
view
14 x 2 ROOT
ROOT
models.py
models.py
59:73 (5%)
119:133 (5%)
view
11 x 2 ROOT
ROOT
models.py
models.py
43:53 (4%)
187:197 (4%)
view
11 x 2 ROOT
ROOT
models.py
models.py
103:113 (4%)
264:274 (4%)
view
11 x 2 ROOT
ROOT
utils.py
utils.py
76:90 (4%)
121:135 (4%)
view
11 x 2 ROOT
ROOT
models.py
models.py
43:53 (4%)
264:274 (4%)
view
11 x 2 ROOT
ROOT
models.py
models.py
187:197 (4%)
264:274 (4%)
view
11 x 2 ROOT
ROOT
models.py
models.py
103:113 (4%)
187:197 (4%)
view
10 x 2 ROOT
ROOT
models.py
models.py
20:30 (4%)
80:90 (4%)
view
8 x 2 ROOT
ROOT
seal_link_pred.py
seal_link_pred.py
69:77 (1%)
122:130 (1%)
view
8 x 2 ROOT
ROOT
seal_link_pred.py
seal_link_pred.py
224:231 (1%)
239:246 (1%)
view
8 x 2 ROOT
ROOT
models.py
models.py
22:30 (3%)
159:167 (3%)
view
8 x 2 ROOT
ROOT
models.py
models.py
82:90 (3%)
159:167 (3%)
view
7 x 2 ROOT
ROOT
seal_link_pred.py
seal_link_pred.py
183:189 (1%)
196:202 (1%)
view
6 x 2 ROOT
ROOT
seal_link_pred.py
seal_link_pred.py
540:545 (1%)
554:559 (1%)
view
6 x 2 ROOT
ROOT
seal_link_pred.py
seal_link_pred.py
506:511 (1%)
540:545 (1%)
view
6 x 2 ROOT
ROOT
seal_link_pred.py
seal_link_pred.py
482:487 (1%)
697:702 (1%)
view
6 x 2 ROOT
ROOT
seal_link_pred.py
seal_link_pred.py
506:511 (1%)
554:559 (1%)
view
6 x 2 ROOT
ROOT
seal_link_pred.py
seal_link_pred.py
653:658 (1%)
683:688 (1%)
view