openai / openai-testing-agent-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
  • 7% duplication:
    • 2,126 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 162 duplicated lines
  • 5 duplicates
system7% (162 lines)
dependency graphs: 2D graph | 2D graph (with duplicates)... | 3D graph | 3D graph (with duplicates)...
Duplication per Extension
ts10% (138 lines)
tsx3% (24 lines)
Duplication per Component (primary)
cua-server11% (122 lines)
frontend3% (40 lines)
Longest Duplicates
The list of 5 longest duplicates.
See data for all 5 duplicates...
Size#FoldersFilesLinesCode
30 x 2 cua-server/src/agents
cua-server/src/agents
79:108 (12%)
226:255 (12%)
view
16 x 2 cua-server/src/utils
frontend/lib
3:21 (100%)
3:21 (100%)
view
14 x 2 cua-server/src/handlers
cua-server/src/handlers
163:180 (11%)
32:49 (41%)
view
12 x 2 frontend/app
frontend/app
22:33 (16%)
70:81 (16%)
view
9 x 2 cua-server/src/agents
cua-server/src/agents
125:133 (3%)
269:277 (3%)
view