aws-samples / monitor-ml-models-efficiently-across-fleets-of-devices-aim325
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
  • 38% duplication:
    • 2,198 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 851 duplicated lines
  • 104 duplicates
system38% (851 lines)
Duplication per Extension
py47% (814 lines)
yml7% (37 lines)
Duplication per Component (primary)
lab/app53% (397 lines)
lab/app_ggv285% (397 lines)
setup6% (37 lines)
lab5% (20 lines)
ROOT0% (0 lines)

Duplication Between Components (50+ lines)

G lab/app lab/app lab/app_ggv2 lab/app_ggv2 lab/app--lab/app_ggv2 794

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 20 longest duplicates.
See data for all 104 duplicates...
Size#FoldersFilesLinesCode
220 x 2 lab/app
lab/app_ggv2
agent_pb2_grpc.py
agent_pb2_grpc.py
8:345 (100%)
8:346 (100%)
view
70 x 2 lab/app
lab/app_ggv2
edgeagentclient.py
edgeagentclient.py
11:113 (87%)
11:113 (90%)
view
32 x 2 lab/app
lab/app_ggv2
windfarm.py
windfarm.py
63:115 (25%)
65:117 (24%)
view
11 x 2 lab/app
lab
windfarm.py
preprocessing.py
81:94 (8%)
38:51 (14%)
view
11 x 2 lab/app
lab/app_ggv2
turbine.py
turbine.py
96:109 (13%)
40:53 (33%)
view
11 x 2 lab/app_ggv2
lab
windfarm.py
preprocessing.py
83:96 (8%)
38:51 (14%)
view
10 x 2 lab/app
lab/app_ggv2
windfarm.py
windfarm.py
117:131 (7%)
124:138 (7%)
view
9 x 2 lab/app
lab/app
agent_pb2_grpc.py
agent_pb2_grpc.py
230:238 (4%)
247:255 (4%)
view
9 x 2 lab/app
lab/app
agent_pb2_grpc.py
agent_pb2_grpc.py
230:238 (4%)
264:272 (4%)
view
9 x 2 lab/app_ggv2
lab/app_ggv2
agent_pb2_grpc.py
agent_pb2_grpc.py
248:256 (4%)
299:307 (4%)
view
9 x 2 lab/app_ggv2
lab/app_ggv2
agent_pb2_grpc.py
agent_pb2_grpc.py
248:256 (4%)
265:273 (4%)
view
9 x 2 lab/app
lab/app_ggv2
agent_pb2_grpc.py
agent_pb2_grpc.py
264:272 (4%)
248:256 (4%)
view
9 x 2 lab/app_ggv2
lab/app_ggv2
agent_pb2_grpc.py
agent_pb2_grpc.py
248:256 (4%)
282:290 (4%)
view
9 x 2 lab/app
lab/app
agent_pb2_grpc.py
agent_pb2_grpc.py
230:238 (4%)
281:289 (4%)
view
9 x 2 lab/app
lab/app
agent_pb2_grpc.py
agent_pb2_grpc.py
247:255 (4%)
264:272 (4%)
view
9 x 2 lab/app
lab/app_ggv2
agent_pb2_grpc.py
agent_pb2_grpc.py
264:272 (4%)
231:239 (4%)
view
9 x 2 lab/app_ggv2
lab/app_ggv2
agent_pb2_grpc.py
agent_pb2_grpc.py
265:273 (4%)
316:324 (4%)
view
9 x 2 lab/app
lab/app_ggv2
agent_pb2_grpc.py
agent_pb2_grpc.py
230:238 (4%)
316:324 (4%)
view
9 x 2 lab/app
lab/app
agent_pb2_grpc.py
agent_pb2_grpc.py
230:238 (4%)
298:306 (4%)
view
9 x 2 lab/app
lab/app_ggv2
agent_pb2_grpc.py
agent_pb2_grpc.py
247:255 (4%)
333:341 (4%)
view
Duplicated Units
The list of top 20 duplicated units.
See data for all 25 unit duplicates...
Size#FoldersFilesLinesCode
40 x 2 lab/app
lab/app_ggv2
agent_pb2_grpc.py
agent_pb2_grpc.py
0:0 
0:0 
view
39 x 2 lab/app
lab/app_ggv2
agent_pb2_grpc.py
agent_pb2_grpc.py
0:0 
0:0 
view
31 x 2 lab/app
lab/app_ggv2
edgeagentclient.py
edgeagentclient.py
0:0 
0:0 
view
14 x 2 lab/app
lab/app_ggv2
agent_pb2_grpc.py
agent_pb2_grpc.py
0:0 
0:0 
view
14 x 2 lab/app
lab/app_ggv2
agent_pb2_grpc.py
agent_pb2_grpc.py
0:0 
0:0 
view
14 x 2 lab/app
lab/app_ggv2
agent_pb2_grpc.py
agent_pb2_grpc.py
0:0 
0:0 
view
14 x 2 lab/app
lab/app_ggv2
agent_pb2_grpc.py
agent_pb2_grpc.py
0:0 
0:0 
view
14 x 2 lab/app
lab/app_ggv2
agent_pb2_grpc.py
agent_pb2_grpc.py
0:0 
0:0 
view
14 x 2 lab/app
lab/app_ggv2
agent_pb2_grpc.py
agent_pb2_grpc.py
0:0 
0:0 
view
14 x 2 lab/app
lab/app_ggv2
agent_pb2_grpc.py
agent_pb2_grpc.py
0:0 
0:0 
view
13 x 2 lab/app
lab/app_ggv2
edgeagentclient.py
edgeagentclient.py
0:0 
0:0 
view
17 x 3 lab
lab/app
lab/app_ggv2
preprocessing.py
windfarm.py
windfarm.py
0:0 
0:0 
0:0 
view
11 x 2 lab/app
lab/app_ggv2
windfarm.py
windfarm.py
0:0 
0:0 
view
14 x 2 lab/app
lab/app_ggv2
windfarm.py
windfarm.py
0:0 
0:0 
view
9 x 2 lab/app
lab/app_ggv2
edgeagentclient.py
edgeagentclient.py
0:0 
0:0 
view
8 x 2 lab/app
lab/app_ggv2
edgeagentclient.py
edgeagentclient.py
0:0 
0:0 
view
8 x 2 lab/app
lab/app_ggv2
simulator.py
windfarm.py
0:0 
0:0 
view
9 x 2 lab/app
lab/app_ggv2
windfarm.py
windfarm.py
0:0 
0:0 
view
6 x 2 lab/app
lab/app_ggv2
turbine.py
turbine.py
0:0 
0:0 
view
25 x 2 lab/app
lab/app_ggv2
agent_pb2_grpc.py
agent_pb2_grpc.py
0:0 
0:0 
view