openai / openai-imagegen-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:
    • 1,765 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 82 duplicated lines
  • 4 duplicates
system4% (82 lines)
dependency graphs: 2D graph | 2D graph (with duplicates)... | 3D graph | 3D graph (with duplicates)...
Duplication per Extension
ts5% (51 lines)
tsx4% (31 lines)
Duplication per Component (primary)
app3% (26 lines)
services22% (25 lines)
components3% (16 lines)
hooks5% (15 lines)
lib0% (0 lines)
ROOT0% (0 lines)
types0% (0 lines)
Longest Duplicates
The list of 4 longest duplicates.
See data for all 4 duplicates...
Size#FoldersFilesLinesCode
15 x 2 app
hooks
22:36 (14%)
160:174 (10%)
view
11 x 2 app/api/photobooth
services
123:136 (3%)
103:116 (10%)
view
8 x 2 components/photobooth
components/photobooth
28:35 (25%)
28:35 (26%)
view
7 x 2 services
services
119:126 (6%)
136:143 (6%)
view