anthropics / claude-cookbooks Duplication |
Places in code with 6 or more lines that are exactly the same.
flowchart TB
n0["misc"]
n1["tool_use"]
n2["claude_agent_sdk"]
n3["capabilities"]
n4["managed_agents"]
n5["patterns"]
n6["coding"]
n7["finetuning"]
n8["fable_5_fallback_billing"]
n9["extended_thinking"]
n10["multimodal"]
n0 ---|"1982"| n1
n2 ---|"1503"| n1
n3 ---|"1382"| n2
n2 ---|"1321"| n4
n3 ---|"1216"| n1
n0 ---|"1070"| n5
n3 ---|"1058"| n0
n5 ---|"984"| n1
n6 ---|"980"| n0
n6 ---|"940"| n1
n4 ---|"782"| n1
n4 ---|"728"| n0
n7 ---|"696"| n1
n7 ---|"682"| n0
n2 ---|"600"| n0
n8 ---|"595"| n0
n9 ---|"590"| n0
n8 ---|"528"| n1
n9 ---|"501"| n1
n3 ---|"406"| n5
n3 ---|"344"| n6
n0 ---|"332"| n10
n3 ---|"319"| n7
n3 ---|"297"| n4
n7 ---|"292"| n5
n6 ---|"272"| n5
n4 ---|"237"| n5
n6 ---|"220"| n7
n10 ---|"203"| n1
n3 ---|"194"| n8
n2 ---|"182"| n5
n2 ---|"168"| n6
n9 ---|"162"| n8
n4 ---|"161"| n10
n8 ---|"160"| n5
n2 ---|"142"| n10
n6 ---|"141"| n4
n6 ---|"140"| n8
n3 ---|"132"| n9
n8 ---|"128"| n7
n9 ---|"124"| n4
n9 ---|"108"| n5
n2 ---|"93"| n9
n10 ---|"90"| n5
n9 ---|"83"| n10
n8 ---|"80"| n10
n6 ---|"78"| n9
n9 ---|"66"| n7
n2 ---|"64"| n7
n7 ---|"55"| n4
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:#DC143CC9,stroke-width:7px
linkStyle 2 stroke:#DC143CB7,stroke-width:6px
linkStyle 3 stroke:#DC143CB7,stroke-width:6px
linkStyle 4 stroke:#DC143CB7,stroke-width:6px
linkStyle 5 stroke:#DC143CA5,stroke-width:5px
linkStyle 6 stroke:#DC143CA5,stroke-width:5px
linkStyle 7 stroke:#DC143C93,stroke-width:4px
linkStyle 8 stroke:#DC143C93,stroke-width:4px
linkStyle 9 stroke:#DC143C93,stroke-width:4px
linkStyle 10 stroke:#DC143C82,stroke-width:3px
linkStyle 11 stroke:#DC143C82,stroke-width:3px
linkStyle 12 stroke:#DC143C82,stroke-width:3px
linkStyle 13 stroke:#DC143C82,stroke-width:3px
linkStyle 14 stroke:#DC143C82,stroke-width:3px
linkStyle 15 stroke:#DC143C82,stroke-width:3px
linkStyle 16 stroke:#DC143C70,stroke-width:2px
linkStyle 17 stroke:#DC143C70,stroke-width:2px
linkStyle 18 stroke:#DC143C70,stroke-width:2px
linkStyle 19 stroke:#DC143C70,stroke-width:2px
linkStyle 20 stroke:#DC143C5E,stroke-width:1px
linkStyle 21 stroke:#DC143C5E,stroke-width:1px
linkStyle 22 stroke:#DC143C5E,stroke-width:1px
linkStyle 23 stroke:#DC143C5E,stroke-width:1px
linkStyle 24 stroke:#DC143C5E,stroke-width:1px
linkStyle 25 stroke:#DC143C5E,stroke-width:1px
linkStyle 26 stroke:#DC143C5E,stroke-width:1px
linkStyle 27 stroke:#DC143C5E,stroke-width:1px
linkStyle 28 stroke:#DC143C5E,stroke-width:1px
linkStyle 29 stroke:#DC143C4C,stroke-width:1px
linkStyle 30 stroke:#DC143C4C,stroke-width:1px
linkStyle 31 stroke:#DC143C4C,stroke-width:1px
linkStyle 32 stroke:#DC143C4C,stroke-width:1px
linkStyle 33 stroke:#DC143C4C,stroke-width:1px
linkStyle 34 stroke:#DC143C4C,stroke-width:1px
linkStyle 35 stroke:#DC143C4C,stroke-width:1px
linkStyle 36 stroke:#DC143C4C,stroke-width:1px
linkStyle 37 stroke:#DC143C4C,stroke-width:1px
linkStyle 38 stroke:#DC143C4C,stroke-width:1px
linkStyle 39 stroke:#DC143C4C,stroke-width:1px
linkStyle 40 stroke:#DC143C4C,stroke-width:1px
linkStyle 41 stroke:#DC143C4C,stroke-width:1px
linkStyle 42 stroke:#DC143C4C,stroke-width:1px
linkStyle 43 stroke:#DC143C4C,stroke-width:1px
linkStyle 44 stroke:#DC143C4C,stroke-width:1px
linkStyle 45 stroke:#DC143C4C,stroke-width:1px
linkStyle 46 stroke:#DC143C4C,stroke-width:1px
linkStyle 47 stroke:#DC143C4C,stroke-width:1px
linkStyle 48 stroke:#DC143C4C,stroke-width:1px
linkStyle 49 stroke:#DC143C4C,stroke-width:1px
| From Component --> To Component |
Duplicated Lines |
File Pairs | Details |
|---|---|---|---|
| misc (14%)   --> tool_use (11%) |
1982 | 77 file pairs | details... |
| claude_agent_sdk (8%)   --> tool_use (8%) |
1503 | 21 file pairs | details... |
| capabilities (20%)   --> claude_agent_sdk (8%) |
1382 | 3 file pairs | details... |
| claude_agent_sdk (7%)   --> managed_agents (10%) |
1321 | 11 file pairs | details... |
| capabilities (18%)   --> tool_use (7%) |
1216 | 7 file pairs | details... |
| misc (7%)   --> patterns (23%) |
1070 | 43 file pairs | details... |
| capabilities (16%)   --> misc (7%) |
1058 | 11 file pairs | details... |
| patterns (21%)   --> tool_use (5%) |
984 | 27 file pairs | details... |
| coding (41%)   --> misc (7%) |
980 | 11 file pairs | details... |
| coding (40%)   --> tool_use (5%) |
940 | 7 file pairs | details... |
| managed_agents (6%)   --> tool_use (4%) |
782 | 27 file pairs | details... |
| managed_agents (5%)   --> misc (5%) |
728 | 50 file pairs | details... |
| finetuning (134%)   --> tool_use (4%) |
696 | 7 file pairs | details... |
| finetuning (132%)   --> misc (5%) |
682 | 11 file pairs | details... |
| claude_agent_sdk (3%)   --> misc (4%) |
600 | 33 file pairs | details... |
| fable_5_fallback_billing (53%)   --> misc (4%) |
595 | 11 file pairs | details... |
| extended_thinking (34%)   --> misc (4%) |
590 | 10 file pairs | details... |
| fable_5_fallback_billing (47%)   --> tool_use (3%) |
528 | 7 file pairs | details... |
| extended_thinking (29%)   --> tool_use (2%) |
501 | 6 file pairs | details... |
| capabilities (6%)   --> patterns (8%) |
406 | 4 file pairs | details... |
| capabilities (5%)   --> coding (14%) |
344 | 1 file pair | details... |
| misc (2%)   --> multimodal (32%) |
332 | 11 file pairs | details... |
| capabilities (4%)   --> finetuning (61%) |
319 | 1 file pair | details... |
| capabilities (4%)   --> managed_agents (2%) |
297 | 4 file pairs | details... |
| finetuning (56%)   --> patterns (6%) |
292 | 4 file pairs | details... |
| coding (11%)   --> patterns (5%) |
272 | 4 file pairs | details... |
| managed_agents (1%)   --> patterns (5%) |
237 | 15 file pairs | details... |
| coding (9%)   --> finetuning (42%) |
220 | 1 file pair | details... |
| multimodal (19%)   --> tool_use (1%) |
203 | 7 file pairs | details... |
| capabilities (2%)   --> fable_5_fallback_billing (17%) |
194 | 1 file pair | details... |
| claude_agent_sdk (1%)   --> patterns (4%) |
182 | 11 file pairs | details... |
| claude_agent_sdk (<1%)   --> coding (7%) |
168 | 3 file pairs | details... |
| extended_thinking (9%)   --> fable_5_fallback_billing (14%) |
162 | 1 file pair | details... |
| managed_agents (1%)   --> multimodal (15%) |
161 | 5 file pairs | details... |
| fable_5_fallback_billing (14%)   --> patterns (3%) |
160 | 3 file pairs | details... |
| claude_agent_sdk (<1%)   --> multimodal (13%) |
142 | 3 file pairs | details... |
| coding (6%)   --> managed_agents (1%) |
141 | 4 file pairs | details... |
| coding (5%)   --> fable_5_fallback_billing (12%) |
140 | 1 file pair | details... |
| capabilities (1%)   --> extended_thinking (7%) |
132 | 1 file pair | details... |
| fable_5_fallback_billing (11%)   --> finetuning (24%) |
128 | 1 file pair | details... |
| extended_thinking (7%)   --> managed_agents (<1%) |
124 | 4 file pairs | details... |
| extended_thinking (6%)   --> patterns (2%) |
108 | 3 file pairs | details... |
| claude_agent_sdk (<1%)   --> extended_thinking (5%) |
93 | 2 file pairs | details... |
| multimodal (8%)   --> patterns (1%) |
90 | 4 file pairs | details... |
| extended_thinking (4%)   --> multimodal (8%) |
83 | 1 file pair | details... |
| fable_5_fallback_billing (7%)   --> multimodal (7%) |
80 | 1 file pair | details... |
| coding (3%)   --> extended_thinking (4%) |
78 | 1 file pair | details... |
| extended_thinking (3%)   --> finetuning (12%) |
66 | 1 file pair | details... |
| claude_agent_sdk (<1%)   --> finetuning (12%) |
64 | 3 file pairs | details... |
| finetuning (10%)   --> managed_agents (<1%) |
55 | 3 file pairs | details... |
| claude_agent_sdk (<1%)   --> fable_5_fallback_billing (4%) |
52 | 3 file pairs | details... |
| fable_5_fallback_billing (4%)   --> managed_agents (<1%) |
51 | 2 file pairs | details... |