amazon-research / minimax-fair
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
  • 4% duplication:
    • 1,645 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 66 duplicated lines
  • 5 duplicates
system4% (66 lines)
Duplication per Extension
py4% (66 lines)
Duplication per Component (primary)
src4% (52 lines)
ROOT3% (14 lines)
Longest Duplicates
The list of 5 longest duplicates.
See data for all 5 duplicates...
Size#FoldersFilesLinesCode
7 x 2 ROOT
ROOT
main_driver.py
main_driver.py
232:239 (2%)
277:284 (2%)
view
7 x 2 src
src
plot_relaxed_pareto.py
plot_relaxed_pareto.py
69:77 (3%)
139:147 (3%)
view
7 x 2 src
src
plotting.py
plotting.py
96:103 (6%)
135:142 (6%)
view
6 x 2 src
src
minmaxML.py
minmaxML.py
569:575 (1%)
585:591 (1%)
view
6 x 2 src
src
plot_relaxed_pareto.py
plot_relaxed_pareto.py
60:66 (3%)
129:136 (3%)
view