openai / harmony
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
  • 12% duplication:
    • 4,098 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 515 duplicated lines
  • 43 duplicates
system12% (515 lines)
dependency graphs: 2D graph | 2D graph (with duplicates)... | 3D graph | 3D graph (with duplicates)...
Duplication per Extension
rs13% (493 lines)
py4% (22 lines)
Duplication per Component (primary)
src13% (493 lines)
python4% (22 lines)
Longest Duplicates
The list of 43 longest duplicates.
See data for all 43 duplicates...
Size#FoldersFilesLinesCode
24 x 2 src
src
55:78 (23%)
95:118 (23%)
view
20 x 2 src
src
126:147 (6%)
154:175 (6%)
view
14 x 2 src
src
85:99 (4%)
113:127 (4%)
view
13 x 2 src
src
428:444 (1%)
464:480 (1%)
view
11 x 2 src
src
227:237 (1%)
261:271 (1%)
view
11 x 2 src
src
196:207 (1%)
262:273 (1%)
view
10 x 2 src
src
424:434 (1%)
490:500 (1%)
view
10 x 2 src
src
109:119 (3%)
165:175 (3%)
view
10 x 2 src
src
134:143 (<1%)
148:157 (<1%)
view
10 x 2 src
src
109:119 (3%)
137:147 (3%)
view
10 x 2 src
src
196:205 (1%)
228:237 (1%)
view
9 x 2 src/tiktoken_ext
src/tiktoken_ext
301:309 (2%)
312:320 (2%)
view
9 x 2 src/tiktoken_ext
src/tiktoken_ext
147:158 (2%)
168:179 (2%)
view
9 x 2 src
src
221:231 (3%)
176:184 (3%)
view
9 x 2 src
src
1182:1193 (<1%)
1299:1307 (<1%)
view
8 x 2 src
src
46:53 (7%)
86:93 (7%)
view
8 x 2 python/openai_harmony
python/openai_harmony
476:484 (1%)
491:499 (1%)
view
8 x 2 src/tiktoken_ext
src/tiktoken_ext
139:146 (1%)
212:219 (1%)
view
8 x 2 src/tiktoken_ext
src/tiktoken_ext
158:167 (1%)
220:228 (1%)
view
8 x 2 src
src
431:440 (<1%)
608:617 (<1%)
view
7 x 2 src
src
317:323 (<1%)
815:821 (<1%)
view
7 x 2 src
src
592:599 (<1%)
662:669 (<1%)
view
6 x 2 src
src
44:49 (<1%)
228:233 (<1%)
view
6 x 2 src
src
610:617 (<1%)
674:681 (<1%)
view
6 x 2 src
src
94:99 (2%)
130:135 (2%)
view
6 x 2 python/openai_harmony
python/openai_harmony
456:468 (1%)
478:484 (1%)
view
6 x 2 src
src
211:219 (<1%)
279:287 (<1%)
view
6 x 2 src
src
436:444 (<1%)
502:510 (<1%)
view
6 x 2 src
src
53:58 (<1%)
209:214 (<1%)
view
6 x 2 src
src
245:253 (<1%)
279:287 (<1%)
view
6 x 2 src
src
313:319 (<1%)
333:339 (<1%)
view
6 x 2 src
src
433:440 (<1%)
674:681 (<1%)
view
6 x 2 src
src
269:274 (<1%)
292:297 (<1%)
view
6 x 2 src
src
211:219 (<1%)
245:253 (<1%)
view
6 x 2 src
src
272:277 (2%)
222:227 (2%)
view
6 x 2 src
src
44:49 (<1%)
262:267 (<1%)
view
6 x 2 src
src
385:393 (<1%)
406:414 (<1%)
view
6 x 2 src
src
167:172 (<1%)
231:236 (<1%)
view
6 x 2 src
src
472:480 (<1%)
502:510 (<1%)
view
6 x 2 src
src
464:470 (<1%)
494:500 (<1%)
view
6 x 2 src
src
94:99 (2%)
158:163 (2%)
view
6 x 2 src
src
44:49 (<1%)
196:201 (<1%)
view
6 x 2 python/openai_harmony
python/openai_harmony
456:468 (1%)
493:499 (1%)
view
Most Frequent Duplicates
The list of 16 most frequently found duplicates.
Size#FoldersFilesLinesCode
6 x 4 src
src
src
src
44:49 (<1%)
196:201 (<1%)
228:233 (<1%)
262:267 (<1%)
view
6 x 3 src
src
src
113:119 (2%)
141:147 (2%)
169:175 (2%)
view
6 x 3 src
src
src
436:444 (<1%)
472:480 (<1%)
502:510 (<1%)
view
6 x 3 src
src
src
197:202 (<1%)
229:234 (<1%)
263:268 (<1%)
view
6 x 3 src
src
src
433:440 (<1%)
610:617 (<1%)
674:681 (<1%)
view
6 x 3 src
src
src
110:115 (2%)
138:143 (2%)
166:171 (2%)
view
6 x 3 python/openai_harmony
python/openai_harmony
python/openai_harmony
456:468 (1%)
478:484 (1%)
493:499 (1%)
view
6 x 3 src
src
src
94:99 (2%)
130:135 (2%)
158:163 (2%)
view
6 x 3 src
src
src
200:205 (<1%)
232:237 (<1%)
266:271 (<1%)
view
6 x 3 src
src
src
111:116 (2%)
139:144 (2%)
167:172 (2%)
view
6 x 3 src
src
src
112:117 (2%)
140:145 (2%)
168:173 (2%)
view
6 x 3 src
src
src
198:203 (<1%)
230:235 (<1%)
264:269 (<1%)
view
6 x 3 src
src
src
428:434 (<1%)
464:470 (<1%)
494:500 (<1%)
view
6 x 3 src
src
src
199:204 (<1%)
231:236 (<1%)
265:270 (<1%)
view
6 x 3 src
src
src
109:114 (2%)
137:142 (2%)
165:170 (2%)
view
6 x 3 src
src
src
211:219 (<1%)
245:253 (<1%)
279:287 (<1%)
view