aws-samples / amazon-sagemaker-edge-manager-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
  • 10% duplication:
    • 957 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 97 duplicated lines
  • 23 duplicates
system10% (97 lines)
Duplication per Extension
py11% (97 lines)
Duplication per Component (primary)
04_EdgeApplication/turbine10% (63 lines)
04_EdgeApplication/report30% (34 lines)
02_Firmware/windturbine0% (0 lines)
04_EdgeApplication0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 23 duplicates...
Size#FoldersFilesLinesCode
11 x 2 04_EdgeApplication/report
04_EdgeApplication/report
lambda_ingest_logs_cloudwatch.py
lambda_ingest_logs_elasticsearch.py
30:43 (23%)
73:86 (17%)
view
9 x 2 04_EdgeApplication/turbine
04_EdgeApplication/turbine
agent_pb2_grpc.py
agent_pb2_grpc.py
315:323 (4%)
332:340 (4%)
view
9 x 2 04_EdgeApplication/turbine
04_EdgeApplication/turbine
agent_pb2_grpc.py
agent_pb2_grpc.py
247:255 (4%)
281:289 (4%)
view
9 x 2 04_EdgeApplication/turbine
04_EdgeApplication/turbine
agent_pb2_grpc.py
agent_pb2_grpc.py
298:306 (4%)
315:323 (4%)
view
9 x 2 04_EdgeApplication/turbine
04_EdgeApplication/turbine
agent_pb2_grpc.py
agent_pb2_grpc.py
264:272 (4%)
315:323 (4%)
view
9 x 2 04_EdgeApplication/turbine
04_EdgeApplication/turbine
agent_pb2_grpc.py
agent_pb2_grpc.py
230:238 (4%)
315:323 (4%)
view
9 x 2 04_EdgeApplication/turbine
04_EdgeApplication/turbine
agent_pb2_grpc.py
agent_pb2_grpc.py
247:255 (4%)
315:323 (4%)
view
9 x 2 04_EdgeApplication/turbine
04_EdgeApplication/turbine
agent_pb2_grpc.py
agent_pb2_grpc.py
264:272 (4%)
281:289 (4%)
view
9 x 2 04_EdgeApplication/turbine
04_EdgeApplication/turbine
agent_pb2_grpc.py
agent_pb2_grpc.py
281:289 (4%)
332:340 (4%)
view
9 x 2 04_EdgeApplication/turbine
04_EdgeApplication/turbine
agent_pb2_grpc.py
agent_pb2_grpc.py
247:255 (4%)
264:272 (4%)
view
9 x 2 04_EdgeApplication/turbine
04_EdgeApplication/turbine
agent_pb2_grpc.py
agent_pb2_grpc.py
230:238 (4%)
264:272 (4%)
view
9 x 2 04_EdgeApplication/turbine
04_EdgeApplication/turbine
agent_pb2_grpc.py
agent_pb2_grpc.py
230:238 (4%)
247:255 (4%)
view
9 x 2 04_EdgeApplication/turbine
04_EdgeApplication/turbine
agent_pb2_grpc.py
agent_pb2_grpc.py
298:306 (4%)
332:340 (4%)
view
9 x 2 04_EdgeApplication/turbine
04_EdgeApplication/turbine
agent_pb2_grpc.py
agent_pb2_grpc.py
264:272 (4%)
332:340 (4%)
view
9 x 2 04_EdgeApplication/turbine
04_EdgeApplication/turbine
agent_pb2_grpc.py
agent_pb2_grpc.py
230:238 (4%)
332:340 (4%)
view
9 x 2 04_EdgeApplication/turbine
04_EdgeApplication/turbine
agent_pb2_grpc.py
agent_pb2_grpc.py
264:272 (4%)
298:306 (4%)
view
9 x 2 04_EdgeApplication/turbine
04_EdgeApplication/turbine
agent_pb2_grpc.py
agent_pb2_grpc.py
247:255 (4%)
298:306 (4%)
view
9 x 2 04_EdgeApplication/turbine
04_EdgeApplication/turbine
agent_pb2_grpc.py
agent_pb2_grpc.py
230:238 (4%)
298:306 (4%)
view
9 x 2 04_EdgeApplication/turbine
04_EdgeApplication/turbine
agent_pb2_grpc.py
agent_pb2_grpc.py
281:289 (4%)
298:306 (4%)
view
9 x 2 04_EdgeApplication/turbine
04_EdgeApplication/turbine
agent_pb2_grpc.py
agent_pb2_grpc.py
281:289 (4%)
315:323 (4%)
view