openai / openai-realtime-twilio-demo
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:
    • 2,288 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 96 duplicated lines
  • 10 duplicates
system4% (96 lines)
dependency graphs: 2D graph | 2D graph (with duplicates)... | 3D graph | 3D graph (with duplicates)...
Duplication per Extension
tsx3% (58 lines)
ts5% (38 lines)
Duplication per Component (primary)
webapp4% (96 lines)
websocket-server0% (0 lines)
Longest Duplicates
The list of 10 longest duplicates.
See data for all 10 duplicates...
Size#FoldersFilesLinesCode
9 x 2 webapp/lib
webapp/lib
151:160 (5%)
183:191 (5%)
view
7 x 2 webapp/components
webapp/components
10:21 (2%)
9:16 (7%)
view
7 x 2 webapp/components/ui
webapp/components/ui
40:46 (5%)
57:63 (5%)
view
7 x 2 webapp/lib
webapp/lib
140:146 (3%)
175:181 (3%)
view
6 x 2 webapp/components
webapp/components
16:21 (2%)
5:10 (2%)
view
6 x 2 webapp/lib
webapp/lib
73:78 (3%)
183:188 (3%)
view
6 x 2 webapp/components
webapp/components
239:244 (2%)
264:269 (2%)
view
6 x 2 webapp/components
webapp/components
5:10 (2%)
11:16 (6%)
view
6 x 2 webapp/lib
webapp/lib
73:78 (3%)
151:157 (3%)
view
6 x 2 webapp/components/ui
webapp/components/ui
14:20 (13%)
18:24 (26%)
view
Most Frequent Duplicates
The list of 2 most frequently found duplicates.
Size#FoldersFilesLinesCode
6 x 3 webapp/components
webapp/components
webapp/components
11:16 (6%)
5:10 (2%)
16:21 (2%)
view
6 x 3 webapp/lib
webapp/lib
webapp/lib
73:78 (3%)
151:157 (3%)
183:188 (3%)
view