openai / openai-cs-agents-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,519 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 104 duplicated lines
  • 7 duplicates
system4% (104 lines)
dependency graphs: 2D graph | 2D graph (with duplicates)... | 3D graph | 3D graph (with duplicates)...
Duplication per Extension
py4% (62 lines)
tsx4% (42 lines)
Duplication per Component (primary)
python-backend4% (62 lines)
ui3% (42 lines)
Longest Duplicates
The list of 7 longest duplicates.
See data for all 7 duplicates...
Size#FoldersFilesLinesCode
15 x 2 ui/components
ui/components
63:77 (12%)
81:95 (12%)
view
13 x 2 python-backend
python-backend
358:370 (2%)
382:394 (2%)
view
8 x 2 python-backend
python-backend
363:370 (1%)
461:468 (1%)
view
8 x 2 python-backend
python-backend
387:394 (1%)
461:468 (1%)
view
7 x 2 python-backend
python-backend
13:19 (8%)
42:48 (1%)
view
7 x 2 python-backend/airline
python-backend/airline
60:66 (3%)
88:94 (3%)
view
6 x 2 ui/components/ui
ui/components/ui
6:11 (8%)
33:38 (8%)
view
Most Frequent Duplicates
The list of 3 most frequently found duplicates.
Size#FoldersFilesLinesCode
6 x 3 python-backend
python-backend
python-backend
364:369 (1%)
388:393 (1%)
462:467 (1%)
view
6 x 3 python-backend
python-backend
python-backend
363:368 (1%)
387:392 (1%)
461:466 (1%)
view
6 x 3 python-backend
python-backend
python-backend
365:370 (1%)
389:394 (1%)
463:468 (1%)
view