facebookresearch / alebo
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
  • 24% duplication:
    • 2,394 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 583 duplicated lines
  • 54 duplicates
system24% (583 lines)
Duplication per Extension
py18% (394 lines)
R83% (189 lines)
Duplication per Component (primary)
benchmarks31% (403 lines)
figs17% (180 lines)
benchmarks/data0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 54 duplicates...
Size#FoldersFilesLinesCode
67 x 2 benchmarks
benchmarks
run_rrembo_benchmarks.R
run_rrembo_benchmarks.R
41:119 (29%)
145:224 (29%)
view
31 x 2 benchmarks
benchmarks
run_rrembo_benchmarks.R
run_rrembo_benchmarks.R
143:178 (13%)
248:283 (13%)
view
30 x 2 benchmarks
benchmarks
run_rrembo_benchmarks.R
run_rrembo_benchmarks.R
41:74 (13%)
250:283 (13%)
view
19 x 2 figs
figs
fig_5.py
fig_S7.py
17:37 (15%)
22:42 (15%)
view
17 x 2 benchmarks
benchmarks
run_cmaes_benchmarks.py
run_turbo_benchmarks.py
11:38 (28%)
13:41 (31%)
view
16 x 2 figs
figs
fig_5.py
fig_5.py
48:65 (12%)
142:159 (12%)
view
12 x 2 figs
figs
fig_4.py
fig_S5.py
107:118 (11%)
19:30 (37%)
view
10 x 2 benchmarks
benchmarks
run_smac_benchmarks.py
run_turbo_benchmarks.py
80:90 (11%)
31:41 (18%)
view
10 x 2 benchmarks
benchmarks
run_cmaes_benchmarks.py
run_smac_benchmarks.py
28:38 (16%)
80:90 (11%)
view
10 x 2 benchmarks
benchmarks
benchmark_problems.py
benchmark_problems.py
43:52 (4%)
209:218 (4%)
view
10 x 2 benchmarks
benchmarks
benchmark_problems.py
benchmark_problems.py
39:48 (4%)
63:72 (4%)
view
9 x 2 figs
figs
fig_S7.py
fig_S7.py
75:83 (7%)
146:154 (7%)
view
9 x 2 benchmarks
benchmarks
run_rrembo_benchmarks.R
run_rrembo_benchmarks.R
64:72 (3%)
95:103 (3%)
view
9 x 2 benchmarks
benchmarks
run_rrembo_benchmarks.R
run_rrembo_benchmarks.R
154:162 (3%)
186:194 (3%)
view
9 x 2 benchmarks
benchmarks
run_rrembo_benchmarks.R
run_rrembo_benchmarks.R
50:58 (3%)
186:194 (3%)
view
9 x 2 benchmarks
benchmarks
run_rrembo_benchmarks.R
run_rrembo_benchmarks.R
50:58 (3%)
81:89 (3%)
view
9 x 2 figs
figs
fig_3.py
fig_S2.py
152:160 (7%)
19:27 (19%)
view
9 x 2 figs
figs
fig_S7.py
fig_S7.py
75:83 (7%)
120:128 (7%)
view
9 x 2 figs
figs
fig_S7.py
fig_S7.py
120:128 (7%)
146:154 (7%)
view
9 x 2 benchmarks
benchmarks
run_rrembo_benchmarks.R
run_rrembo_benchmarks.R
81:89 (3%)
154:162 (3%)
view