aws-samples / aws-cms-telemetry-demo
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
  • 13% duplication:
    • 1,371 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 184 duplicated lines
  • 21 duplicates
system13% (184 lines)
Duplication per Extension
py13% (184 lines)
Duplication per Component (primary)
ROOT13% (184 lines)
utils0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 21 duplicates...
Size#FoldersFilesLinesCode
22 x 2 ROOT
ROOT
generateDTC.py
generateTelemetry.py
58:83 (43%)
60:85 (34%)
view
11 x 2 ROOT
ROOT
generateTelemetry.py
test.py
69:79 (17%)
88:98 (10%)
view
11 x 2 ROOT
ROOT
generateDTC.py
test.py
67:77 (21%)
88:98 (10%)
view
9 x 2 ROOT
ROOT
generateDTC.py
generateTelemetry.py
30:45 (17%)
30:45 (14%)
view
8 x 2 ROOT
ROOT
generateTelemetry.py
provisioningHandler.py
32:45 (12%)
89:102 (2%)
view
8 x 2 ROOT
ROOT
generateDTC.py
provisioningHandler.py
32:45 (15%)
89:102 (2%)
view
8 x 2 ROOT
ROOT
provisioningHandler.py
provisioningHandler.py
138:147 (2%)
175:184 (2%)
view
7 x 2 ROOT
ROOT
cmsHandler.py
cmsHandler.py
161:169 (3%)
190:197 (3%)
view
7 x 2 ROOT
ROOT
cmsHandler.py
cmsHandler.py
145:153 (3%)
204:212 (3%)
view
7 x 2 ROOT
ROOT
cmsHandler.py
cmsHandler.py
161:169 (3%)
204:212 (3%)
view
7 x 2 ROOT
ROOT
cmsHandler.py
cmsHandler.py
145:153 (3%)
161:169 (3%)
view
7 x 2 ROOT
ROOT
cmsHandler.py
cmsHandler.py
176:183 (3%)
190:197 (3%)
view
7 x 2 ROOT
ROOT
cmsHandler.py
cmsHandler.py
190:197 (3%)
204:212 (3%)
view
7 x 2 ROOT
ROOT
cmsHandler.py
cmsHandler.py
145:153 (3%)
176:183 (3%)
view
7 x 2 ROOT
ROOT
cmsHandler.py
cmsHandler.py
176:183 (3%)
204:212 (3%)
view
7 x 2 ROOT
ROOT
provisioningHandler.py
test.py
431:438 (2%)
60:67 (6%)
view
7 x 2 ROOT
ROOT
cmsHandler.py
cmsHandler.py
145:153 (3%)
190:197 (3%)
view
7 x 2 ROOT
ROOT
cmsHandler.py
setupSingleVehicle.py
24:30 (3%)
40:46 (4%)
view
7 x 2 ROOT
ROOT
cmsHandler.py
cmsHandler.py
161:169 (3%)
176:183 (3%)
view
6 x 2 ROOT
ROOT
cmsHandler.py
setupSingleVehicle.py
8:13 (3%)
30:35 (4%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
7 x 3 ROOT
ROOT
ROOT
generateTelemetry.py
provisioningHandler.py
generateDTC.py
0:0 
0:0 
0:0 
view