bazelbuild / bazel-bench
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
  • 10% duplication:
    • 1,367 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 142 duplicated lines
  • 9 duplicates
system10% (142 lines)
Duplication per Extension
py10% (142 lines)
Duplication per Component (primary)
report23% (128 lines)
utils3% (14 lines)
ROOT0% (0 lines)
testutils0% (0 lines)
Longest Duplicates
The list of 9 longest duplicates.
See data for all 9 duplicates...
Size#FoldersFilesLinesCode
23 x 2 report
report
generate_master_report.py
generate_report.py
390:414 (13%)
696:720 (6%)
view
10 x 2 report
report
generate_master_report.py
generate_report.py
347:357 (5%)
621:631 (2%)
view
8 x 2 report
report
generate_master_report.py
generate_report.py
340:347 (4%)
604:611 (2%)
view
7 x 2 report
report
generate_master_report.py
generate_report.py
66:76 (4%)
223:233 (1%)
view
7 x 2 report
report
generate_master_report.py
generate_report.py
86:131 (4%)
263:304 (1%)
view
7 x 2 report
report
generate_report.py
generate_report.py
263:304 (1%)
324:368 (1%)
view
7 x 2 report
report
generate_master_report.py
generate_report.py
86:131 (4%)
324:368 (1%)
view
7 x 2 utils
utils
benchmark_config.py
benchmark_config.py
183:189 (7%)
195:201 (7%)
view
6 x 2 report
report
generate_master_report.py
generate_report.py
47:53 (3%)
52:58 (1%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
6 x 2 report
report
generate_master_report.py
generate_report.py
0:0 
0:0 
view