openai / orion-multistep-analysis
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
  • 4% duplication:
    • 6,964 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 296 duplicated lines
  • 22 duplicates
system4% (296 lines)
dependency graphs: 2D graph | 2D graph (with duplicates)... | 3D graph | 3D graph (with duplicates)...
Duplication per Extension
py4% (137 lines)
tsx4% (110 lines)
ts9% (37 lines)
css1% (12 lines)
Duplication per Component (primary)
frontend4% (159 lines)
src4% (137 lines)
scripts0% (0 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 22 longest duplicates.
See data for all 22 duplicates...
Size#FoldersFilesLinesCode
23 x 2 src/research_agent/reporters
src/research_agent/reporters
199:226 (6%)
503:532 (6%)
view
17 x 2 frontend/src/pages
frontend/src/pages
258:274 (4%)
385:401 (4%)
view
10 x 2 frontend/src/pages
frontend/src/pages
58:71 (2%)
94:107 (2%)
view
8 x 2 src/research_agent/backend
src/research_agent/backend
106:113 (1%)
153:160 (1%)
view
8 x 2 src/research_agent/supervisor
src/research_agent/supervisor
385:395 (1%)
446:455 (1%)
view
8 x 2 frontend/src/hooks
frontend/src/hooks
65:73 (9%)
81:89 (9%)
view
7 x 2 frontend/src/hooks
frontend/src/hooks
18:24 (8%)
38:44 (8%)
view
7 x 2 frontend/src/pages
frontend/src/pages
586:592 (<1%)
703:709 (<1%)
view
7 x 2 frontend/src/hooks
frontend/src/hooks
50:57 (8%)
82:89 (8%)
view
7 x 2 frontend/src/hooks
frontend/src/hooks
50:57 (8%)
66:73 (8%)
view
7 x 2 src/research_agent/reporters
src/research_agent/reporters
206:212 (1%)
404:410 (1%)
view
7 x 2 src/research_agent/agents
src/research_agent/agents
282:288 (2%)
296:302 (2%)
view
7 x 2 src/research_agent/backend
src/research_agent/backend
373:379 (1%)
424:430 (1%)
view
7 x 2 src/research_agent/reporters
src/research_agent/reporters
404:410 (1%)
511:517 (1%)
view
6 x 2 frontend/src/pages
frontend/src/pages
276:281 (1%)
1276:1281 (<1%)
view
6 x 2 frontend/src/pages
frontend/src/pages
171:176 (<1%)
324:329 (1%)
view
6 x 2 frontend/src/pages
frontend/src/pages
389:394 (1%)
586:591 (<1%)
view
6 x 2 frontend/src/styles
frontend/src/styles
831:836 (<1%)
884:889 (<1%)
view
6 x 2 src/research_agent/supervisor
src/research_agent/supervisor
412:418 (1%)
479:485 (1%)
view
6 x 2 frontend/src/pages
frontend/src/pages
15:21 (1%)
23:28 (1%)
view
6 x 2 src/research_agent/backend
src/research_agent/backend
271:276 (1%)
336:341 (1%)
view
6 x 2 frontend/src/pages
frontend/src/pages
389:394 (1%)
703:708 (<1%)
view
Most Frequent Duplicates
The list of 5 most frequently found duplicates.
Size#FoldersFilesLinesCode
6 x 3 src/research_agent/reporters
src/research_agent/reporters
src/research_agent/reporters
207:212 (1%)
405:410 (1%)
512:517 (1%)
view
6 x 3 src/research_agent/reporters
src/research_agent/reporters
src/research_agent/reporters
206:211 (1%)
404:409 (1%)
511:516 (1%)
view
6 x 3 frontend/src/hooks
frontend/src/hooks
frontend/src/hooks
51:57 (7%)
67:73 (7%)
83:89 (7%)
view
6 x 3 frontend/src/hooks
frontend/src/hooks
frontend/src/hooks
50:55 (7%)
66:71 (7%)
82:87 (7%)
view
6 x 3 frontend/src/pages
frontend/src/pages
frontend/src/pages
389:394 (1%)
586:591 (<1%)
703:708 (<1%)
view