Duplication Overall
  • 10% duplication:
    • 11,474 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 1,237 duplicated lines
  • 82 duplicates
system10% (1,237 lines)
dependency graphs: 2D graph | 2D graph (with duplicates)... | 3D graph | 3D graph (with duplicates)...
Duplication per Extension
py10% (1,207 lines)
yaml6% (30 lines)
Duplication per Component (primary)
merchant-agent14% (590 lines)
shopping-agent18% (495 lines)
scripts3% (78 lines)
ROOT8% (50 lines)
commerce-common1% (24 lines)

Duplication Between Components (50+ lines)

flowchart TB
    n0["merchant-agent"]
    n1["shopping-agent"]
    n2["ROOT"]
    n0 ---|"860"| n1
    n2 ---|"107"| n0
    classDef default fill:#00b2ee,stroke:#ffffff,color:#000000;
    classDef highlighted fill:#00b2ee,stroke:#ffffff,color:#000000;
    linkStyle 0 stroke:#DC143CFF,stroke-width:10px
    linkStyle 1 stroke:#DC143C5E,stroke-width:1px



2D force graph | 3D force graph

Show more details on duplication between components...
From Component
 --> To Component
Duplicated
Lines
File Pairs Details
merchant-agent (10%)
  --> shopping-agent (16%)
860 12 file pairs details...
ROOT (8%)
  --> merchant-agent (1%)
107 2 file pairs details...

Longest Duplicates
The list of 50 longest duplicates.
See data for all 82 duplicates...
Size#FoldersFilesLinesCode
64 x 2 merchant-agent/runtime-m.../merchant_agent_runtime
shopping-agent/runtime-m.../shopping_agent_runtime
194:269 (25%)
164:239 (29%)
view
29 x 2 merchant-agent/runtime-m.../merchant_agent_runtime
shopping-agent/runtime-m.../shopping_agent_runtime
33:78 (11%)
30:72 (13%)
view
19 x 2 merchant-agent/runtime-m.../merchant_agent_runtime
shopping-agent/runtime-m.../shopping_agent_runtime
308:326 (7%)
250:268 (8%)
view
17 x 2 merchant-agent/core/merchant_agent/tools
shopping-agent/core/shopping_agent/tools
504:520 (2%)
283:299 (2%)
view
17 x 2 merchant-agent/core/merchant_agent/tools
shopping-agent/core/shopping_agent/tools
534:550 (2%)
315:331 (2%)
view
17 x 2 merchant-agent/runtime-agent-sdk
shopping-agent/runtime-agent-sdk
28:49 (18%)
25:46 (36%)
view
15 x 2 merchant-agent/core/merchant_agent/tools
shopping-agent/core/shopping_agent/tools
114:129 (2%)
89:103 (2%)
view
11 x 2 merchant-agent/core/merchant_agent/tools
shopping-agent/core/shopping_agent/tools
697:708 (1%)
600:611 (1%)
view
11 x 2 merchant-agent/runtime-a...-sdk/merchant_agent_sdk
shopping-agent/runtime-a...-sdk/shopping_agent_sdk
53:63 (25%)
47:57 (29%)
view
10 x 2 merchant-agent/core/merchant_agent/tools
shopping-agent/core/shopping_agent/tools
685:694 (1%)
588:597 (1%)
view
10 x 2 ROOT
merchant-agent/core/merchant_agent
31:40 (1%)
32:41 (16%)
view
9 x 2 merchant-agent/core/merchant_agent/tools
merchant-agent/core/merchant_agent/tools
476:484 (1%)
489:498 (1%)
view
9 x 2 merchant-agent/core/merchant_agent/tools
shopping-agent/core/shopping_agent/tools
522:530 (1%)
303:311 (1%)
view
9 x 2 merchant-agent/core/merchant_agent/tools
shopping-agent/core/shopping_agent/tools
586:594 (1%)
364:372 (1%)
view
9 x 2 merchant-agent/core/merchant_agent/tools
shopping-agent/core/shopping_agent/tools
730:740 (1%)
644:654 (1%)
view
9 x 2 merchant-agent/runtime-m.../merchant_agent_runtime
shopping-agent/runtime-m.../shopping_agent_runtime
333:343 (3%)
269:279 (4%)
view
9 x 2 merchant-agent/managed-agents/merchant-agent
shopping-agent/managed-agents/shopping-agent
33:48 (4%)
32:46 (3%)
view
9 x 2 merchant-agent/runtime-a...-sdk/merchant_agent_sdk
shopping-agent/runtime-a...-sdk/shopping_agent_sdk
79:87 (13%)
71:79 (18%)
view
8 x 2 merchant-agent/core/merchant_agent/tools
merchant-agent/core/merchant_agent/tools
313:320 (1%)
349:356 (1%)
view
8 x 2 shopping-agent/core/shopping_agent
shopping-agent/core/shopping_agent
103:110 (6%)
134:141 (6%)
view
8 x 2 merchant-agent/core/merchant_agent/tools
shopping-agent/core/shopping_agent/tools
713:720 (1%)
635:642 (1%)
view
8 x 2 merchant-agent/runtime-agent-sdk
shopping-agent/runtime-agent-sdk
104:111 (8%)
56:63 (17%)
view
8 x 2 merchant-agent/runtime-m.../merchant_agent_runtime
shopping-agent/runtime-m.../shopping_agent_runtime
119:130 (3%)
103:113 (3%)
view
8 x 2 merchant-agent/runtime-m.../merchant_agent_runtime
shopping-agent/runtime-m.../shopping_agent_runtime
165:172 (3%)
145:152 (3%)
view
8 x 2 merchant-agent/managed-agents/merchant-mcp-server
shopping-agent/managed-a...s/storefront-mcp-server
268:276 (3%)
144:152 (6%)
view
8 x 2 ROOT
merchant-agent/core/merchant_agent
394:401 (1%)
70:77 (7%)
view
8 x 2 merchant-agent/core/merchant_agent
shopping-agent/core/shopping_agent
38:45 (12%)
49:56 (8%)
view
8 x 2 merchant-agent/runtime-a...-sdk/merchant_agent_sdk
shopping-agent/runtime-a...-sdk/shopping_agent_sdk
22:30 (18%)
19:27 (21%)
view
8 x 2 merchant-agent/core/merchant_agent
shopping-agent/core/shopping_agent
120:127 (2%)
92:99 (4%)
view
7 x 2 shopping-agent/core/shopping_agent
shopping-agent/core/shopping_agent
160:166 (4%)
170:176 (4%)
view
7 x 2 merchant-agent/core/merchant_agent
shopping-agent/core/shopping_agent
44:52 (2%)
42:50 (5%)
view
7 x 2 merchant-agent/core/merchant_agent/tools
shopping-agent/core/shopping_agent/tools
219:225 (1%)
124:130 (1%)
view
7 x 2 merchant-agent/core/merchant_agent/tools
shopping-agent/core/shopping_agent/tools
675:681 (1%)
578:584 (1%)
view
7 x 2 merchant-agent/core/merchant_agent
shopping-agent/core/shopping_agent
17:23 (1%)
14:20 (2%)
view
7 x 2 merchant-agent/managed-agents/merchant-mcp-server
shopping-agent/managed-a...s/storefront-mcp-server
278:286 (3%)
170:178 (5%)
view
7 x 2 ROOT
merchant-agent/core/merchant_agent
34:40 (1%)
28:34 (6%)
view
7 x 2 ROOT
merchant-agent/core/merchant_agent
433:439 (1%)
93:99 (6%)
view
7 x 2 ROOT
merchant-agent/core/merchant_agent
522:528 (1%)
134:140 (6%)
view
7 x 2 merchant-agent/core/merchant_agent
merchant-agent/core/merchant_agent
35:41 (11%)
28:34 (6%)
view
6 x 2 scripts
scripts
83:88 (<1%)
110:115 (<1%)
view
6 x 2 scripts
scripts
146:151 (<1%)
191:196 (<1%)
view
6 x 2 scripts
scripts
146:151 (<1%)
272:277 (<1%)
view
6 x 2 scripts
scripts
155:160 (<1%)
355:360 (<1%)
view
6 x 2 scripts
scripts
191:196 (<1%)
272:277 (<1%)
view
6 x 2 scripts
scripts
200:205 (<1%)
232:237 (<1%)
view
6 x 2 scripts
scripts
249:254 (<1%)
282:287 (<1%)
view
6 x 2 scripts
scripts
308:313 (<1%)
385:390 (<1%)
view
6 x 2 merchant-agent/core/merchant_agent/tools
merchant-agent/core/merchant_agent/tools
144:149 (<1%)
193:199 (<1%)
view
6 x 2 merchant-agent/core/merchant_agent/tools
merchant-agent/core/merchant_agent/tools
175:180 (<1%)
583:588 (<1%)
view
6 x 2 merchant-agent/core/merchant_agent/tools
merchant-agent/core/merchant_agent/tools
186:191 (<1%)
431:436 (<1%)
view
Most Frequent Duplicates
The list of 7 most frequently found duplicates.
Size#FoldersFilesLinesCode
6 x 4 merchant-agent/core/merchant_agent/tools
shopping-agent/core/shopping_agent/tools
merchant-agent/core/merchant_agent/tools
shopping-agent/core/shopping_agent/tools
144:149 (<1%)
223:228 (<1%)
193:199 (<1%)
576:581 (<1%)
view
6 x 3 shopping-agent/core/shopping_agent/tools
shopping-agent/core/shopping_agent/tools
shopping-agent/core/shopping_agent/tools
166:171 (<1%)
361:366 (<1%)
409:414 (<1%)
view
6 x 3 merchant-agent/core/merchant_agent/tools
shopping-agent/core/shopping_agent/tools
shopping-agent/core/shopping_agent/tools
220:225 (<1%)
125:130 (<1%)
250:255 (<1%)
view
6 x 3 ROOT
merchant-agent/core/merchant_agent
merchant-agent/core/merchant_agent
35:40 (1%)
36:41 (9%)
29:34 (5%)
view
6 x 3 ROOT
merchant-agent/core/merchant_agent
merchant-agent/core/merchant_agent
34:39 (1%)
35:40 (9%)
28:33 (5%)
view
6 x 3 scripts
scripts
scripts
146:151 (<1%)
191:196 (<1%)
272:277 (<1%)
view
6 x 3 merchant-agent/core/merchant_agent/tools
merchant-agent/core/merchant_agent/tools
merchant-agent/core/merchant_agent/tools
337:342 (<1%)
378:383 (<1%)
646:651 (<1%)
view
Duplicated Units
The list of top 2 duplicated units.
See data for all 2 unit duplicates...
Size#FoldersFilesLinesCode
11 x 2 shopping-agent/runtime-agent-sdk
merchant-agent/runtime-agent-sdk
34:46 
37:49 
view
6 x 2 shopping-agent/runtime-a...-sdk/shopping_agent_sdk
merchant-agent/runtime-a...-sdk/merchant_agent_sdk
36:43 
42:49 
view
About This Analysis
  • 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...