awslabs / damo
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
  • 7% duplication:
    • 2,029 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 146 duplicated lines
  • 12 duplicates
system7% (146 lines)
Duplication per Extension
py7% (146 lines)
Duplication per Component (primary)
ROOT7% (146 lines)
packaging0% (0 lines)
Longest Duplicates
The list of 12 longest duplicates.
See data for all 12 duplicates...
Size#FoldersFilesLinesCode
9 x 2 ROOT
ROOT
record.py
schemes.py
103:113 (6%)
59:69 (9%)
view
8 x 2 ROOT
ROOT
record.py
schemes.py
83:90 (5%)
51:58 (8%)
view
8 x 2 ROOT
ROOT
bin2txt.py
wss.py
18:27 (13%)
97:106 (6%)
view
7 x 2 ROOT
ROOT
_damon_result.py
_damon_result.py
82:88 (2%)
143:149 (2%)
view
7 x 2 ROOT
ROOT
record.py
schemes.py
58:65 (4%)
40:48 (7%)
view
7 x 2 ROOT
ROOT
record.py
schemes.py
42:48 (4%)
32:38 (7%)
view
6 x 2 ROOT
ROOT
record.py
schemes.py
135:141 (4%)
78:84 (6%)
view
6 x 2 ROOT
ROOT
monitor.py
reclaim.py
56:62 (6%)
91:97 (6%)
view
6 x 2 ROOT
ROOT
adjust.py
wss.py
57:63 (10%)
100:106 (5%)
view
6 x 2 ROOT
ROOT
record.py
schemes.py
29:35 (4%)
19:25 (6%)
view
6 x 2 ROOT
ROOT
nr_regions.py
wss.py
13:18 (9%)
70:75 (5%)
view
6 x 2 ROOT
ROOT
adjust.py
bin2txt.py
57:63 (10%)
21:27 (9%)
view