aws-samples / ds-peoplecounter-l4v-workshop
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,856 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 242 duplicated lines
  • 21 duplicates
system13% (242 lines)
Duplication per Extension
py60% (230 lines)
proto4% (12 lines)
Duplication per Component (primary)
lab2/inference_client36% (242 lines)
lab1/deepstream-occupancy-analytics0% (0 lines)
lab1/deepstream-occupancy-analytics/includes0% (0 lines)
lab1/deepstream_plugin0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 21 duplicates...
Size#FoldersFilesLinesCode
39 x 2 lab2/inference_client
lab2/inference_client
sample-client-camera-mqtt.py
sample-client-camera.py
26:66 (45%)
13:56 (75%)
view
27 x 2 lab2/inference_client
lab2/inference_client
sample-client-camera-mqtt.py
sample-client-file-mqtt.py
68:98 (31%)
35:64 (48%)
view
19 x 2 lab2/inference_client
lab2/inference_client
sample-client-file-mqtt.py
sample-client-file.py
22:41 (33%)
12:30 (86%)
view
17 x 2 lab2/inference_client
lab2/inference_client
sample-client-camera.py
sample-client-file.py
48:65 (32%)
15:31 (77%)
view
16 x 2 lab2/inference_client
lab2/inference_client
sample-client-camera.py
sample-client-file-mqtt.py
48:64 (30%)
25:41 (28%)
view
9 x 2 lab2/inference_client
lab2/inference_client
edge_agent_pb2_grpc.py
edge_agent_pb2_grpc.py
204:212 (5%)
272:280 (5%)
view
9 x 2 lab2/inference_client
lab2/inference_client
edge_agent_pb2_grpc.py
edge_agent_pb2_grpc.py
204:212 (5%)
221:229 (5%)
view
9 x 2 lab2/inference_client
lab2/inference_client
edge_agent_pb2_grpc.py
edge_agent_pb2_grpc.py
204:212 (5%)
255:263 (5%)
view
9 x 2 lab2/inference_client
lab2/inference_client
edge_agent_pb2_grpc.py
edge_agent_pb2_grpc.py
204:212 (5%)
238:246 (5%)
view
9 x 2 lab2/inference_client
lab2/inference_client
edge_agent_pb2_grpc.py
edge_agent_pb2_grpc.py
221:229 (5%)
238:246 (5%)
view
9 x 2 lab2/inference_client
lab2/inference_client
edge_agent_pb2_grpc.py
edge_agent_pb2_grpc.py
255:263 (5%)
272:280 (5%)
view
9 x 2 lab2/inference_client
lab2/inference_client
edge_agent_pb2_grpc.py
edge_agent_pb2_grpc.py
238:246 (5%)
255:263 (5%)
view
9 x 2 lab2/inference_client
lab2/inference_client
edge_agent_pb2_grpc.py
edge_agent_pb2_grpc.py
221:229 (5%)
255:263 (5%)
view
9 x 2 lab2/inference_client
lab2/inference_client
edge_agent_pb2_grpc.py
edge_agent_pb2_grpc.py
238:246 (5%)
272:280 (5%)
view
9 x 2 lab2/inference_client
lab2/inference_client
edge_agent_pb2_grpc.py
edge_agent_pb2_grpc.py
221:229 (5%)
272:280 (5%)
view
8 x 2 lab2/inference_client
lab2/inference_client
sample-client-camera-mqtt.py
sample-client-file.py
58:66 (9%)
15:22 (36%)
view
8 x 2 lab2/inference_client
lab2/inference_client
sample-client-camera-mqtt.py
sample-client-file-mqtt.py
58:66 (9%)
25:33 (14%)
view
7 x 2 lab2/inference_client
lab2/inference_client
sample-client-camera-mqtt.py
sample-client-camera.py
68:74 (8%)
58:64 (13%)
view
7 x 2 lab2/inference_client
lab2/inference_client
sample-client-camera-mqtt.py
sample-client-file.py
68:74 (8%)
24:30 (31%)
view
6 x 2 lab2/inference_client
lab2/inference_client
sample-client-camera-mqtt.py
sample-client-file-mqtt.py
100:105 (7%)
66:71 (10%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
6 x 2 lab2/inference_client
lab2/inference_client
sample-client-camera-mqtt.py
sample-client-camera.py
0:0 
0:0 
view