pytorch / botorch
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
  • 15% duplication:
    • 20,736 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 3,127 duplicated lines
  • 725 duplicates
system15% (3,127 lines)
Duplication per Extension
py12% (2,079 lines)
ipynb41% (1,036 lines)
css<1% (12 lines)
Duplication per Component (primary)
tutorials41% (1,036 lines)
botorch/models17% (896 lines)
botorch/acquisition15% (700 lines)
botorch/optim9% (150 lines)
botorch/utils5% (147 lines)
botorch/posteriors13% (94 lines)
botorch/sampling25% (78 lines)
botorch/generation3% (14 lines)
website/static<1% (12 lines)
ROOT0% (0 lines)
website/core0% (0 lines)
website0% (0 lines)
website/pages0% (0 lines)
sphinx/source0% (0 lines)
scripts0% (0 lines)
botorch0% (0 lines)
botorch/exceptions0% (0 lines)
Longest Duplicates
The list of 50 longest duplicates.
See data for all 725 duplicates...
Size#FoldersFilesLinesCode
28 x 2 botorch/models/kernels
botorch/models/kernels
73:106 (35%)
78:112 (39%)
view
25 x 2 tutorials
tutorials
602:626 (3%)
289:313 (7%)
view
22 x 2 botorch/sampling
botorch/sampling
149:211 (14%)
227:290 (14%)
view
21 x 2 botorch/models/kernels
botorch/models/kernels
46:70 (26%)
51:75 (29%)
view
19 x 2 tutorials
tutorials
348:366 (5%)
602:620 (3%)
view
19 x 2 tutorials
tutorials
348:366 (5%)
289:307 (6%)
view
17 x 2 botorch/models
botorch/models
97:114 (8%)
207:223 (8%)
view
17 x 2 botorch/models
botorch/models
116:140 (8%)
225:249 (8%)
view
15 x 2 tutorials
tutorials
352:366 (4%)
322:336 (4%)
view
15 x 2 botorch/acquisition
botorch/acquisition
859:874 (2%)
890:904 (2%)
view
15 x 2 botorch/utils/multi_objective/box_decompositions
botorch/utils/multi_objective/box_decompositions
223:252 (8%)
291:319 (8%)
view
15 x 2 tutorials
tutorials
322:336 (4%)
606:620 (2%)
view
15 x 2 botorch/acquisition
botorch/acquisition
73:113 (4%)
203:241 (4%)
view
15 x 2 tutorials
tutorials
322:336 (4%)
293:307 (4%)
view
14 x 2 botorch/models/transforms
botorch/models/transforms
331:365 (2%)
488:518 (2%)
view
14 x 2 botorch/models
botorch/models
106:119 (5%)
199:213 (3%)
view
13 x 2 botorch/acquisition
botorch/acquisition
829:843 (1%)
910:924 (1%)
view
12 x 2 botorch/models
botorch/models
339:350 (3%)
201:212 (3%)
view
12 x 2 botorch/acquisition
botorch/acquisition
298:324 (3%)
650:678 (3%)
view
12 x 2 tutorials
tutorials
209:220 (5%)
136:147 (8%)
view
12 x 2 botorch/models
botorch/models
339:350 (3%)
107:118 (5%)
view
11 x 2 botorch/posteriors
botorch/posteriors
65:91 (26%)
65:87 (9%)
view
11 x 2 botorch/acquisition
botorch/acquisition
392:420 (1%)
444:479 (1%)
view
11 x 2 botorch/models/transforms
botorch/models/transforms
438:449 (3%)
567:578 (3%)
view
11 x 2 botorch/acquisition
botorch/acquisition
392:420 (1%)
501:535 (1%)
view
11 x 2 botorch/acquisition
botorch/acquisition
444:479 (1%)
556:585 (1%)
view
11 x 2 botorch/acquisition
botorch/acquisition
57:77 (3%)
320:339 (3%)
view
11 x 2 botorch/acquisition
botorch/acquisition
392:420 (1%)
556:585 (1%)
view
11 x 2 botorch/sampling
botorch/sampling
76:86 (16%)
97:107 (16%)
view
11 x 2 botorch/acquisition
botorch/acquisition
145:155 (3%)
77:87 (4%)
view
11 x 2 tutorials
tutorials
154:164 (5%)
75:85 (7%)
view
11 x 2 botorch/acquisition
botorch/acquisition
444:479 (1%)
501:535 (1%)
view
11 x 2 botorch/acquisition
botorch/acquisition
501:535 (1%)
556:585 (1%)
view
11 x 2 botorch/acquisition
botorch/acquisition
134:144 (3%)
122:132 (3%)
view
11 x 2 botorch/models/transforms
botorch/models/transforms
472:483 (3%)
601:612 (3%)
view
11 x 2 tutorials
tutorials
156:166 (3%)
81:91 (3%)
view
10 x 2 tutorials
tutorials
97:106 (2%)
147:156 (3%)
view
10 x 2 botorch/models
botorch/models
374:383 (1%)
417:426 (1%)
view
10 x 2 tutorials
tutorials
208:217 (1%)
458:467 (1%)
view
10 x 2 botorch/models/transforms
botorch/models/transforms
399:415 (3%)
528:544 (3%)
view
10 x 2 botorch/utils
botorch/utils
232:256 (2%)
271:295 (2%)
view
10 x 2 tutorials
tutorials
242:251 (2%)
269:278 (3%)
view
10 x 2 botorch/acquisition
botorch/acquisition
133:158 (3%)
412:441 (3%)
view
10 x 2 tutorials
tutorials
87:96 (4%)
23:32 (6%)
view
10 x 2 botorch/optim
botorch/optim
297:308 (2%)
400:411 (2%)
view
10 x 2 tutorials
tutorials
116:125 (4%)
47:56 (6%)
view
10 x 2 tutorials
tutorials
97:106 (2%)
251:260 (2%)
view
10 x 2 botorch/models/kernels
botorch/models/kernels
82:93 (12%)
170:181 (7%)
view
10 x 2 botorch/models/kernels
botorch/models/kernels
88:99 (14%)
170:181 (7%)
view
10 x 2 botorch/acquisition
botorch/acquisition
132:157 (3%)
214:252 (3%)
view