openai / openai-chatkit-starter-app
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
  • 36% duplication:
    • 579 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 210 duplicated lines
  • 10 duplicates
system36% (210 lines)
dependency graphs: 2D graph | 2D graph (with duplicates)... | 3D graph | 3D graph (with duplicates)...
Duplication per Extension
mjs69% (72 lines)
css100% (58 lines)
tsx54% (30 lines)
html100% (22 lines)
ts20% (14 lines)
py5% (14 lines)
Duplication per Component (primary)
managed-chatkit35% (105 lines)
chatkit37% (105 lines)

Duplication Between Components (50+ lines)

flowchart TB
    n0["chatkit"]
    n1["managed-chatkit"]
    n0 ---|"210"| 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
chatkit (37%)
  --> managed-chatkit (35%)
210 8 file pairs details...

Longest Duplicates
The list of 10 longest duplicates.
See data for all 10 duplicates...
Size#FoldersFilesLinesCode
29 x 2 chatkit/frontend/src
managed-chatkit/frontend/src
1:34 (100%)
1:34 (100%)
view
18 x 2 chatkit/frontend
managed-chatkit/frontend
19:36 (50%)
21:38 (32%)
view
11 x 2 chatkit/frontend
managed-chatkit/frontend
1:12 (100%)
1:12 (100%)
view
8 x 2 chatkit/frontend/src
managed-chatkit/frontend/src
6:15 (100%)
6:15 (100%)
view
7 x 2 chatkit/backend/app
managed-chatkit/backend/app
14:20 (38%)
21:27 (5%)
view
7 x 2 chatkit/frontend/src
managed-chatkit/frontend/src
3:9 (100%)
3:9 (100%)
view
7 x 2 chatkit/frontend
managed-chatkit/frontend
7:14 (46%)
7:14 (46%)
view
6 x 2 chatkit/frontend
managed-chatkit/frontend
1:6 (16%)
1:6 (10%)
view
6 x 2 chatkit/frontend
managed-chatkit/frontend
1:7 (100%)
1:7 (100%)
view
6 x 2 chatkit/frontend
managed-chatkit/frontend
8:13 (16%)
9:14 (10%)
view