aws-samples / aws-iot-sitewise-tools
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
  • 17% duplication:
    • 471 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 84 duplicated lines
  • 7 duplicates
system17% (84 lines)
Duplication per Extension
py18% (84 lines)
Duplication per Component (primary)
sitewise_monitor_dashboard_replicator29% (69 lines)
sitewise_export_tools6% (15 lines)
Longest Duplicates
The list of 7 longest duplicates.
See data for all 7 duplicates...
Size#FoldersFilesLinesCode
8 x 2 sitewise_monitor_dashboard_replicator
sitewise_monitor_dashboard_replicator
sitewise_dashboard_copy.py
sitewise_dashboard_replicator.py
40:48 (11%)
45:53 (4%)
view
8 x 2 sitewise_export_tools
sitewise_monitor_dashboard_replicator
asset_model_exporter.py
sitewise_dashboard_replicator.py
19:28 (6%)
20:29 (4%)
view
8 x 2 sitewise_export_tools
sitewise_monitor_dashboard_replicator
asset_model_exporter.py
sitewise_dashboard_copy.py
19:28 (6%)
21:30 (11%)
view
8 x 2 sitewise_monitor_dashboard_replicator
sitewise_monitor_dashboard_replicator
sitewise_dashboard_copy.py
sitewise_dashboard_replicator.py
51:59 (11%)
56:64 (4%)
view
8 x 2 sitewise_monitor_dashboard_replicator
sitewise_monitor_dashboard_replicator
sitewise_dashboard_copy.py
sitewise_dashboard_replicator.py
21:30 (11%)
20:29 (4%)
view
7 x 2 sitewise_monitor_dashboard_replicator
sitewise_monitor_dashboard_replicator
sitewise_dashboard_copy.py
sitewise_dashboard_replicator.py
32:38 (9%)
37:43 (4%)
view
7 x 2 sitewise_export_tools
sitewise_monitor_dashboard_replicator
asset_model_exporter.py
sitewise_dashboard_replicator.py
57:63 (5%)
77:83 (4%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
6 x 2 sitewise_monitor_dashboard_replicator
sitewise_export_tools
sitewise_dashboard_replicator.py
asset_model_exporter.py
0:0 
0:0 
view