openai / chatgpt-retrieval-plugin
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
  • 17% duplication:
    • 3,849 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 673 duplicated lines
  • 108 duplicates
system17% (673 lines)
dependency graphs: 2D graph | 2D graph (with duplicates)... | 3D graph | 3D graph (with duplicates)...
Duplication per Extension
py17% (661 lines)
yaml50% (12 lines)
Duplication per Component (primary)
datastore9% (280 lines)
scripts66% (195 lines)
server75% (90 lines)
local_server70% (84 lines)
services7% (18 lines)
.well-known50% (6 lines)
models0% (0 lines)

Duplication Between Components (50+ lines)

flowchart TB
    n0["local_server"]
    n1["server"]
    n0 ---|"164"| n1
    classDef default fill:#00b2ee,stroke:#ffffff,color:#000000;
    classDef highlighted fill:#00b2ee,stroke:#ffffff,color:#000000;
    linkStyle 0 stroke:#DC143CFF,stroke-width:10px


Download: Mermaid (.mmd) (open online Mermaid editor)

2D force graph | 3D force graph

Show more details on duplication between components...
From Component
 --> To Component
Duplicated
Lines
File Pairs Details
local_server (68%)
  --> server (68%)
164 1 file pair details...

Longest Duplicates
The list of 50 longest duplicates.
See data for all 108 duplicates...
Size#FoldersFilesLinesCode
36 x 2 local_server
server
63:102 (33%)
47:86 (30%)
view
35 x 2 local_server
server
107:147 (32%)
115:155 (29%)
view
23 x 2 scripts/process_json
scripts/process_jsonl
113:139 (23%)
111:137 (24%)
view
23 x 2 scripts/process_json
scripts/process_jsonl
27:56 (23%)
27:56 (24%)
view
23 x 2 scripts/process_jsonl
scripts/process_zip
111:137 (24%)
118:144 (23%)
view
23 x 2 scripts/process_json
scripts/process_zip
113:139 (23%)
118:144 (23%)
view
15 x 2 datastore/providers
datastore/providers
199:213 (5%)
220:234 (5%)
view
15 x 2 scripts/process_json
scripts/process_jsonl
60:83 (15%)
59:82 (15%)
view
10 x 2 scripts/process_json
scripts/process_jsonl
85:99 (10%)
84:98 (10%)
view
10 x 2 server
server
94:103 (8%)
113:122 (8%)
view
10 x 2 datastore/providers
datastore/providers
226:235 (4%)
132:143 (8%)
view
9 x 2 services
services
13:31 (40%)
7:24 (60%)
view
9 x 2 datastore/providers
datastore/providers
113:127 (3%)
179:191 (4%)
view
8 x 2 datastore/providers
datastore/providers
268:280 (4%)
477:493 (1%)
view
8 x 2 datastore/providers
datastore/providers
19:26 (2%)
7:14 (5%)
view
8 x 2 datastore/providers
datastore/providers
155:167 (6%)
179:190 (4%)
view
8 x 2 datastore/providers
datastore/providers
53:60 (8%)
61:68 (8%)
view
8 x 2 datastore/providers
datastore/providers
19:26 (4%)
10:17 (4%)
view
8 x 2 local_server
server
107:114 (7%)
96:103 (6%)
view
8 x 2 datastore/providers
datastore/providers
19:26 (4%)
14:21 (2%)
view
8 x 2 datastore/providers
datastore/providers
113:126 (2%)
155:167 (6%)
view
8 x 2 datastore/providers
datastore/providers
10:17 (4%)
14:21 (2%)
view
7 x 2 datastore/providers
datastore/providers
71:86 (3%)
77:89 (4%)
view
7 x 2 datastore/providers
datastore/providers
220:231 (3%)
159:173 (4%)
view
7 x 2 datastore/providers
datastore/providers
220:231 (3%)
179:189 (3%)
view
7 x 2 datastore/providers
datastore/providers
113:125 (2%)
264:275 (2%)
view
7 x 2 datastore/providers
datastore/providers
113:125 (2%)
159:173 (4%)
view
7 x 2 datastore/providers
datastore/providers
179:189 (3%)
264:275 (2%)
view
7 x 2 datastore/providers
datastore/providers
185:195 (4%)
155:166 (5%)
view
7 x 2 datastore/providers
datastore/providers
155:166 (5%)
264:275 (2%)
view
7 x 2 datastore/providers
datastore/providers
270:280 (3%)
159:173 (4%)
view
7 x 2 datastore/providers
datastore/providers
17:23 (3%)
9:15 (5%)
view
7 x 2 datastore/providers
datastore/providers
220:231 (3%)
264:275 (2%)
view
7 x 2 datastore/providers
datastore/providers
270:280 (3%)
264:275 (2%)
view
7 x 2 datastore/providers
datastore/providers
159:173 (4%)
179:189 (3%)
view
7 x 2 datastore/providers
datastore/providers
220:231 (3%)
155:166 (5%)
view
7 x 2 datastore/providers
datastore/providers
185:195 (4%)
159:173 (4%)
view
7 x 2 datastore/providers
datastore/providers
220:231 (3%)
185:195 (4%)
view
7 x 2 datastore/providers
datastore/providers
185:195 (4%)
179:189 (3%)
view
7 x 2 datastore/providers
datastore/providers
479:493 (1%)
264:275 (2%)
view
7 x 2 datastore/providers
datastore/providers
479:493 (1%)
179:189 (3%)
view
7 x 2 datastore/providers
datastore/providers
220:231 (3%)
479:493 (1%)
view
7 x 2 datastore/providers
datastore/providers
113:125 (2%)
185:195 (4%)
view
7 x 2 datastore/providers
datastore/providers
159:173 (4%)
155:166 (5%)
view
7 x 2 datastore/providers
datastore/providers
479:493 (1%)
155:166 (5%)
view
7 x 2 datastore/providers
datastore/providers
159:173 (4%)
264:275 (2%)
view
7 x 2 local_server
server
9:15 (6%)
10:16 (5%)
view
7 x 2 datastore/providers
datastore/providers
111:118 (2%)
103:110 (3%)
view
7 x 2 datastore/providers
datastore/providers
185:195 (4%)
264:275 (2%)
view
7 x 2 datastore/providers
datastore/providers
270:280 (3%)
179:189 (3%)
view
Most Frequent Duplicates
The list of 28 most frequently found duplicates.
Size#FoldersFilesLinesCode
6 x 13 datastore/providers
datastore
datastore/providers
datastore/providers
datastore/providers
datastore/providers
datastore/providers
datastore/providers
datastore/providers
datastore/providers
...
105:110 (2%)
75:80 (12%)
159:164 (3%)
179:184 (3%)
270:275 (3%)
116:121 (1%)
262:267 (2%)
113:118 (2%)
185:190 (4%)
220:225 (3%)
...
view
6 x 9 datastore/providers
datastore/providers
datastore/providers
datastore/providers
datastore/providers
datastore/providers
datastore/providers
datastore/providers
datastore/providers
160:173 (3%)
180:189 (3%)
271:280 (3%)
114:125 (2%)
221:231 (3%)
480:493 (1%)
186:195 (4%)
265:275 (2%)
156:166 (4%)
view
6 x 3 scripts/process_zip
scripts/process_jsonl
scripts/process_json
132:139 (6%)
125:132 (6%)
127:134 (6%)
view
6 x 3 scripts/process_zip
scripts/process_jsonl
scripts/process_json
130:135 (6%)
123:128 (6%)
125:130 (6%)
view
6 x 3 scripts/process_zip
scripts/process_jsonl
scripts/process_json
20:25 (6%)
17:22 (6%)
17:22 (6%)
view
6 x 3 datastore/providers
datastore/providers
datastore/providers
157:167 (4%)
115:126 (2%)
181:190 (3%)
view
6 x 3 scripts/process_zip
scripts/process_jsonl
scripts/process_json
121:126 (6%)
114:119 (6%)
116:121 (6%)
view
6 x 3 scripts/process_zip
scripts/process_jsonl
scripts/process_json
131:138 (6%)
124:131 (6%)
126:133 (6%)
view
6 x 3 server
local_server
server
98:103 (5%)
109:114 (5%)
117:122 (5%)
view
6 x 3 scripts/process_zip
scripts/process_jsonl
scripts/process_json
124:129 (6%)
117:122 (6%)
119:124 (6%)
view
6 x 3 scripts/process_zip
scripts/process_jsonl
scripts/process_json
122:127 (6%)
115:120 (6%)
117:122 (6%)
view
6 x 3 scripts/process_zip
scripts/process_jsonl
scripts/process_json
134:141 (6%)
127:134 (6%)
129:136 (6%)
view
6 x 3 datastore/providers
datastore/providers
datastore/providers
14:19 (2%)
10:15 (3%)
19:24 (3%)
view
6 x 3 datastore/providers
datastore/providers
datastore/providers
15:20 (2%)
11:16 (3%)
20:25 (3%)
view
6 x 3 scripts/process_zip
scripts/process_jsonl
scripts/process_json
120:125 (6%)
113:118 (6%)
115:120 (6%)
view
6 x 3 scripts/process_zip
scripts/process_jsonl
scripts/process_json
123:128 (6%)
116:121 (6%)
118:123 (6%)
view
6 x 3 datastore/providers
datastore/providers
datastore/providers
16:21 (2%)
12:17 (3%)
21:26 (3%)
view
6 x 3 scripts/process_zip
scripts/process_jsonl
scripts/process_json
125:130 (6%)
118:123 (6%)
120:125 (6%)
view
6 x 3 scripts/process_zip
scripts/process_jsonl
scripts/process_json
135:144 (6%)
128:137 (6%)
130:139 (6%)
view
6 x 3 scripts/process_zip
scripts/process_jsonl
scripts/process_json
118:123 (6%)
111:116 (6%)
113:118 (6%)
view
6 x 3 scripts/process_zip
scripts/process_jsonl
scripts/process_json
129:134 (6%)
122:127 (6%)
124:129 (6%)
view
6 x 3 scripts/process_zip
scripts/process_jsonl
scripts/process_json
126:131 (6%)
119:124 (6%)
121:126 (6%)
view
6 x 3 scripts/process_zip
scripts/process_jsonl
scripts/process_json
127:132 (6%)
120:125 (6%)
122:127 (6%)
view
6 x 3 server
local_server
server
97:102 (5%)
108:113 (5%)
116:121 (5%)
view
6 x 3 scripts/process_zip
scripts/process_jsonl
scripts/process_json
133:140 (6%)
126:133 (6%)
128:135 (6%)
view
6 x 3 scripts/process_zip
scripts/process_jsonl
scripts/process_json
128:133 (6%)
121:126 (6%)
123:128 (6%)
view
6 x 3 scripts/process_zip
scripts/process_jsonl
scripts/process_json
119:124 (6%)
112:117 (6%)
114:119 (6%)
view
6 x 3 server
local_server
server
96:101 (5%)
107:112 (5%)
115:120 (5%)
view